From 0763f05dad269cfc8781eff6dfb27a6b0409033b Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Thu, 12 Nov 2020 19:59:22 +0100 Subject: [PATCH] Use Rawxml format for global API policies string Fixes #9223 --- .../internal/services/apimanagement/api_management_resource.go | 2 +- .../apimanagement/tests/api_management_resource_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/azurerm/internal/services/apimanagement/api_management_resource.go b/azurerm/internal/services/apimanagement/api_management_resource.go index 97643d4c93a94..2e9d47e7808fe 100644 --- a/azurerm/internal/services/apimanagement/api_management_resource.go +++ b/azurerm/internal/services/apimanagement/api_management_resource.go @@ -1343,7 +1343,7 @@ func expandApiManagementPolicies(input []interface{}) (*apimanagement.PolicyCont if xmlContent != "" { return &apimanagement.PolicyContract{ PolicyContractProperties: &apimanagement.PolicyContractProperties{ - Format: apimanagement.XML, + Format: apimanagement.Rawxml, Value: utils.String(xmlContent), }, }, nil diff --git a/azurerm/internal/services/apimanagement/tests/api_management_resource_test.go b/azurerm/internal/services/apimanagement/tests/api_management_resource_test.go index 976e06b4097a9..115124177f14e 100644 --- a/azurerm/internal/services/apimanagement/tests/api_management_resource_test.go +++ b/azurerm/internal/services/apimanagement/tests/api_management_resource_test.go @@ -626,6 +626,7 @@ resource "azurerm_api_management" "test" { xml_content = < +