implementing Azure API Management not applying policies using ARM templates
Could someone explain I've encountered a strange issue with I'm trying to deploy an Azure API Management instance with specific policies defined in an ARM template, but it seems that the policies are not being applied as expected. I've defined my policies in the template, but they don't appear in the Azure Portal after deployment. Here's a snippet of my ARM template where I defined the API and the policies: ```json { "type": "Microsoft.ApiManagement/service/apis", "apiVersion": "2021-08-01", "name": "myApi", "properties": { "apiVersion": "v1", "displayName": "My API", "path": "myapi", "protocols": ["https"], "serviceUrl": "https://mybackend.com", "policies": "<inbound><base /><set-header name='X-My-Header' exists-action='override'><value>MyValue</value></set-header></inbound><backend><base /></backend><outbound><base /></outbound>" } } ``` Upon deploying this template using Azure CLI with the command: ```bash az deployment group create --resource-group myResourceGroup --template-file myTemplate.json ``` I don't see the 'X-My-Header' being set in the actual API Management instance. I've verified the template validates correctly but still no changes reflect in the API policies. I've also tried running the deployment with verbose logging like so: ```bash az deployment group create --resource-group myResourceGroup --template-file myTemplate.json --verbose ``` However, there are no apparent errors in the logs. Has anyone encountered similar issues with deploying policies via ARM templates, or is there a specific configuration that I'm missing? Any insights would be greatly appreciated! This issue appeared after updating to Json latest. Could someone point me to the right documentation? Any advice would be much appreciated.