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
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,015 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    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.


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.