What is the difference between an app registration and a service principal?
BeginnerConceptEntra ID, RBAC and Identities
Answer
An app registration (application object) is the global definition of an app, living in its home tenant: client ID, redirect URIs, credentials, federated credentials, API permissions.
A service principal (enterprise application) is the local instance of that app in a specific tenant, and it is what RBAC roles are assigned to. One app registration can have service principals in many tenants (multi-tenant apps).
az ad sp create-for-rbac creates both in one shot plus a client secret, which is convenient and also the reason so many secrets leak.
More on Entra ID, RBAC and Identities
What is Microsoft Entra ID and how is it different from on-prem Active Directory?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.BeginnerWhat are `NotActions` and why are they not a deny?Intermediate