I have a template repo and I use this checker as part of my validation. I have enabled the delete retention policy to blobs under the storage account I am creating in a particular template, but but the checker continues to fail. It is not identifying the property it is trying to find, even though it is there.
Azure_Storage_BCDR_Enable_Soft_Delete | Storage | Verify | Microsoft.Storage/storageAccounts , Microsoft.Storage/storageAccounts/blobServices | Medium | Not found | -1 | | $.properties.deleteRetentionPolicy.enabled | 'True' | resources[0] | 39 | Soft delete should be enabled to allow recovery of deleted blobs or blob snapshots | .\Templates\storage-with-blob-container.json
I have a template repo and I use this checker as part of my validation. I have enabled the delete retention policy to blobs under the storage account I am creating in a particular template, but but the checker continues to fail. It is not identifying the property it is trying to find, even though it is there.
Azure_Storage_BCDR_Enable_Soft_Delete | Storage | Verify | Microsoft.Storage/storageAccounts , Microsoft.Storage/storageAccounts/blobServices | Medium | Not found | -1 | | $.properties.deleteRetentionPolicy.enabled | 'True' | resources[0] | 39 | Soft delete should be enabled to allow recovery of deleted blobs or blob snapshots | .\Templates\storage-with-blob-container.json
This is how my template looks, what I am missing?
// Create storage account with a blob storage container { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {... }, "variables": {... }, "resources": [ { "type": "Microsoft.Storage/storageAccounts", "name": "[variables('storageAccountName')]", "apiVersion": "2019-04-01", "location": "[parameters('Location')]", "sku": { "name": "[parameters('StorageAccountType')]" }, "identity": { "type": "SystemAssigned" }, "kind": "StorageV2", "properties": { "supportsHttpsTrafficOnly": true }, "resources": [ { "type":"Microsoft.Storage/storageAccounts/blobServices", "name": "[concat(variables('storageAccountName'), '/default')]", "apiVersion": "2019-04-01", "dependsOn": [ "[variables('storageAccountName')]" ], "properties": { "deleteRetentionPolicy": { "enabled": true, "days": 10 } }, "resources": [ { // The entire name of the container must be used (including resource name) "type":"Microsoft.Storage/storageAccounts/blobServices/containers", "name": "[concat(variables('storageAccountName'), '/default/blb-', parameters('ContainerName'))]", "apiVersion": "2019-04-01", "dependsOn": [ "[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('storageAccountName'), 'default')]", "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]" ], "properties": { "publicAccess": "None" } } ] } ] } ], "outputs": { ... } }