How to create a lifecycle policy for specific folders?

2023-03-15T19:24:13.4333333+00:00

I want to create a lifecycle rule that impacts only certain folders inside my containers.

I have these 6 folders and I want to move the 3 that don't have the suffix _DELTA in the name to the cool tier. Is that possible?Screenshot 2023-03-15 at 16.05.27

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,149 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Manu Philip 18,321 Reputation points MVP
    2023-03-15T20:42:57.5033333+00:00

    Azure Storage lifecycle management offers a rule-based policy that you can use to transition blob data to the appropriate access tiers or to expire data at the end of the data lifecycle.

    There is no direct life cycle policy approach available to move folders within the file share. So, this need to be implemented with some other way like azure functions.


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. 2023-03-16T15:06:40.04+00:00

    Hello, Manu, thank you for your answer

    My question is not about file share. These folders exists in storage containers. I want to move the blob files to another tier, but I need in some way to filter the paths, because I don't want to impact the others blobs inside the folder with the suffix _DELTA.

    Is there a way to do it with Lifecycle management?


  3. Manu Philip 18,321 Reputation points MVP
    2023-03-24T17:19:04.9+00:00

    I found an easy way to change access tier of selected folders only through Azure Storage Explorer

    Select the folders of interest and select 'Change Access Tier' from the right click menu

    User's image

    Select 'Cool' and apply

    User's image

    Monitor the 'Activities' section as below to the progress of the operation.

    User's image

    Now, all the blobs inside the selected folders should be moved to the Cool tier


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  4. 2023-04-10T20:08:21.3133333+00:00

    Hello, Guys I appreciate your suggestions, but any of them helped me to solve my problem, I have a lot of folders, so I need a way to do it programmatically. I opened a ticket on microsoft support and they are trying to find a way to help me!

    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.