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

remediation task not working as expected

Nikhleshk opened this issue · comments

Used this code in assignmemt.org

module "org_mg_Network-Watcher_initiative" {
source = "..//modules/set_assignment"
initiative = module.Network-Watcher_initiative.initiative
assignment_scope = data.azurerm_management_group.org.id
assignment_effect = "DeployIfNotExists"
skip_remediation = false
skip_role_assignment = false
role_definition_ids = module.Network-Watcher_initiative.role_definition_ids
assignment_parameters = {
effect1 = "AuditIfNotExists"
listOfLocations = [
"WestEurope",
"NorthEurope",
"EastUS"
]
}
}

Policy is getting assigned properly but remediation not as expected.
Capture

closing duplicate issue #28