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
- A role assignment = security principal + role definition + scope. Principals: user, group, service principal, managed identity.
- Scopes: management group › subscription › resource group › resource. Child scopes inherit.
- RBAC is additive: effective permissions are the sum of assignments. Group assignments are transitive.
- Evaluation: deny assignments are checked first. Effective control-plane permissions =
ActionsminusNotActions. Then conditions. NotActionsis not a deny rule. If a second role grants the excluded action, the user is allowed. Only deny assignments block.- Customers can’t create deny assignments directly. Azure creates them (for example deployment stacks). Customer-managed deny assignments are in private preview. List them under IAM › Deny assignments.
- RBAC data is global and free.
- Entra roles manage Entra resources (users, groups, domains). Azure roles manage Azure resources. They don’t overlap by default.
- Classic subscription administrator roles are fully retired as of May 2026. Assign Azure RBAC roles instead.
Fundamental roles
| Role | What it does |
|---|---|
| Owner | Full access to manage all resources, including assigning roles (Actions *, no NotActions) |
| Contributor | Full 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. |
| Reader | View all resources (*/read). No data actions. |
| User Access Administrator | Manages user access to Azure resources (Microsoft.Authorization/* plus */read). Doesn’t manage resources. |
| Role Based Access Control Administrator | Assigns 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
| Role | Use it for |
|---|---|
| Virtual Machine Contributor | Create 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 Login | View VMs and sign in as administrator (data actions login/action and loginAsAdmin/action) |
| Virtual Machine User Login | View VMs and sign in as a regular user (login/action only) |
| Network Contributor | Manage networks (Microsoft.Network/*). Doesn’t deploy or manage VMs. |
| Storage Account Contributor | Manage storage accounts. No data actions, but provides the account key, which can be used for Shared Key access. |
| Storage Blob Data Owner | Full access to blob containers and data, including assigning POSIX access control (blobs/*) |
| Storage Blob Data Contributor | Read, write and delete containers and blobs |
| Storage Blob Data Reader | Read and list containers and blobs (blobs/read) |
| Monitoring Contributor | Read all monitoring data and edit monitoring settings |
| Monitoring Reader | Read all monitoring data (metrics, logs) |
| Log Analytics Contributor | Read monitoring data and edit monitoring settings, including adding the VM extension, reading storage account keys, adding solutions and configuring diagnostics |
| Log Analytics Reader | View and search monitoring data and settings. Its NotActions block workspaces/sharedKeys/read. |
| Tag Contributor | Manage tags without access to the resources themselves |
| Resource Policy Contributor | Create and modify resource policy (assignments, definitions, exemptions) and read resources |
| Cost Management Contributor | View costs and manage cost configuration (budgets, exports) |
| Cost Management Reader | View cost data and configuration |
Control plane and data plane
- Control plane =
Actions/NotActions, managed through Azure Resource Manager. Data plane =DataActions/NotDataActions. - Control-plane access isn’t inherited by the data plane when the container’s authentication method is Microsoft Entra user account rather than access key.
- An Owner at subscription scope can read, write and delete containers but can’t read blobs by default. The role definitions page says they would have to retrieve the storage access keys and use them.
- Reader on a subscription can view a storage account but by default can’t view the underlying data.
Assigning and checking access
- Assign: scope › Access control (IAM) › Add › Add role assignment › Role › Members › (Conditions) › (Assignment type) › Review + assign.
- Assigning needs
Microsoft.Authorization/roleAssignments/write(RBAC Administrator, User Access Administrator or Owner). If Add role assignment is disabled, you lack it. - List at a scope: IAM › Role assignments. The Check access tab shows inherited assignments and deny assignments for a principal, not child-scope assignments.
- A user’s roles across scopes: Entra ID › Users › user › Azure role assignments.
- You can download role assignments from IAM as CSV or JSON (Inherited, At current scope, Children).
- With Privileged Identity Management (P2 or Governance), assignments can be eligible or active, permanent or time-bound. Eligible assignments can’t go to service principals or managed identities.
- A delegate condition on Owner, RBAC Administrator or User Access Administrator limits the roles and principals the user can assign.
Elevate access
- A Global Administrator can turn on Access management for Azure resources (Entra ID › Properties). This gives User Access Administrator at root scope
/. - It’s a per-user setting. Sign out and in for it to apply, and turn it off when finished.
Custom roles
| Item | Value |
|---|---|
| Custom roles per tenant | 5,000 (2,000 in 21Vianet) |
| AssignableScopes per role | Up to 2,000. No / or wildcards. Only one management group. |
| DataActions | A role with DataActions can’t be assigned at management group scope |
| Create or update | Microsoft.Authorization/roleDefinitions/write on all assignable scopes |
| Delete | Remove its assignments first |
| Role assignments per subscription | 5,000 (eligible and future-scheduled assignments aren’t counted) |
Troubleshooting
- Changes can take up to 10 minutes. Sign out and in or refresh the token. Management group data-plane changes can take hours. Managed identity group changes can take hours (the cache is about 24 hours).
- Moving a resource orphans a role assignment made on it: recreate it after the move. Transferring a subscription to another directory permanently deletes all role assignments.
- You can’t delete the last Owner assignment on a subscription unless you’re Global Administrator or use the override setting.
PrincipalNotFoundfor a new principal is a replication delay. SetprincipalType(such as User, ServicePrincipal or Group).- A role assignment name is a GUID. Reusing it for a different principal fails with
RoleAssignmentUpdateNotPermitted. Useguid()for names. - “Insufficient privileges” when a service principal runs
az role assignment create: give it Directory Readers, or use--assignee-object-id.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Assign a role by object ID | az role assignment create --assignee-object-id <id> --role "Contributor" --scope <scope> | New-AzRoleAssignment (with -ObjectType for new principals) |
| List assignments at root | az role assignment list --role "User Access Administrator" --scope "/" | Get-AzRoleAssignment |
| Remove an assignment | az role assignment delete --assignee <upn> --role "User Access Administrator" --scope "/" | Remove-AzRoleAssignment -SignInName <upn> -RoleDefinitionName "User Access Administrator" -Scope "/" |
| Elevate access | az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01" | Use the portal or REST |
| List deny assignments | Not verified | Get-AzDenyAssignment |
| Find a role ID | az 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
- What is Azure RBAC
- Assign Azure roles using the portal
- Azure roles, Microsoft Entra roles and classic administrator roles
- List Azure deny assignments
- List Azure role assignments
- Built-in roles: privileged
- Built-in roles: general
- Built-in roles: compute
- Built-in roles: storage
- Built-in roles: networking
- Built-in roles: monitor
- Built-in roles: management and governance
- Understand Azure role definitions
- Troubleshoot Azure RBAC
- Elevate access to manage all subscriptions
- Azure custom roles
Checked against Microsoft Learn on November 13, 2026.