Azure Administrator AZ-104 · Manage Azure Identities and Governance · hard
You are authoring a custom Azure RBAC role in JSON for a junior operations team. They need all permissions included in the built-in Virtual Machine Contributor role except they must not be allowed to delete virtual machines (Microsoft.Compute/virtualMachines/delete), AND they must be able to read blobs inside storage containers (Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read). Where in the custom role JSON definition should the VM delete exclusion and the blob read permission be placed?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: C. Place the VM delete exclusion in notActions and the blob read in dataActions
In an Azure RBAC role definition, management-plane exclusions are placed in notActions (Microsoft.Compute/virtualMachines/delete) to subtract them from wildcard actions, while data-plane permissions (reading/writing actual blobs inside a container) must be placed in dataActions (Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read).
Why the other options are wrong
- A. Place both permissions inside assignableScopes at the root management group — assignableScopes lists the subscriptions or resource groups where the role can be assigned, not action strings.
- B. Place the VM delete exclusion in dataActions and the blob read in notActions — This reverses both control-plane vs data-plane and allow vs exclude blocks.
- D. Place both strings inside notDataActions with actions left empty in JSON — Putting the blob read in notDataActions with empty actions and dataActions grants zero permissions.
More Manage Azure Identities and Governance questions
- A cloud governance architect assigns an Azure Policy definition with the Modify effect at the subscription scope to…
- A company wants to allow its 5,000 employees to reset their own forgotten Microsoft Entra passwords from the sign-in…
- A resource group named RG-Prod-DB has a ReadOnly resource lock applied at the resource group level. Inside RG-Prod-DB…
- You are configuring a Microsoft Entra ID Dynamic Device Group named GRP-Win11-Prod that must automatically include all…
- An organization has 15,000 users in Microsoft Entra ID across 8 regional offices. The IT director wants the regional…
All Manage Azure Identities and Governance questions and the topic overview →
Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.