We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4bb8a commit 46fa956Copy full SHA for 46fa956
1 file changed
samples/web-app-sql-database/python/scripts/deploy.sh
@@ -324,12 +324,18 @@ PRINCIPAL_ID=$($AZ webapp identity show \
324
--query "principalId" \
325
--output tsv)
326
327
+if [ -z "$PRINCIPAL_ID" ]; then
328
+ echo "Failed to retrieve principalId for web app [$WEB_APP_NAME]"
329
+ exit 1
330
+fi
331
+
332
# Create Key Vault
333
echo "Creating Key Vault [$KEY_VAULT_NAME]..."
334
$AZ keyvault create \
335
--name "$KEY_VAULT_NAME" \
336
--resource-group "$RESOURCE_GROUP_NAME" \
337
--location "$LOCATION" \
338
+ --enable-rbac-authorization false \
339
--only-show-errors 1>/dev/null
340
341
if [ $? -eq 0 ]; then
0 commit comments