Rule filters in Lifecycle Management Policies for Azure Blob Storage

Almeida, Joao 20 Reputation points
2025-02-28T10:18:43.78+00:00

Is it possible to use Rule filters in Lifecycle Management Policies for Azure Blob Storage to:

  • Apply a certain rule to all data in a certain folder but;
  • Exclude the rule from being applied to specific folders within that parent folder based on an ID code ?

The goal is to enable archiving policies to the parent folder as default but we want some folders that can be identified by a code in their name to be excluded from archival policies.

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

Accepted answer
  1. Deepanshu katara 14,495 Reputation points MVP
    2025-02-28T13:03:56.8066667+00:00

    Hello , Welcome to MS Q&A

    Azure Blob Storage Lifecycle Management Policies allow you to apply rules using filters such as blobTypes, prefixMatch, and blobIndexMatch. These filters help define which blobs are affected by the lifecycle management rules. However, directly excluding specific subfolders based on an ID code within their names is not natively supported by these filters.

    To achieve this, you might consider implementing a custom solution using Azure Functions or Logic Apps. These tools can provide the flexibility needed to create more granular rules. If you're interested in exploring how to set up such a custom solution,

    For more detailed information, you can refer to the following Microsoft documentation:

    Please let us know if any ques

    Kindly accept answer if it helps

    Thanks

    Deepanshu

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.