title: ARM Template API Management Deploy PolicyContent
body: <p>I am trying to use ARM templates to deploy my API management service and have everything working except policyContent. Basically it wants the policyContent as "Json escaped Xml Encoded contents of the Policy." This is very hard to maintain and was trying to find a way to take an XML file and inject the contents into this string, or some better way. I would like not to have to write a program to maintain these strings because it feels like something that shouldn't be so complicated.</p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/templates/microsoft.apimanagement/service/apis/policies" rel="nofollow noreferrer">Policy Reference</a></p>
  
  <p><a href="https://github.com/Azure-Samples/service-fabric-api-management/blob/master/apim.json#L62" rel="nofollow noreferrer">Example with string</a></p>
  
  <p><code>{
    "name": "policy",
    "type": "Microsoft.ApiManagement/service/apis/policies",
    "apiVersion": "2017-03-01",
    "properties": {
      "policyContent": "string"
    }
  }
  </code></p>