Azure Access Combines an Identity, a Role and a Scope

In progress

Every permission in Azure answers three questions: who (an identity in Microsoft Entra ID, formerly Azure Active Directory), can do what (a role: a named set of permissions), on which resources (a scope in the resource hierarchy). A role assignment ties the three together. Most access mistakes come from getting the third one wrong: the right role at too high a scope.

Who: Security Principals in the Tenant

Each organisation has one Entra ID tenant, at the top of its Azure hierarchy. Signing in to any Azure service authenticates against it. An identity that can be granted access is a security principal:

  • a user (a person);
  • a group of users;
  • a service principal (an application's identity);
  • a managed identity (an identity Azure creates and rotates for a resource such as a VM or function).

Applications and automation are identities too, which is why the term is "principal" rather than "user".

What: Roles Are Bundles of Permissions

Azure role-based access control (RBAC) offers broad built-in roles and narrow ones:

Role Allows
Owner everything in scope, including granting access to others
Contributor create and manage resources, but not grant access
Reader view only
Virtual Machine Contributor manage VMs, nothing else

Custom roles list exact actions when no built-in role fits.

Where: Scope and Inheritance

Scopes nest: management group → subscription → resource group → resource. An assignment at one level applies to everything below it.

Authentication (Entra ID proves who you are) and authorization (RBAC decides what you may do) are separate steps: a valid sign-in with no role assignment can do nothing.

References

Review cards

Flashcard Why is Contributor on the subscription a bad way to "get started" with a contractor?

Assignments apply to everything below their scope, so they can change every resource in every resource group, now and in future. Assign at the resource group or resource they work on.

Flashcard What is a managed identity, and why is it a security principal rather than a user?

An identity Azure creates and rotates for a resource such as a VM or function. Applications and automation get access too, so the term covers users, groups, service principals and managed identities.

Flashcard Why assign Azure roles to groups rather than to people?

Membership is managed in Entra ID: removing someone from the group removes all their access at once, instead of hunting individual assignments.