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
SecretNearExpiryevent → 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.
More on Storage, Key Vault and Monitoring
What types of storage accounts and services exist?BeginnerWhat are the storage redundancy options?BeginnerExplain blob access tiers and lifecycle management.IntermediateWhat is a SAS token and what are the types?IntermediateHow do you lock down a storage account?IntermediateWhat protects blobs from accidental deletion?Intermediate