I am trying to set a rule which will delete all blobs in a container if they have not been modified for x number of days. I am following this link
The issue is, I am not able to find a rule which will work for all blobs in a specific container. I tried using container/
and container/*
but to no effect.
Can someone guide how to achieve this? Thanks
Output of Get-AzStorageAccountManagementPolicy
PS C:\windows\system32> Get-AzStorageAccountManagementPolicy -ResourceGroupName “” -StorageAccountName “”
ResourceGroupName : “” StorageAccountName : “” Id : /subscriptions/ddd /resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storaccount/managementPolicies /default Type : Microsoft.Storage/storageAccounts/managementPolicies LastModifiedTime : 1/5/2021 10:54:21 AM Rules : [ { "Enabled": true, "Name": "allblobs", "Definition": { "Actions": { "BaseBlob": { "TierToCool": null, "TierToArchive": null, "Delete": { "DaysAfterModificationGreaterThan": 1 } }, "Snapshot": null }, "Filters": { "PrefixMatch": [ "cont1/" ], "BlobTypes": [ "blockBlob" ] } } } ]