Skill 2.4.5

Describe Azure role-based access control (RBAC)

Key Concepts

A role assignment has three parts: a security principal (a user, group, service principal or managed identity), a role definition (a collection of permitted actions) and a scope (a management group, subscription, resource group or single resource). Built-in roles include Owner (full access, including granting access to others), Contributor (create and manage resources but not grant access), Reader (view only) and User Access Administrator (manage access only), plus many service-specific roles. Custom roles can be created.

Role assignments are inherited: a role assigned at a subscription applies to every resource group and resource in it. Azure RBAC is an allow model: a user's effective permissions are the combination of all of their role assignments. Azure RBAC is enforced on every action that goes through Azure Resource Manager, whichever tool is used. Good practice is the principle of least privilege: grant the narrowest role at the narrowest scope, preferably to groups rather than individuals.