Interview Prep/Azure/Entra ID, RBAC and Identities

What are the scopes you can assign a role at, and what scope do you use for a CI identity?

IntermediateConceptEntra ID, RBAC and Identities
Answer

Management group, subscription, resource group, or an individual resource (and for some services, sub-resources such as a Key Vault secret, a storage container, or an AKS namespace with Azure RBAC).

For CI we assign at the smallest scope that works: AcrPush on the registry, Azure Kubernetes Service RBAC Writer on the namespace, Contributor on the app's resource group for infra deploys. Subscription-wide Owner for a pipeline is a finding in every audit.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities