Interview Prep/Azure/Storage, Key Vault and Monitoring

Key Vault RBAC vs access policies.

IntermediateConceptStorage, Key Vault and Monitoring
Answer

Access policies (legacy): per-vault list of principals and permissions (get, list, set...), managed by anyone with Contributor on the vault, which is a privilege escalation path.

Azure RBAC (recommended, and the default for new vaults on recent API versions): data-plane roles like Key Vault Secrets User (read), Key Vault Secrets Officer (manage), Key Vault Crypto User, Key Vault Administrator, assignable at vault or individual secret scope, governed by PIM and the same audit as the rest of Azure.

az keyvault create -n kv-shop-prod -g rg -l centralindia --enable-rbac-authorization true
az role assignment create --role "Key Vault Secrets User" \
  --assignee <principalId> --scope $(az keyvault show -n kv-shop-prod --query id -o tsv)
Azure All Azure questions Roadmap: Azure core services

More on Storage, Key Vault and Monitoring