Interview Prep/Azure/Storage, Key Vault and Monitoring

What are soft delete and purge protection in Key Vault?

IntermediateConceptStorage, Key Vault and Monitoring
Answer

Soft delete is always on: deleted vaults and objects are recoverable for 7–90 days (default 90). The vault name stays reserved during that time, which is why recreating a vault with the same name fails until you recover or purge.

Purge protection blocks purging until the retention period ends, even for admins. Mandatory for vaults holding customer-managed keys for storage, disks or SQL. Once enabled it cannot be disabled.

az keyvault list-deleted -o table
az keyvault recover -n kv-shop-prod
az keyvault purge -n kv-shop-dev   # only if purge protection is off
Azure All Azure questions Roadmap: Azure core services

More on Storage, Key Vault and Monitoring