Azure policy definition to deploy Storage account lifecycle management policy

SHAKIR SHAIKH 0 Reputation points

Hi Team,

Can anyone help me to write an Azure policy definition to configure a standard storage account lifecycle management policy with the below rule.

I want to deploy it at mass on all storage accounts in the entire subscription.

Appreciate any help.


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.
2,897 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
829 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,946 Reputation points Microsoft Employee


    Have a look at this sample template for applying a Lifecycle Management policy to a storage account. You can try this policy with the CLI.

    Comment down below if this template wasn't helpful or not what you were looking for.