Interview Prep/Azure/Entra ID, RBAC and Identities

System-assigned vs user-assigned managed identity: when do you use each?

IntermediateConceptEntra ID, RBAC and Identities
Answer
System-assigned User-assigned
Lifecycle Tied to the resource, deleted with it Standalone Azure resource
Sharing One resource only Many resources can use it
Pre-provisioning Exists only after the resource is created Create first, grant RBAC, then attach

We prefer user-assigned for anything deployed by IaC: grant roles before the workload exists (no chicken-and-egg), survive resource re-creation without re-granting, and share one identity across VMSS instances or app slots. System-assigned is fine for simple single resources.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities