@Nagashree Balasundaram Thank you for reaching out to Microsoft Q&A. As you mentioned in our docs: PolicyContentFormat, supported formats are rawxml
, rawxml-link
, xml
, xml-link
. You are correct, both rawxml-link
and xml-link
only supports http endpoint and unfortunately, local file reference is not supported.
However, I think you can use rawxml/xml format, then pass the xml contents via parameter. Azure CLI supports reading file contents with @
in parameter and here is sample reference: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-cli#inline-parameters or use different parameter files for each environment with XML values. I haven't tested this one before but thought it would be good to try.
Refer Quick Template for passing XML string as parameter. Feel free to add a comment if you have any questions or thoughts. Would be happy to assist.