Skip to content

Commit b7a11b4

Browse files
msmbaldwinCopilot
andcommitted
Enable purge protection on key-vault-certificate-create vault
Adds enablePurgeProtection: true to the vault in key-vault-certificate-create/main.bicep (and the regenerated azuredeploy.json). Without purge protection, soft-deleted vault contents can be permanently destroyed during the soft-delete retention window. Enabling purge protection guarantees the configured retention window is honored, which is the recommended Key Vault security baseline. Validation: - correlationId: 05435e1e-63f6-4269-98b1-42955d84a56a - deploymentName: kvcrt-deploy-29b9ab41 - region: eastus - provisioningState: Succeeded metadata.json updated with validationType: Manual and the testResult.deployments block. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ca5c529 commit b7a11b4

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

quickstarts/microsoft.keyvault/key-vault-certificate-create/azuredeploy.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.42.1.51946",
8-
"templateHash": "14056312705210722600"
8+
"templateHash": "11850030662128066774"
99
}
1010
},
1111
"parameters": {
@@ -66,6 +66,7 @@
6666
"enableRbacAuthorization": true,
6767
"enableSoftDelete": true,
6868
"softDeleteRetentionInDays": 90,
69+
"enablePurgeProtection": true,
6970
"enabledForDeployment": false,
7071
"enabledForDiskEncryption": false,
7172
"enabledForTemplateDeployment": false,

quickstarts/microsoft.keyvault/key-vault-certificate-create/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource vault 'Microsoft.KeyVault/vaults@2023-07-01' = {
2929
enableRbacAuthorization: true
3030
enableSoftDelete: true
3131
softDeleteRetentionInDays: 90
32+
enablePurgeProtection: true
3233
enabledForDeployment: false
3334
enabledForDiskEncryption: false
3435
enabledForTemplateDeployment: false

quickstarts/microsoft.keyvault/key-vault-certificate-create/metadata.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,13 @@
66
"summary": "This template creates a Key Vault with Azure RBAC authorization and a self-signed certificate.",
77
"githubUsername": "msmbaldwin",
88
"docOwner": "msmbaldwin",
9-
"dateUpdated": "2026-04-10"
9+
"dateUpdated": "2026-05-13",
10+
"validationType": "Manual",
11+
"testResult": {
12+
"deployments": {
13+
"templateFileName": "main.bicep",
14+
"correlationId": "05435e1e-63f6-4269-98b1-42955d84a56a",
15+
"deploymentName": "kvcrt-deploy-29b9ab41"
16+
}
17+
}
1018
}

0 commit comments

Comments
 (0)