Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
74 views
in Technique[技术] by (71.8m points)

How to test Azure storage lifecycle?

I am currently using Azure Blobs. I want Azure to automatically delete some old data which are older then X number of days and prefix with wildcard.Such as

  • myContainer/*/xxx.mp4

I only see this document prefixMatch

question from:https://stackoverflow.com/questions/65881313/how-to-test-azure-storage-lifecycle

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Azure blob storage Life cycle management policy does not support wildcard in prefixMatch. You can see this github issue and this user feedback.

To do that, you need write your own code to implement this logic. For example, you can use azure function with timer trigger, or logic app as mentioned in the comments.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...