Skip to content

Commit 94ea243

Browse files
msmbaldwinCopilot
andcommitted
Enable purge protection on key-vault-create vault
Adds enablePurgeProtection: true to the vault in key-vault-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: 08a19c7d-365d-455d-bbac-4de41d42a718 - deploymentName: kvc-deploy-2b2b8b3f - 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 94ea243

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

quickstarts/microsoft.keyvault/key-vault-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": "9714026315215760608"
8+
"templateHash": "5424899472990749957"
99
}
1010
},
1111
"parameters": {
@@ -88,6 +88,7 @@
8888
"tenantId": "[parameters('tenantId')]",
8989
"enableSoftDelete": true,
9090
"softDeleteRetentionInDays": 90,
91+
"enablePurgeProtection": true,
9192
"sku": {
9293
"name": "[parameters('skuName')]",
9394
"family": "A"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ resource kv 'Microsoft.KeyVault/vaults@2023-07-01' = {
4141
tenantId: tenantId
4242
enableSoftDelete: true
4343
softDeleteRetentionInDays: 90
44+
enablePurgeProtection: true
4445
sku: {
4546
name: skuName
4647
family: 'A'

quickstarts/microsoft.keyvault/key-vault-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 secret stored inside the key vault.",
77
"githubUsername": "seanbamsft",
88
"docOwner": "mumian",
9-
"dateUpdated": "2026-04-10"
9+
"dateUpdated": "2026-05-13",
10+
"validationType": "Manual",
11+
"testResult": {
12+
"deployments": {
13+
"templateFileName": "main.bicep",
14+
"correlationId": "08a19c7d-365d-455d-bbac-4de41d42a718",
15+
"deploymentName": "kvc-deploy-2b2b8b3f"
16+
}
17+
}
1018
}

0 commit comments

Comments
 (0)