gettek / terraform-azurerm-policy-as-code

Terraform modules that simplify the workflow of custom and built-in Azure Policies

Home Page:https://learn.microsoft.com/en-us/azure/governance/policy/concepts/policy-as-code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why we can't see remediation in affect after executing the code

ashuranjan1008 opened this issue · comments

Hi,

Inspite of successful run of the policy, I am not getting the remediation task.

image

Hi @ashuranjan1008

What is the compliance state of this assignment? Remediations will only be created for non compliant resources

Hi @gettek,

Even though I am having non compliant recourses, but still task is not showing.

image

@ashuranjan1008 can you please try and create a remediation task outside of the module using the native resource and see what happens?

@gettek I can see remediation task getting created while running single policy but, when I try to do the same while taking initiative it doesn't work in the same way.

image

This seems to be an issue in the provider. Awaiting updates here hashicorp/terraform-provider-azurerm#17096

Remediation resources should accept policyDefinitionReferenceId in favour of policy_definition_id for set_assignments

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.