What is a managed identity and what problem does it solve?
BeginnerConceptEntra ID, RBAC and Identities
Answer
A managed identity is a service principal whose credentials Azure creates, stores and rotates for you. Code running on a supported resource asks the local endpoint (IMDS at 169.254.169.254 on VMs, a platform endpoint on App Service/Functions) for a token and never sees a secret.
# Inside a VM with a managed identity
curl -s -H Metadata:true \
"http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://vault.azure.net"
It removes the whole class of "secret expired" and "secret leaked in git" incidents.
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?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