You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Creating a Webserver plan named '$webserverplan' for the Website '$webappname'..."
74
+
Write-Output"- Creating a Webserver plan named '$webserverplan' for the Website '$webappname'..."
75
75
az appservice plan create -g $group-n $webserverplan--location $Location|Out-Null
76
76
az webapp create -g $group-p $webserverplan-n $webappname-r "dotnet:8"|Out-Null
77
77
78
78
# Use managed identities
79
-
echo"- Utilizing managed identities for Azure Maps..."
79
+
Write-Output"- Utilizing managed identities for Azure Maps..."
80
80
az webapp identity assign -n $webappname-g $group|Out-Null
81
81
82
82
Start-Sleep-Seconds 5
@@ -90,10 +90,10 @@ try {
90
90
$azuremaps= (az maps account show -n $azuremaps-g $group--query 'properties.uniqueId'--output tsv)
91
91
92
92
# Creating AD App registration
93
-
echo"- Creating an Azure AD App registration..."
93
+
Write-Output"- Creating an Azure AD App registration..."
94
94
az ad app create --display-name "Azure Maps Store Locator for $webappname"--web-redirect-uris https://$webappname.azurewebsites.net/signin-oidc https://localhost:7074/signin-oidc --enable-access-token-issuance true --enable-id-token-issuance true --sign-in-audience AzureADMyOrg |Out-Null
95
95
96
-
echo"- Storing App Settings..."
96
+
Write-Output"- Storing App Settings..."
97
97
$clinetId= (az ad app list --display-name "Azure Maps Store Locator for $webappname"--query '[0].appId'-o tsv)
98
98
$tenantId= (az account show --query 'tenantId'-o tsv)
99
99
$email= (az rest --method get --url 'https://graph.microsoft.com/v1.0/me'--query 'userPrincipalName'-o tsv)
@@ -102,15 +102,15 @@ try {
102
102
az webapp config appsettings set -g $group-n $webappname--settings AzureMaps:ClientId=$azuremaps AzureMaps:TokenUrl=/api/azuremaps/token Database:Name=$DatabaseName Database:ConnectionString=$connectionString AzureAd:Instance=https://login.microsoftonline.com/ AzureAd:Domain=$domain AzureAd:TenantId=$tenantId AzureAd:ClientId=$clinetId AzureAd:CallbackPath=/signin-oidc |Out-Null
103
103
104
104
# Deploy Azure Maps Store Locator
105
-
echo"- Initiating the deployment of the Store Locator website..."
0 commit comments