I'm working with Azure Data Lake Storage (ADLS) and have a multi-tenant setup where each tenant has a separate container. The folder structure within each tenant's container is standardized and includes a Processed directory, structured as follows:
<tenantIdContainer>\Processed
I am trying to implement a lifecycle management rule across these containers. The goal is to automatically move files within the Processed directory to cold storage after a specific period of time. My initial attempt at creating this rule involved using wildcard patterns starting with *, but this approach did not work.
I am seeking guidance on how to correctly set up these lifecycle rules for such a tenant-specific container setup in ADLS. Could you possibly provide some guidance on this?

I don't think you can apply this condition in a single rule. You can apply this condition by creating multiple rules with container names.
You can use the below PowerShell script; it will create each rule for each container for implementing Azure life cycle rules.
Script:
The above script creates a separate rule for each container in the storage account. The rules are stored in an array called
$rules, and each rule is added to the array inside a loop that iterates over all the containers in the storage account. After all the rules have been created, the script applies them to the storage account using theSet-AzStorageAccountManagementPolicycmdlet.Output:
Reference:
Configure a lifecycle management policy - Azure Storage | Microsoft Learn