Interview Prep/Azure/Entra ID, RBAC and Identities

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.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities