Skill 1.2.2
Assign roles at different scopes
Key Concepts
Azure RBAC has four scope levels: management group, subscription, resource group and resource. An assignment at a parent scope is inherited by every child, so Reader on a subscription allows reading every resource group and resource in it. The security principal can be a user, a group, a service principal or a managed identity. Assigning roles to groups rather than individuals simplifies administration, and assigning at the narrowest scope that still meets the requirement follows least privilege.
Assignments are created on the Access control (IAM) page of the scope with Add role assignment, or with az role assignment create and New-AzRoleAssignment. Assigning privileged administrator roles, such as Owner, can include conditions that limit which roles the assignee can grant to others. A subscription supports up to 4,000 role assignments, and inherited assignments cannot be removed at a child scope; they must be removed where they were created.