Storage account allows a maximum of 100 rules defined in a management policy.

suresh Reddy 61 Reputation points
2023-11-27T11:01:53.41+00:00

We could see in the storage life cycle management the rules exceed 100, so it failed to provision

Storage account allows a maximum of 100 rules defined in a management policy. We cannot configure flow log with retention policy enabled for this storage account in azure ? why ?

Error: Storagetestmax001 allows a maximum of 100 rules defined in a management policy. We cannot configure flow log with retention policy enabled for this storage account.

{"statusMessage":"{"status":"Failed","error":{"code":"ResourceOperationFailure","message":"The resource operation completed with terminal provisioning state 'Failed'.","details":[{"code":"TooManyRulesInManagementPolicy","message":"Storage account /subscriptions/XXXX-XXX-XXXX-XXX/resourceGroups/rg-test-XXXX-01/providers/Microsoft.Storage/storageAccounts/Storagetestmax001 allows a maximum of 100 rules defined in a management policy. We cannot configure flow log with retention policy enabled for this storage account.","details"

Could you please help my query ?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,538 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva Villa 285 Reputation points Microsoft Employee Moderator
    2023-11-28T13:10:45.2366667+00:00

    suresh Reddy

    Thanks for reaching Microsoft Q&A Team.

    I would like to inform you that you can only define up to 100 rules in a policy for Azure storage Blob Lifecycle management. Please check the following article for more information.

    https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview#lifecycle-management-policy-definition

    We recommend you to create a Lifecyle management policy with less than 100 rules and test the result.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Hope this helps. Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    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.