Interview Prep/Azure/Entra ID, RBAC and Identities

Why do new role assignments sometimes not work immediately?

AdvancedConceptEntra ID, RBAC and Identities
Answer

Two effects:

  1. Propagation: role assignments can take up to around 10 minutes to be enforced everywhere (longer for some data planes, and up to 30 minutes for management group scopes).
  2. Token caching: group membership is baked into tokens. A user added to a group needs a fresh token (az logout + az login, or az account get-access-token after cache clear).

In IaC, a newly created identity may not be found yet (PrincipalNotFound). Setting principal_type = "ServicePrincipal" (Terraform skip_service_principal_aad_check = true) avoids the directory lookup that fails on replication lag.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities