Interview Prep/Azure/Identity and Authorization Errors

`The user, group or application 'appid=...;oid=...' does not have secrets get permission on key vault 'kv-legacy;location=centralindia'.`

BeginnerTroubleshootingIdentity and Authorization Errors
Answer

Likely causes → The vault uses the legacy access policy model and the identity has no access policy (or lacks get).

Diagnose →

az keyvault show -n kv-legacy --query "properties.accessPolicies[].{oid:objectId, secrets:permissions.secrets}"

Fix →

  1. Short term: az keyvault set-policy -n kv-legacy --object-id <oid> --secret-permissions get list
  2. Plan migration to RBAC (assign equivalent roles, then switch enableRbacAuthorization)

Prevent → Create new vaults with RBAC only.

Azure All Azure questions Roadmap: Azure core services

More on Identity and Authorization Errors