Skip to content

Commit

Permalink
Use Rawxml format for global API policies string
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Nov 12, 2020
1 parent 1172d14 commit 0763f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ resource "azurerm_api_management" "test" {
xml_content = <<XML
<policies>
<inbound>
<set-variable name="abc" value="@(context.Request.Headers.GetValueOrDefault("X-Header-Name", ""))" />
<find-and-replace from="xyz" to="abc" />
</inbound>
</policies>
Expand Down

0 comments on commit 0763f05

Please sign in to comment.