RBAC

Documentation:

Info

Role-based access control (RBAC) is a mechanism that can help you manage who can access your Azure resources. RBAC lets you determine what operations specific users can do on specific resources, and control what areas of a resource each user can access.

Azure RBAC is an authorization system built on Azure Resource Manager. Azure RBAC provides fine-grained access management of resources in Azure.

ConceptDescriptionExamples
SecurityΒ principalAn object that represents something that requests access to resources.User, group, service principal, managed identity
RoleΒ definitionA set of permissions that lists the allowed operations. Azure RBAC comes with built-in role definitions, but you can also create your own custom role definitions.Some built-in role definitions:Β Reader,Β Contributor,Β Owner,Β User Access Administrator
ScopeThe boundary for the requestedΒ levelΒ of access, or β€œhow much” access is granted.Management group, subscription, resource group, resource
Role assignmentAnΒ assignmentΒ attaches aΒ role definitionΒ to aΒ security principalΒ at a particularΒ scope. Users can grant the access described in a role definition by creating (attaching) an assignment for the role.- Assign theΒ User Access AdministratorΒ role to an admin group scoped to a management group
- Assign theΒ ContributorΒ role to a user scoped to a subscription

Comparison between RBAC roles vs Entra roles

Azure RBAC rolesMicrosoft Entra ID admin roles
AccessΒ managementManages access to Azure resourcesManages access to Microsoft Entra resources
ScopeΒ assignmentScope can be specified at multiple levels, including management groups, subscriptions, resource groups, and resourcesScope is specified at the tenant level
RoleΒ definitionsRoles can be defined via the Azure portal, the Azure CLI, Azure PowerShell, Azure Resource Manager templates, and the REST APIRoles can be defined via the Azure admin portal, Microsoft 365 admin portal, and Microsoft Graph PowerShell

Apply role-based access control

  • Microsoft Entra admin rolesΒ are used to manage resources in Microsoft Entra ID, such as users, groups, and domains. These roles are defined for the Microsoft Entra tenant at the root level of the configuration.
  • Azure RBAC rolesΒ provide more granular access management for Azure resources. These roles are defined for a requestor or resource and can be applied at multiple levels: the root, management groups, subscriptions, resource groups, or resources.