Cloud service · Azure · Updated

Azure role-based access control (Azure RBAC) - Azure RBAC is the authorization system built into Azure Resource Manager that determines who can perform which operations on Azure resources.

In short

Azure RBAC grants users, groups, service principals, and managed identities permissions through role assignments at a management group, subscription, resource group, or individual resource. It controls Azure management operations and supported service data operations; Microsoft Entra directory administration uses a separate role system.

Cloud Services Hub →

8 key features of Azure role-based access control (Azure RBAC)

01
Built-in roles

Use job-specific roles such as Network Contributor or Backup Reader instead of granting broad management access. Review the role definition to confirm which operations it includes.

02
Custom role definitions

Define a role when built-in roles grant too much access or omit required operations. Specify management permissions with Actions and supported data permissions with DataActions.

03
Scoped assignments and inheritance

Assign roles at a management group, subscription, resource group, or resource. Use parent scopes for deliberately shared access and narrower scopes for workload-specific permissions.

04
Human and workload identities

Assign roles to Microsoft Entra users, groups, service principals, or managed identities. Use groups for team access and dedicate a workload identity to each application or deployment process that needs separate permissions.

05
Management and data permissions

Grant permission to configure a resource separately from permission to use its data. For example, a team can manage storage account settings without receiving direct blob data permissions through its management role.

06
Role assignment conditions

Add conditions for supported scenarios to narrow what an assignment grants. For example, restrict supported Azure Blob Storage operations using blob index tags.

07
Programmatic access management

Deploy role assignments through Bicep or ARM templates, or manage them through Azure CLI, Azure PowerShell, and REST APIs. Keep assignment changes in the same review process as infrastructure changes.

08
Access inspection and change auditing

Use Access control (IAM) to inspect direct and inherited assignments at a resource scope. Use the Azure Activity Log to review management-plane events such as role assignment creation and deletion.

Where Azure role-based access control (Azure RBAC) is used

  1. 01
    Delegate application operations

    Grant an application team a job-specific role on its production resource group rather than Contributor across the subscription. Manage membership through a Microsoft Entra group so team changes do not require editing each resource assignment.

  2. 02
    Give applications access to data

    Assign an application’s managed identity Storage Blob Data Reader on the container it reads from. The application can authenticate with Microsoft Entra ID without storing an account key.

  3. 03
    Separate deployment from access administration

    Give the deployment identity only the resource-management permissions it needs. Have a separate, authorized identity create role assignments so routine deployments cannot grant new access.

  4. 04
    Provide temporary production privileges

    Make an operations group’s individual engineers eligible for the required Azure role through Microsoft Entra Privileged Identity Management, then require time-limited activation for production maintenance.

  5. 05
    Review infrastructure without allowing changes

    Assign Reader to an audit group at the subscription scope to inspect resource configuration. Grant separate read permissions for service data or logs only where the review requires them.

How Azure role-based access control (Azure RBAC) is priced

Included with Azure subscriptions

Azure RBAC is available at no additional charge, including built-in roles, custom roles, and standard role assignments. Resources accessed through Azure RBAC are billed under their own service pricing.

Separate licensing and service charges

Optional integrations have their own pricing or licensing requirements. For example, Microsoft Entra Privileged Identity Management requires qualifying licensing, and routing logs to Log Analytics can incur ingestion and retention charges.

Services Azure role-based access control (Azure RBAC) works with

Microsoft Entra ID authenticates users and workloads, and Azure RBAC determines what those identities can do at a given Azure scope. A typical environment grants access through Entra groups for people and through dedicated managed identities for applications. Privileged Identity Management adds eligible, time-limited access for administrators who do not need standing production privileges.

Design management-plane and data-plane access separately. A deployment identity can configure storage accounts or vaults, while the application identity receives a data role on the container or vault it actually uses. Verify both the service's authorization model and the client's credential type: a Key Vault must use the Azure RBAC permission model for Azure data roles to govern secret access, and a Blob Storage client using an account key does not rely on the caller's Azure RBAC data role.

For AKS, distinguish Azure resource management permissions from permissions to act on Kubernetes objects. Use namespace-scoped roles for Entra-authenticated operators when Azure RBAC for Kubernetes Authorization is enabled, and manage Kubernetes service account permissions with native Kubernetes RBAC. Centralize subscription Activity Logs in Azure Monitor to review role assignment changes, and configure service-specific logging when you need to audit data access.

Microsoft Entra ID (formerly Azure AD)

Microsoft Entra ID authenticates identities, and Azure RBAC authorizes their access to Azure resources. For example, assign the Network Contributor role to a Microsoft Entra security group on a networking resource group, then manage engineer access through group membership.

Azure Key Vault

When a vault uses the Azure RBAC permission model, data-plane roles authorize access to its keys, secrets, and certificates. For example, assign Key Vault Secrets User to an application's managed identity at the vault scope to let it read secrets without granting permission to change vault settings.

Azure Blob Storage

Azure Blob Storage can authorize data requests made with a Microsoft Entra token using Azure data roles. For example, assign Storage Blob Data Reader to a reporting job's managed identity at the container scope and have the job use Microsoft Entra authentication instead of a storage account key.

Azure Kubernetes Service (AKS)

With Azure RBAC for Kubernetes Authorization enabled on a Microsoft Entra-integrated AKS cluster, Azure roles can authorize Microsoft Entra identities to perform Kubernetes API operations. For example, assign Azure Kubernetes Service RBAC Reader to a support group for one namespace; native Kubernetes RBAC continues to authorize Kubernetes service accounts.

Azure Monitor

Azure Monitor collects Azure Activity Log events for management-plane changes, including changes to Azure role assignments. For example, export subscription Activity Logs to a Log Analytics workspace and create an alert for role assignment changes at production subscription or resource group scopes.

API Management

Azure RBAC controls who can administer API Management instances, APIs, products, and policies. Workspace-scoped roles let API teams manage their own workspaces without administering the entire instance.

App Service

Azure RBAC controls who can create and manage apps, deployment slots, and App Service plans. The Website Contributor role lets a deployment team manage web apps without granting it control of the hosting plan.

Artifact Signing

Azure RBAC separates account administration from permission to sign. The Artifact Signing Certificate Profile Signer role lets a build identity submit signing requests against a specific certificate profile.

Automation

Azure RBAC controls who can edit runbooks and who can start or stop Automation jobs. A runbook's managed identity can also receive a scoped Azure role on the resources it operates.

Azure Advisor

Azure RBAC determines which resources a user can see recommendations for and whether the user can dismiss or postpone those recommendations.

Alternatives to Azure role-based access control (Azure RBAC) in other clouds

AWS

AWS Identity and Access Management (IAM)AWS Identity and Access Management (IAM)

AWS IAM and Azure RBAC both let teams control who can perform specific operations on cloud resources. AWS IAM can manage users and groups and attach policies to identities or resources, while Azure RBAC grants access to Microsoft Entra identities through role assignments that descendants inherit from parent scopes.

Compare fact by fact
Azure role-based access control (Azure RBAC)AWS Identity and Access Management (IAM)
How permissions are grantedRole assignments at hierarchical scopesPolicies on identities or resources
Identity sourceMicrosoft Entra identitiesIAM users and groups; federation
Explicit deniesAzure-managed deny assignmentsDeny statements in IAM policies

What is Azure role-based access control (Azure RBAC)

2 min read

An Azure RBAC role assignment combines a security principal, a role definition, and a scope. The principal identifies who receives access, the role definition specifies what operations are allowed, and the scope determines where those permissions apply. For example, assigning Virtual Machine Contributor to a Microsoft Entra group at a resource group scope lets its members manage virtual machines in that group without granting the same role elsewhere in the subscription.

Azure scopes form a hierarchy: management group, subscription, resource group, and resource. Assignments at a parent scope are inherited by descendants. Permissions from applicable role assignments are generally additive, so assigning Reader at a child scope does not remove Contributor access inherited from its parent. Azure-managed deny assignments can block specified operations even when a role assignment allows them. Use the narrowest scope that covers the job, and check inherited access before assuming that removing a direct assignment revokes a principal's permissions.

Choose a built-in job-function role before creating a custom role. Owner can manage resources and assign Azure roles, Contributor can manage resources but cannot assign Azure roles, and Reader provides read-only access to resource management information. Resource management and data access are separate: an application that reads blobs using Microsoft Entra authentication needs a role with the relevant data permissions, such as Storage Blob Data Reader, rather than the general Reader role. If no built-in role fits, define a custom role with only the required operations and specify where it can be assigned.

Manage access through Access control (IAM) in the Azure portal, or use Azure CLI, Azure PowerShell, Bicep, ARM templates, or the REST API. The caller creating an assignment must have the role assignment write permission at the target scope. Prefer assigning human access through Microsoft Entra groups and giving workloads their own managed identities where supported. For changes managed as code, review the principal, role, and scope together so a deployment does not grant broader access than intended.

When an operation fails, verify which identity the client is using, whether the target operation is on the management or data plane, and whether the assignment covers the target resource. Use Check access in the portal to inspect direct and inherited assignments, and check for applicable conditions or deny assignments. Allow time for a recent change to propagate and retry with a fresh sign-in or token where applicable. Use the Azure Activity Log to investigate management-plane changes to role assignments; use service-specific logs to investigate data access.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.