Home > Enterprise >  Enable diagnostic settings for Storage account using Azure Policy Definition
Enable diagnostic settings for Storage account using Azure Policy Definition

Time:10-13

I am trying to set inbuilt policy definition to send logs of storage account to Log analytics workspace using Azure Portal.

Note: I am using personal azure account subscription with Free Trail.

1st Step: enter image description here

Update:

enter image description here

enter image description here

enter image description here

CodePudding user response:

The issue must be for existing storage accounts only if you are not selecting the create the remediation task as shown below:

enter image description here

If the above is selected then your all the storage accounts present in subscription will become compliant (I have tested it for a resource group and not subscription).

enter image description here

Note: If this is not selected then existing storage account will error out with the same error you are getting, but the new ones which will be created will get compliant .


Steps to follow if the Policy is applied and remediation is not selected :

  1. Click on Create remediation task from the compliance page and it will automatically populate the non-compliant storage accounts .

    enter image description here

  2. Click on remediate. It will submit the process and after the remediate process succeeds , it will take around 15 mins for all non-compliant storage account to become compliant.

    enter image description here

  • Related