Interview Prep/Azure/Storage, Key Vault and Monitoring

How does secret rotation work with Key Vault?

AdvancedConceptStorage, Key Vault and Monitoring
Answer
  • Keys: native rotation policy (az keyvault key rotation-policy update) creates new versions on a schedule.
  • Certificates: auto-renew with an integrated CA (DigiCert, GlobalSign) or self-signed, at a lifetime percentage.
  • Secrets: no generic native rotation. Pattern: Event Grid SecretNearExpiry event → Function that generates a new credential in the target system, writes a new version. Consumers that reference the secret without a version (App Service references, CSI driver with rotation) pick it up.

Best rotation is no rotation: replace secrets with managed identities wherever the target supports Entra auth.

Azure All Azure questions Roadmap: Azure core services

More on Storage, Key Vault and Monitoring