From b796b6a49236a4eb87d29f4744ee481cc2141155 Mon Sep 17 00:00:00 2001 From: Kevin Rowlandson Date: Mon, 12 Oct 2020 09:15:36 +0100 Subject: [PATCH] Fix for Policy Set Definitions bug --- resources.policy_set_definitions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] } }