Skip to content

Commit

Permalink
make the ARM_CLIENT_ID non mandatory in the bootstrap script (#4128)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalyaron authored Nov 8, 2024
1 parent 80ad011 commit 15fa48b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devops/terraform/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ az storage account create --resource-group "$TF_VAR_mgmt_resource_group_name" \

# Grant user blob data contributor permissions
echo -e "\n\e[34m»»» 🔑 \e[96mGranting Storage Blob Data Contributor role to the current user\e[0m..."
if [ -n "$ARM_CLIENT_ID" ]; then
if [ -n "${ARM_CLIENT_ID:-}" ]; then
USER_OBJECT_ID=$(az ad sp show --id "$ARM_CLIENT_ID" --query id --output tsv)
else
USER_OBJECT_ID=$(az ad signed-in-user show --query id --output tsv)
Expand Down

0 comments on commit 15fa48b

Please sign in to comment.