Home › Studies › AZ-104 › Identities & Governance › Azure RBAC

Azure RBAC

role assignments · scopes · built-in roles · control vs data plane · elevate access · custom roles · troubleshooting

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

How Azure RBAC works

Fundamental roles

RoleWhat it does
OwnerFull access to manage all resources, including assigning roles (Actions *, no NotActions)
ContributorFull access to manage all resources, but can’t assign roles, manage Azure Blueprints assignments or share image galleries. Its NotActions include Microsoft.Authorization/*/Write and */Delete.
ReaderView all resources (*/read). No data actions.
User Access AdministratorManages user access to Azure resources (Microsoft.Authorization/* plus */read). Doesn’t manage resources.
Role Based Access Control AdministratorAssigns roles by writing and deleting role assignments (plus */read). Can’t manage access by other ways, such as Azure Policy.

Other built-in roles to know

RoleUse it for
Virtual Machine ContributorCreate and manage VMs and disks. No management access to the virtual network or storage account the VMs use, and can’t assign roles. No data actions (the login data actions belong to the Virtual Machine Login roles).
Virtual Machine Administrator LoginView VMs and sign in as administrator (data actions login/action and loginAsAdmin/action)
Virtual Machine User LoginView VMs and sign in as a regular user (login/action only)
Network ContributorManage networks (Microsoft.Network/*). Doesn’t deploy or manage VMs.
Storage Account ContributorManage storage accounts. No data actions, but provides the account key, which can be used for Shared Key access.
Storage Blob Data OwnerFull access to blob containers and data, including assigning POSIX access control (blobs/*)
Storage Blob Data ContributorRead, write and delete containers and blobs
Storage Blob Data ReaderRead and list containers and blobs (blobs/read)
Monitoring ContributorRead all monitoring data and edit monitoring settings
Monitoring ReaderRead all monitoring data (metrics, logs)
Log Analytics ContributorRead monitoring data and edit monitoring settings, including adding the VM extension, reading storage account keys, adding solutions and configuring diagnostics
Log Analytics ReaderView and search monitoring data and settings. Its NotActions block workspaces/sharedKeys/read.
Tag ContributorManage tags without access to the resources themselves
Resource Policy ContributorCreate and modify resource policy (assignments, definitions, exemptions) and read resources
Cost Management ContributorView costs and manage cost configuration (budgets, exports)
Cost Management ReaderView cost data and configuration

Control plane and data plane

Assigning and checking access

Elevate access

Custom roles

ItemValue
Custom roles per tenant5,000 (2,000 in 21Vianet)
AssignableScopes per roleUp to 2,000. No / or wildcards. Only one management group.
DataActionsA role with DataActions can’t be assigned at management group scope
Create or updateMicrosoft.Authorization/roleDefinitions/write on all assignable scopes
DeleteRemove its assignments first
Role assignments per subscription5,000 (eligible and future-scheduled assignments aren’t counted)

Troubleshooting

CLI and PowerShell

TaskAzure CLIPowerShell
Assign a role by object IDaz role assignment create --assignee-object-id <id> --role "Contributor" --scope <scope>New-AzRoleAssignment (with -ObjectType for new principals)
List assignments at rootaz role assignment list --role "User Access Administrator" --scope "/"Get-AzRoleAssignment
Remove an assignmentaz role assignment delete --assignee <upn> --role "User Access Administrator" --scope "/"Remove-AzRoleAssignment -SignInName <upn> -RoleDefinitionName "User Access Administrator" -Scope "/"
Elevate accessaz rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01"Use the portal or REST
List deny assignmentsNot verifiedGet-AzDenyAssignment
Find a role IDaz role definition list --name "Contributor"n/a

Exam Tips

Tick each tip once you can answer it without looking.

“Manage all resources but must not assign roles” → Contributor. Trap: Owner, which also assigns roles.

“Grant access to resources only, not manage them” → User Access Administrator. Trap: Contributor, which can’t assign roles.

“Assign roles only; must not manage access through Azure Policy” → Role Based Access Control Administrator. Trap: User Access Administrator, which has Microsoft.Authorization/* and is broader.

“Contributor on the subscription and Reader on a resource group inside it” → Effective permission is Contributor: role assignments are additive. Trap: Reader restricting the group.

“A Contributor tries to assign a role and can’t” → Expected: Contributor can’t assign roles; use Owner, User Access Administrator or RBAC Administrator. Trap: assuming Contributor can share access.

“Global Administrator can’t see any subscriptions” → Turn on “Access management for Azure resources” (elevate access). Trap: assigning an Entra role.

“What does elevating access grant?” → User Access Administrator at root scope /, for that user. Trap: Owner on the tenant root management group.

““Add role assignment” is disabled” → You lack Microsoft.Authorization/roleAssignments/write at that scope. Trap: the subscription being disabled.

“Role assigned 3 minutes ago, still access denied” → Wait up to 10 minutes, or sign out and in to refresh the token. Trap: reassigning the role.

“New service principal fails with PrincipalNotFound” → Set principalType, or wait for replication. Trap: the wrong scope.

“VM moved to another resource group; the user lost access” → A role assigned directly on the resource is orphaned: recreate it after the move. Trap: expecting it to move with the VM.

“Subscription transferred to another directory; all access gone” → Transfer permanently deletes role assignments: recreate them. Trap: assuming they migrate automatically.

“Remove the last Owner of a subscription” → Blocked, unless you are Global Administrator or use the override setting. Trap: assuming Contributor can do it.

“Custom role usable across three subscriptions” → List all three in AssignableScopes. Trap: / or a wildcard, which AssignableScopes doesn’t allow.

“Custom role with DataActions at a management group” → Not assignable at management group scope: assign at the subscriptions. Trap: assigning it at the management group.

“Delete a custom role that is still assigned” → Remove its assignments first. Trap: deleting it directly.

“Check what a user can do at a resource group” → IAM › Check access: shows inherited and deny assignments. Trap: the Role assignments tab alone.

“Create your own deny assignment” → Not possible: Azure creates them (for example deployment stacks). Trap: a portal option for customers.

“Subscription Owner can’t read blobs with Entra authentication” → Assign Storage Blob Data Reader or Contributor: control-plane access isn’t inherited by the data plane. Trap: assuming Owner or Contributor includes data access.

“Manage VMs but not the virtual network or storage account, and no role assignment” → Virtual Machine Contributor. Trap: Contributor, which is broader.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Self-Service Password ResetAzure Policy →