Hello @Arif,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand your question about some trouble with the lifecycle management policy for your Azure Storage account.
From the details you’ve shared, the lifecycle policy you've set up looks like it should work; however, there are a few things you might want to double-check:
- Time for Policy to Take Effect**: It usually takes up to 24 hours for a new or updated lifecycle management policy to start executing. Since you mentioned it’s been over a week, this may not be the issue, but it's good to keep in mind for future changes.
- Blob Age**: You mentioned that the blobs are dated from January 2025. Ensure that the blobs indeed meet the criteria you set (i.e., older than 30 days as per your policy). If they are dated in the future, they will not be eligible for deletion.
- Supported Blob Types**: Make sure that all blobs in your backup container are block blobs since your policy only targets them. If there are other types of blobs present, those will be ignored.
- Immutable Policies or Locks**: Check if any blobs have immutable policies or legal holds that might prevent them from being deleted.
- Storage Account Configuration**: If your storage account has any data protection features enabled (like soft delete or versioning), it might affect how deletions are perceived. Blobs might still exist in a soft deleted state even if they're marked for deletion.
- Check Diagnostics**: Use the lifecycle management diagnostic tool in Azure to see if there are any insights or issues detected with your policy.
- Follow Azure Event Logs**: To monitor the actions taken by your lifecycle management policies, check the LifecyclePolicyCompleted event to see if any deletions are being logged.
Relevant Documentation:
https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview
https://docs.microsoft.com/azure/storage/blobs/lifecycle-management-policy-configure
https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview#faq
https://docs.microsoft.com/azure/storage/common/storage-network-security#manage-exceptions
https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview#policy-execution
Kindly let us know if the above helps or you need further assistance on this issue.