Closed DeagleGross closed 2 years ago
Tested on sample APIM instance template extraction.
globalServicePolicy.template.json
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "ApimServiceName": { "type": "string" }, "PolicyXMLSasToken": { "type": "string" }, "PolicyXMLBaseUrl": { "type": "string" } }, "resources": [ { "properties": { "value": "[concat(parameters('PolicyXMLBaseUrl'), '/globalServicePolicy.xml', parameters('PolicyXMLSasToken'))]", "format": "rawxml-link" }, "name": "[concat(parameters('ApimServiceName'), '/policy')]", "type": "Microsoft.ApiManagement/service/policies", "apiVersion": "2021-01-01-preview" } ] }
parameters.json
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "ApimServiceName": { "value": " " }, "LinkedTemplatesBaseUrl": { "value": " " }, "LinkedTemplatesUrlQueryString": { "value": " " }, "PolicyXMLBaseUrl": { "value": " " }, "PolicyXMLSasToken": { "value": " " } }, "resources": [] }
Tested on sample APIM instance template extraction.
globalServicePolicy.template.json
parameters.json