Azure policy not able to remediate more than once

asked 2022-06-20T15:30:15.383+00:00
Vinod Nallavade 1 Reputation point

Is the deployIfNotExists policy able to do the remediation automatically or does the remediation task can be created only manually?

I have a policy that will check for resource group lock presence and it will deploy if the lock does not exists. But when I delete the manually it is not being deployed again by remediation task automatically even after 24 hours.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
506 questions
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2022-06-28T09:10:09.89+00:00
    AnuragSingh-MSFT 9,976 Reputation points Microsoft Employee

    @Vinod Nallavade , Apologies for the delayed response.

    The remediation task is run once after its creation, after the policy evaluation cycle when resources are put in non-compliant state. In your case, a new remediation task will have to be created to remediate the non-compliant resources. Please refer to this link for a discussion on similar topic - Remediation with Azure Policy

    Please let me know if you have any questions.