简体   繁体   中英

How to exclude a container in azure storage lifecycle management?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM