In Azure Blob Lifecycle Management, how do you match an entire container?

Greg Nagel 1 Reputation point
2020-10-26T21:00:11.81+00:00

Is there a way to match an entire blob container with Lifecycle management? I tried setting the prefix to the entire container name follow by a slash, but that didn't work.

How often does lifecycle management run? I waited 3 days on the last attempt and none of the dozen blobs that should have matched have been deleted. Lifecycle management applies to existing blobs, right?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,781 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 36,746 Reputation points Microsoft Employee
    2020-10-26T22:08:39.043+00:00

    @Greg Nagel
    To specify all blobs in a container you should set the prefixMatch to just the container name without the slash. An example of this can be found here. Lifecycle policies are run once a day, it can take up to 24hrs for some action to run the first time. If you are updating a policy it may take up to 48hrs for some actions to complete. Yes, it applies to existing blobs and supports both block blob and append blob types.

    -------------------------------

    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.

    4 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.