Skip to content

Commit

Permalink
fix: refine role assignment query in bootstrap.sh to check only for S…
Browse files Browse the repository at this point in the history
…torage Blob Data Contributor
  • Loading branch information
ShakutaiGit committed Mar 11, 2025
1 parent e40efd4 commit d89b8e9
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 @@ -39,7 +39,7 @@ check_role_assignments() {
roles=$(az role assignment list \
--assignee "$USER_OBJECT_ID" \
--scope "/subscriptions/$ARM_SUBSCRIPTION_ID/resourceGroups/$TF_VAR_mgmt_resource_group_name/providers/Microsoft.Storage/storageAccounts/$TF_VAR_mgmt_storage_account_name" \
--query "[?roleDefinitionName=='Storage Blob Data Contributor' || roleDefinitionName=='Storage Account Contributor'].roleDefinitionName" --output tsv)
--query "[?roleDefinitionName=='Storage Blob Data Contributor'].roleDefinitionName" --output tsv)

if [[ $roles == *"Storage Blob Data Contributor"* ]]; then
echo "both"
Expand Down

0 comments on commit d89b8e9

Please sign in to comment.