How to Implement Azure Blob Storage Lifecycle Management to Automatically Delete Old Blobs?
I'm stuck on something that should probably be simple. I'm trying to set up Azure Blob Storage Lifecycle Management to automatically delete blobs that are older than 30 days, but I'm working with issues with the configuration... I have created a lifecycle management policy JSON as follows: ```json { "rules": [ { "name": "DeleteOldBlobs", "filters": { "blobTypes": ["blockBlob"], "minBlobAge": "P30D" }, "actions": { "delete": { "delete": true } } } ] } ``` After deploying this policy using the Azure CLI with the command `az storage account management-policy create --account-name <your_account_name> --resource-group <your_resource_group> --policy @policy.json`, I expected the old blobs to be deleted after 30 days. However, when checking for blobs older than 30 days, they are still present in the container. I've confirmed that my Storage Account is set to the correct performance tier (Standard) and replication (LRS). Additionally, I verified that the blobs I want to delete are indeed of type `blockBlob` and older than 30 days. I donβt see any errors in the Azure portal regarding the lifecycle management policy. Is there something specific I'm missing in my lifecycle management configuration? Should I enable any additional settings or wait for a certain period before the policy takes effect? Any insights would be greatly appreciated! I'm working in a Ubuntu 22.04 environment. Thanks, I really appreciate it!