Skip to content

Commit 46fa956

Browse files
work in progress
1 parent 6d4bb8a commit 46fa956

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • samples/web-app-sql-database/python/scripts

samples/web-app-sql-database/python/scripts/deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,18 @@ PRINCIPAL_ID=$($AZ webapp identity show \
324324
--query "principalId" \
325325
--output tsv)
326326

327+
if [ -z "$PRINCIPAL_ID" ]; then
328+
echo "Failed to retrieve principalId for web app [$WEB_APP_NAME]"
329+
exit 1
330+
fi
331+
327332
# Create Key Vault
328333
echo "Creating Key Vault [$KEY_VAULT_NAME]..."
329334
$AZ keyvault create \
330335
--name "$KEY_VAULT_NAME" \
331336
--resource-group "$RESOURCE_GROUP_NAME" \
332337
--location "$LOCATION" \
338+
--enable-rbac-authorization false \
333339
--only-show-errors 1>/dev/null
334340

335341
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)