azure-docs
azure-docs copied to clipboard
Wildcard character in prefixMatch
The document only mentions that the '*' and '?' characters do not function as wildcard characters, but it does not indicate if any other characters can be used as wildcards. It would be helpful to have clarification on whether any characters can be used as wildcards, such as the '%' character. Providing this information would be more useful than simply listing which characters are not wildcards.
Since it is only possible to enter up to 10 filters per rule, not being able to use wildcard characters would necessitate creating multiple rules, each with 10 filters.
As a provider of SQL management services for hundreds of customers, we often encounter situations where a single customer may have over 200 containers, each comprising of the server name with various suffixes corresponding to lifecycle rules. To manage these containers, we use Azure PowerShell cmdlets like Add-AzStorageAccountManagementPolicyAction, New-AzStorageAccountManagementPolicyFilter, New-AzStorageAccountManagementPolicyRule, and Set-AzStorageAccountManagementPolicy.
While this solution is elegant, it can be difficult to manage because it requires constructing the complete policy when using Set-AzStorageAccountManagementPolicy, and it's not possible to append to existing filters in place. Additionally, the limit of 10 filters per container can be restrictive, and we hoped to bypass this limitation by setting filters via PowerShell.
The lack of support for wildcards in the Lifecycle rules poses a significant challenge for customers trying to manage storage accounts with a large number of containers. If wildcards were supported, it would greatly simplify the management process and alleviate a major pain point for our customers. We hope that Microsoft will consider adding support for wildcards in the future.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 1fba9bbf-0023-8aed-edf5-3c456031e47f
- Version Independent ID: 977b6498-cb6d-ea8b-4e67-1272c2a89ec8
- Content: Optimize costs by automatically managing the data lifecycle - Azure Storage
- Content Source: articles/storage/blobs/lifecycle-management-overview.md
- Service: storage
- Sub-service: common
- GitHub Login: @normesta
- Microsoft Alias: normesta
@normesta Can you please check and add your comments on this doc update request as applicable.
I need this feature too, pls. :)
Hi @AjayBathini-MSFT - wildcards are not supported in prefix matches. I've updated the doc accordingly. Thanks!
#please-close