Azure role-based access control
Grant exactly the access people need with role assignments at the right scope, and read who can do what.
In this lesson you'll learn
- The three parts of every role assignment
- How scope and inheritance work from management group to resource
- The key built-in roles, and control plane versus data plane
- Entra roles versus Azure roles, custom roles and elevated access
1. Who, what and where
New to RBAC? Start here
RBAC answers one question: who can do what, and where? A role assignment joins three things together, like a key card that opens certain doors in certain buildings.
2. Scope and inheritance
Roles assigned at a scope flow down to everything beneath it. Try it: choose where to assign the role and see what it reaches.
Try it in the app. This lesson has an interactive scope explorer here. Open the lesson in the exam app
3. The roles you must know
| Role | Manage resources | Grant access |
|---|---|---|
| Owner | Yes | Yes |
| Contributor | Yes | No |
| Reader | View only | No |
| User Access Administrator | No | Yes |
| Role Based Access Control Administrator | No | Yes, can be limited by conditions |
Service-specific roles follow a pattern: Virtual Machine Contributor, Network Contributor and Storage Account Contributor manage one resource type and cannot grant access.
4. Entra roles versus Azure roles
| Item | Microsoft Entra roles | Azure roles (RBAC) |
|---|---|---|
| Controls | The directory: users, groups, licences, domains | Azure resources: VMs, storage, networks |
| Examples | Global Administrator, User Administrator | Owner, Contributor, Reader |
| Scope | Tenant or administrative unit | Management group, subscription, resource group, resource |
A Global Administrator has no Azure resource access by default. They can switch on Access management for Azure resources (elevate access), which grants User Access Administrator at the root scope. Turn it off again when finished.
5. Custom roles
{
"Name": "VM Operator",
"Actions": [
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/restart/action",
"Microsoft.Compute/virtualMachines/read"
],
"NotActions": [],
"DataActions": [],
"AssignableScopes": ["/subscriptions/<id>/resourceGroups/rg-web"]
}
- Actions are control plane permissions. DataActions are data plane permissions, such as reading blobs or signing in to a VM.
- AssignableScopes limits where the role can be assigned.
- Export roles as JSON to copy them between tenants.
Example
SS Kaiser's night shift must restart frozen VMs but never delete or resize them. No built-in role fits, so the team creates the VM Operator role above and assigns it to the NightShift group on the production resource group.
Exam traps to remember
- Granting access needs Owner, User Access Administrator or RBAC Administrator. Contributor cannot.
- Least privilege means the narrowest role and the narrowest scope that works.
- For a resource to deploy using its own identity, enable its managed identity first, then assign the role.
- Check access in the IAM blade shows exactly what a principal can do at a scope.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-104 Azure Administrator app.
Practise in the app