Allow Automatic Remediation of deployIfNotExists templates
What it says on the tin... deployIfNotExists should have an option to automatically remediate the issue by deploying the appropriate resources. (and/or automatically creating and running the remediation task)
Philipp Molzer commented
This would be valuable for preventing drift.
JP Alfaro commented
Is this functionality on the roadmap?
Eric Yew commented
One option is to create a simple powershell runbook automation task to run daily based on assignment id to remediate:
Hi Govenrance and Deployment Team, as far as I know we need to Start-Remediation task manually to get this done. We would like the remediation to happen automatically.
[Deleted User] commented
Yes, exactly that: automatically remediate existing resources in addition to newly-created or updated resources.
I have also created a deployIfNotExists job. I can manually select Remediate and it works as expected, but it does not automatically remediate. Is there something that needs to be added to the template or is this not possible?
Hi, to clarify are you looking to auto-remediate existing resources by default at the time of assigning the policy? Policy already auto-remediates for newly created or updated resources.