Skip to content

Commit 7b58743

Browse files
authored
Cosmos DB account must be lowercase
1 parent 7e13afd commit 7b58743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploymentscript.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if([string]::IsNullOrWhiteSpace($location)) {
6161
$resourceGroup = $deploymentName + $location + "-rg"
6262
Write-Host "Creating resource group " $resourceGroup
6363
az group create --location $location --name $resourceGroup --subscription $selectedSubscription
64-
$databaseName = $deploymentName + "db"
64+
$databaseName = $deploymentName.ToLower() + "db"
6565

6666
Write-Host "Deploying Sample application.. (this might take a few minutes)"
6767
$deploymentOutputs = az deployment group create --resource-group $resourceGroup --subscription $selectedSubscription --mode Incremental --template-file ./windows-webapp-template.json --parameters "webAppName=$deploymentName" --parameters "hostingPlanName=$deploymentName-host" --parameters "appInsightsLocation=$location" --parameters "databaseAccountId=$databaseName" --parameters "databaseAccountLocation=$location" -o json
@@ -98,4 +98,4 @@ while($true) {
9898
Write-Host "To delete the app, run command 'az group delete --name $resourceGroup'"
9999
exit
100100
}
101-
}
101+
}

0 commit comments

Comments
 (0)