Azure policy definition to deploy Storage account lifecycle management policy

SHAKIR SHAIKH 0 Reputation points
2023-06-01T19:18:50.83+00:00

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.

lifecycle

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
    2023-06-08T00:29:49.3366667+00:00

    Hi @SHAKIR SHAIKH

    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.