Remediation
Note: Once enabled, purge protection cannot be disabled.
From Azure Portalβ
- Go to
Key Vaults. - Click the name of a key vault.
- Under
Settings, clickProperties. - Select the radio button next to
Enable purge protection (enforce a mandatory retention period for deleted vaults and vault objects). - Click
Save. - Repeat steps 1-5 for each key vault requiring remediation.
From Azure CLIβ
For each key vault requiring remediation, run the following command to enable purge protection:
az resource update --resource-group <resource-group> --name <key-vault> --resource-type "Microsoft.KeyVault/vaults" --set properties.enablePurgeProtection=true
From PowerShellβ
For each key vault requiring remediation, run the following command to enable purge protection:
Update-AzKeyVault -ResourceGroupName <resource-group> -VaultName <key-vault> -EnablePurgeProtection