File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212 exit 1
1313fi
1414
15- echo " Deploying Azure SQL Database in Location '$location ', Resournce Group: '$resourceGroup '..." ;
16- azureSQLSRV=" zv6qimpc6cbrg"
1715azureSQLDB=" todo_v2"
18- azureSQLServer=$( az deployment group create \
16+ azureSQLSRV=` az sql server list -g $resourceGroup --query ' [0].name' -o tsv`
17+ echo " (Server: '$azureSQLSRV ', Location: '$location ', Resource Group: '$resourceGroup ')"
18+ azureSQLServerName=$( az deployment group create \
1919 --name " sql-db-deploy-2.0" \
2020 --resource-group $resourceGroup \
2121 --template-file azure-sql-db.arm.json \
@@ -29,6 +29,6 @@ azureSQLServer=$(az deployment group create \
2929
3030echo " Azure SQL Database available at" ;
3131echo " - Location: $location "
32- echo " - Server: $azureSQLServer "
32+ echo " - Server: $azureSQLServerName "
3333echo " - Database: $azureSQLDB "
3434echo " Done."
You can’t perform that action at this time.
0 commit comments