Skip to content

Commit ebce40b

Browse files
msmbaldwinCopilot
andcommitted
Enable purge protection on key-vault-secret-create vault
Adds enablePurgeProtection: true to the vault in key-vault-secret-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: 36fa8201-9ac1-4932-8c3c-7d4c1dbf36d6 - deploymentName: kvs-deploy-99a79900 - 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 ebce40b

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

quickstarts/microsoft.keyvault/key-vault-secret-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": "11014436081704906064"
8+
"templateHash": "10998800669048245550"
99
}
1010
},
1111
"parameters": {
@@ -82,6 +82,7 @@
8282
"tenantId": "[parameters('tenantId')]",
8383
"enableSoftDelete": true,
8484
"softDeleteRetentionInDays": 90,
85+
"enablePurgeProtection": true,
8586
"sku": {
8687
"name": "[parameters('skuName')]",
8788
"family": "A"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ resource kv 'Microsoft.KeyVault/vaults@2023-07-01' = {
3838
tenantId: tenantId
3939
enableSoftDelete: true
4040
softDeleteRetentionInDays: 90
41+
enablePurgeProtection: true
4142
sku: {
4243
name: skuName
4344
family: 'A'

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@
55
"description": "This template creates a Key Vault with RBAC authorization enabled and a list of secrets within the key vault as passed along with the parameters",
66
"summary": "Creates a Key Vault with Azure RBAC authorization and a list of secrets",
77
"githubUsername": "rahulpnath",
8-
"dateUpdated": "2026-04-10"
8+
"dateUpdated": "2026-05-13",
9+
"validationType": "Manual",
10+
"testResult": {
11+
"deployments": {
12+
"templateFileName": "main.bicep",
13+
"correlationId": "36fa8201-9ac1-4932-8c3c-7d4c1dbf36d6",
14+
"deploymentName": "kvs-deploy-99a79900"
15+
}
16+
}
917
}

0 commit comments

Comments
 (0)