Skip to content

Commit a5f8bcd

Browse files
authored
Update conditions-role-assignments-cli.md
1 parent 5aad46a commit a5f8bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/role-based-access-control/conditions-role-assignments-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To add a role assignment condition, use [az role assignment create](/cli/azure/r
3232
The following example shows how to assign the [Storage Blob Data Reader](built-in-roles.md#storage-blob-data-reader) role with a condition. The condition checks whether container name equals 'blobs-example-container'.
3333

3434
```azurecli
35-
az role assignment create --role "Storage Blob Data Reader" --scope /subscriptions/mySubscriptionID/resourceGroups/myResourceGroupName --scope /subscriptions/mySubscriptionID/resourceGroups/myResourceGroupName --assignee "[email protected]" --resource-group {resourceGroup} \
35+
az role assignment create --role "Storage Blob Data Reader" --scope /subscriptions/mySubscriptionID/resourceGroups/myResourceGroupName --assignee "[email protected]" --resource-group {resourceGroup} \
3636
--description "Read access if container name equals blobs-example-container" \
3737
--condition "((!(ActionMatches{'Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read'})) OR (@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:name] StringEquals 'blobs-example-container'))" \
3838
--condition-version "2.0"

0 commit comments

Comments
 (0)