Lesson 1 of 2 Authorization Solutions

Designing Least-Privilege Access with Azure RBAC

This lesson explains how role assignments work, and how to design them at scale.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain principals, roles and scopes.
  • Distinguish control plane from data plane permissions.
  • Distinguish Azure roles from Microsoft Entra roles.
  • Describe how ABAC conditions narrow access.

How Azure RBAC decides access

Azure role-based access control (RBAC) grants access through a role assignment, which combines three things: a security principal, a role definition and a scope. Scopes form a hierarchy of management group, subscription, resource group and resource, and an assignment is inherited by everything below its scope. Permissions are additive: a principal receives the union of all its assignments. Deny assignments are the exception, and these are created by the platform, for example through deployment stacks, not by customers directly.

Role definitions separate two planes. Actions are management operations in the control plane, such as creating a storage account. DataActions are operations on data, such as reading a blob. This separation means that a Contributor on a storage account can manage it but does not automatically gain data access through Microsoft Entra authorization, which needs a data role such as Storage Blob Data Reader.

Sort into groups

Actions or DataActions?

Exam skills 1.2.3

Classify each operation as a control plane or data plane permission.

Log in to try this activity Interactive activities are free with an account.

Design principles

A design that works for ten resources can fail at ten thousand, so the following principles should guide every recommendation.

  • Assign to groups, not to users. When a person changes jobs, a group membership change adjusts all their access. It also helps with the limit on role assignments per subscription.
  • Use the narrowest scope that covers the need. Assign at management group level only for access that really applies to everything beneath it.
  • Prefer built-in roles. Custom roles need maintenance, and should be created only when no built-in role fits. Limit the number of Owner assignments at subscription level.
  • Grant privileged access just in time. Make users eligible for privileged roles through Privileged Identity Management, instead of keeping permanent assignments.
  • Separate duties. People who approve should not also deploy, and security administrators should not routinely own workloads.

The following diagram shows the privileged access each group receives when permanent Owner assignments across 50 subscriptions are replaced.

Replacing permanent Owner assignments across 50 subscriptions. Privileged Identity Management makes the engineers eligible for the role at the management group, through a group, with activation that requires justification and MFA and is audited. Application teams get read and cost-viewing roles at their own resource groups only.
The scenario is illustrative.

Azure roles and Microsoft Entra roles

Two independent role systems exist, and exam questions test the difference. Azure roles, such as Owner and Contributor, control Azure resources. Microsoft Entra roles, such as User Administrator and Global Administrator, control directory objects such as users and applications. An Owner of a subscription cannot create users, and a User Administrator cannot create virtual machines. A Global Administrator can elevate access to gain control of all subscriptions, but this is an exceptional action that should be audited.

Directory administration can be delegated by using administrative units, which restrict a Microsoft Entra role to a subset of users or groups. For example, regional help desk staff can reset passwords only for their own region's users, which RBAC scopes cannot express.

Sort into groups

Azure role or Entra role?

Exam skills 1.2.3

Decide which role system controls each task.

Log in to try this activity Interactive activities are free with an account.

Attribute-based conditions and delegated assignment

Attribute-based access control (ABAC) adds conditions to role assignments, narrowing what a role grants according to attributes of the request or the resource. It builds on RBAC, and it applies to roles with Blob Storage or Queue Storage data actions. For example, a condition can allow a group to read only those blobs tagged with its project name, replacing hundreds of separate assignments on containers. Conditions can only narrow access; they cannot grant extra permissions, and they do not act as an explicit deny.

Conditions also make delegation safer. A team lead can be given the Role Based Access Control Administrator role with a condition that limits which roles can be assigned, and to whom, so that the lead can manage a team's access without being able to grant Owner.

Managing resources across tenants with Azure Lighthouse

Azure RBAC normally grants access to identities in the tenant that owns the subscription. When another organization must manage the resources, such as a managed service provider, or a group of companies with several tenants, guest accounts in each customer tenant become difficult to govern. Azure Lighthouse provides Azure delegated resource management: a customer delegates a subscription or resource group, and users, groups or service principals in the managing tenant receive built-in roles on it without signing in to the customer tenant. The managing team sees every delegated customer in one portal view, and Azure Policy, Microsoft Sentinel and Azure Arc work across the delegations.

A customer is onboarded either with an Azure Resource Manager template or through a Managed Service offer published in Microsoft Marketplace. Lighthouse has no extra cost. The customer keeps control: its activity log records actions taken by the provider, and it can remove the delegation at any time. Authorizations have deliberate limits. They accept built-in roles only, not custom roles; the Owner role is not supported; roles with data actions are not supported; and User Access Administrator is allowed only to assign roles to managed identities, for example for policy remediation. Eligible authorizations allow just-in-time activation of a delegated role, in the same way as Privileged Identity Management.

In exam scenarios, the decisive requirement is usually that staff in one tenant must manage resources in other tenants without separate accounts in each. That points to Azure Lighthouse, rather than B2B guest accounts with role assignments, which do not scale across many customers.

True or false

Azure Lighthouse limits

Exam skills 1.2.3

Check what Azure Lighthouse authorizations can and cannot do.

Log in to try this activity Interactive activities are free with an account.

Scoping an RBAC design

The following table shows how a typical organization maps responsibilities to scopes and roles, which is a useful recap of the principles above.

GroupScopeRoleReason
Platform administratorsTop-level management groupEligible for OwnerRare, audited, just-in-time administration
Security teamTop-level management groupSecurity ReaderVisibility everywhere without change rights
Network teamConnectivity subscriptionNetwork ContributorManages hubs and shared networking only
Application teamWorkload resource groupContributorFull control only of its own resources
Application identitySingle storage accountStorage Blob Data ReaderData access for one workload
Match the pairs

Scope and role

Exam skills 1.2.3

Match each group with the scope and role a least-privilege design gives it.

Log in to try this activity Interactive activities are free with an account.
Worked example

Least privilege at scale

A company has 50 subscriptions under one management group. Three engineers must occasionally perform administration across all subscriptions. Auditors have objected to their permanent Owner assignments. Application teams in each subscription must be able to view costs and resources across only their own resource groups. What should you recommend?

The engineers require privileged access that is rare and auditable, which calls for Privileged Identity Management: the role is assigned as eligible at the management group, through a group, and activation demands MFA, a justification and an approval.

Application teams should receive Reader and Cost Management Reader through a group at each team's resource group or subscription, depending on the required cost view. A custom role is unnecessary, as built-in roles meet the need. Assigning at the management group would expose all subscriptions to each team, and Microsoft Entra roles would have no effect here, because they do not grant access to Azure resources.

Check yourself

Can an ABAC condition grant a permission that the role itself does not include?

Show answer

No. Conditions can only narrow what the role grants.

Exam Tips

Remember for the exam

  • A role assignment is a principal, a role and a scope; it inherits downward.
  • Actions are control plane; DataActions are data plane.
  • Azure roles manage resources; Microsoft Entra roles manage the directory.
  • ABAC conditions narrow Blob and Queue data access by attributes, and never grant more.
  • Assign to groups, at the narrowest scope, and use PIM for privileged roles.