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

  • APlace both permissions inside assignableScopes at the root management group
  • BPlace the VM delete exclusion in dataActions and the blob read in notActions
  • CPlace the VM delete exclusion in notActions and the blob read in dataActionsCorrect answer
  • DPlace both strings inside notDataActions with actions left empty in JSON

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.

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.