question

ChristopherReffner-5023 avatar image
0 Votes"
ChristopherReffner-5023 asked deherman-MSFT commented

Azure blob Storage Life Cycle Management not working

I have setup a StorageV2 (general purpose v2) storage account for my companies backups. I then configured Lifecycle management to delete any files where the last modified date is > 8 days old. However, when I look at the account I am seeing files with last modified dates older than 8 days.

I have also verified that the account has the "Allow Azure services on the trusted services list to access this storage account" check box is checked.

The Json for the rule is below.
{
"rules": [
{
"enabled": true,
"name": "deleteafter8days",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"delete": {
"daysAfterModificationGreaterThan": 8
}
}
},
"filters": {
"blobTypes": [
"blockBlob"
]
}
}
}
]
}

I'm not sure where to go from here to determine why the files are not being deleted by lifecycle managment.

azure-blob-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered deherman-MSFT commented

@ChristopherReffner-5023
There doesn't appear to be an issue with the rule you created. Did you recently create or modify the rule? It can take up to 24 hours for actions to run the first time and up to 48 hrs to complete if the policy was updated. The rule you have created is only for the base blobs and block blobs. Double check that the blobs you are seeing are not snapshots or versions and are indeed block blobs.

Hope this helps! If you are still facing issues let me know and we can work with you directly to see what might be causing this issue.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The Blob Type says they are Page Blobs. Is it not possible to use the life cycle management with page blobs?

0 Votes 0 ·
deherman-MSFT avatar image deherman-MSFT ChristopherReffner-5023 ·

Lifecycle management does not currently support page blobs.
For product feedback and feature requests I will refer you to our feedback forum. This allows the community to add their voice and upvote popular ideas. The forums are monitored and responded to by our product teams.
https://feedback.azure.com/d365community/forum/a8bb4a47-3525-ec11-b6e6-000d3a4f0f84

0 Votes 0 ·