How to exclude a container in azure storage lifecycle management?

Viewed 20

I want to remove containers and blobs except a specified container after 7 days in Azure Blob Storage. But now I only know the way how to apply filter in the specified prefix folders but don't know how to exclude specified container of blob. Is there any way to attrieve this?

1 Answers

So far, Lifecycle Management Policy only supports prefixMatch. As explained in this documentation : "The prefix match considers only positive (=) logical comparisons. Negative (!=) logical comparisons are ignored.".

For the moment, you would have to separate your blobs into different containers and/or find appropriate positively matching rules to select the blobs you want the lifecycle management policy to have effect on.

Related