How to create storage lifecycle rules in the different policies

Yong Zhang 0 Reputation points
2025-02-27T10:47:21.52+00:00

I am trying to use java code to set the storage lifecycle policies to expire the data by prefixes. But I noticed it only allow to setting 100 rules under a policy https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview?utm_source=chatgpt.com#lifecycle-management-policy-definition

So If I want to set more than 100 rules, how to achieve that by java code? If the policy name is not "default", it will show resource not found. What is the proper way to do this in java?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,101 questions
{count} votes

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.