how to keep limited Number (like only want to keep up to 5 files) of version file in container

Vishnu Prakash Balotiya 11 Reputation points
2023-10-10T13:20:52.2+00:00

hello all

i have one requirement like i want to keep limited number of version file as a back up.

once version file count get stored more then 5 want to remove all version file if increased more then 5.

any solution will be helpful.

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
558 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,466 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,141 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,677 Reputation points Microsoft Employee
    2023-10-17T06:41:52.26+00:00

    @Vishnu Prakash Balotiya Thanks for posting your query on Microsoft Q&A.

    You can use lifecycle management to automatically delete old versions. For more information about lifecycle management, see Optimize costs by automating Azure Blob Storage access tiers.

    Also, see Azure RBAC action to delete a blob version

    Let me know if you have further questions.

    0 comments No comments

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.