Skip to content

Identity and access

Microsoft's design area: Identity and access management.

What this area is

Who can do what, in Entra ID and in Azure RBAC, and how that stays least privilege when the platform team and the application teams are different people.

Entra ID is the tenant. Azure RBAC is the authorisation on management groups, subscriptions, and resources. They are not the same thing. Global Administrator is an Entra role. Owner is an Azure role. The elevation step in the prerequisites turns a Global Administrator into someone who can also manage Azure at the root, which is exactly as powerful as it sounds.

What an enterprise does

  • Cloud-only break-glass accounts, excluded from conditional access, stored offline, tested.
  • Entra ID P2: Privileged Identity Management for Owner, User Access Administrator, and Global Administrator. Eligible, not permanent. Access reviews on those groups.
  • Groups, not users, on every role assignment. A platform group for the connectivity subscription. A separate group per application team, assigned at their subscription or resource group, never at the intermediate root.
  • Custom roles when a built-in role is wider than the job. Contributor includes Microsoft.Network/publicIPAddresses/* and role assignment rights in some combinations. Enterprises trim that.
  • Management group RBAC for the platform. Application teams do not get rights on the management or connectivity subscriptions.
  • Conditional access: MFA, compliant device, named locations. No legacy authentication.

What this lab implements

Two custom roles in infra/modules/rbac/custom-roles.bicep, defined on the subscription and assigned to nobody unless you pass an object id:

Role What it can do What it cannot do
ALZ Lab Platform Reader */read, support tickets, read policy and policy insights Anything that changes Azure
ALZ Lab Landing Zone Operator Resource groups, deployments, virtual networks, NSGs, diagnostic settings, read Log Analytics Public IPs, Azure Firewall, Bastion, VPN gateways, DDoS plans, role assignment writes, policy writes

platformReaderPrincipalId and landingZoneOperatorPrincipalId default to empty. An empty principal is the safe lab: the role exists so you can read it in the portal, and nobody has it.

Prefer a group object id over a user object id if you do assign one. Set platformReaderPrincipalType to Group.

What this lab simplifies

  • No Entra ID P2, so no PIM, no access reviews, no Identity Protection. Say "eligible via PIM" when you describe the enterprise, and "standing role, not assigned" when you describe the lab.
  • No break-glass account is created. Do not use your everyday Global Administrator as if it were one. At least put MFA on it.
  • No conditional access policies are deployed. A mistaken conditional access policy can lock you out of the only account in a personal tenant.
  • Custom roles are subscription-scoped. An enterprise defines them on the intermediate management group so every subscription in the tree can be an assignable scope. Assignable scopes cannot be above the scope where the role is defined, which is why this lab does not pretend the role covers alz-corp until the role is redefined there.
  • The Owner elevation in prerequisites is for creating management groups. Turn the Entra "access management for Azure resources" toggle back off afterwards.

Where the code is

  • infra/modules/rbac/custom-roles.bicep
  • Parameters on infra/main.bicep