diff --git a/resources.policy_set_definitions.tf b/resources.policy_set_definitions.tf index 50abce706..82e60285a 100644 --- a/resources.policy_set_definitions.tf +++ b/resources.policy_set_definitions.tf @@ -19,7 +19,7 @@ resource "azurerm_policy_set_definition" "enterprise_scale" { ] content { policy_definition_id = policy_definition_reference.value["policyDefinitionId"] - parameter_values = try(length(policy_definition_reference.value["parameters"]) > 0, false) ? jsonencode(policy_definition_reference.value["parameters"]) : jsonencode(local.empty_map) + parameter_values = try(length(policy_definition_reference.value["parameters"]) > 0, false) ? jsonencode(policy_definition_reference.value["parameters"]) : null reference_id = try(length(policy_definition_reference.value["policyDefinitionReferenceId"]) > 0, false) ? policy_definition_reference.value["policyDefinitionReferenceId"] : policy_definition_reference.value["policyDefinitionId"] } }