When defining an Azure API Management policy in a Bicep or ARM template, the format of the policy value may be set to rawxml (and rawxml-link) or xml (and xml-link). I know what the rawxml and xml formats are, but I rather have a separated file i.e. api-policy.xml and call it from the module bicep file. Is this even possible?
if I try putting the local path like that it would just return "The provided link is malformed."
resource service_api_management_name_policy 'Microsoft.ApiManagement/service/apis/policies@2021-08-01' = {
parent: service_internal_api
name: 'policy'
properties: {
value: '/api-policy.xml'
format: 'rawxml-link'
}
}