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.
More on Entra ID, RBAC and Identities
What is Microsoft Entra ID and how is it different from on-prem Active Directory?BeginnerWhat is the difference between an app registration and a service principal?BeginnerWhat is a managed identity and what problem does it solve?BeginnerSystem-assigned vs user-assigned managed identity: when do you use each?IntermediateHow does Azure RBAC evaluate access?IntermediateName the core built-in roles and the difference between Owner, Contributor and User Access Administrator.Beginner