I have set up some Azure App Config keys which I plan to inject into my Azure DevOps Pipeline which among others, comprises of a number of terraform config files and critically, some XML files which define my Azure API policies.
When the pipeline is executed, it is required to set each API policy's backend service base-url along the lines of the following:
<set-backend-service base-url="https://mydomain[az:config:1st-api:key:value]" />
<set-backend-service base-url="https://mydomain[az:config:2nd-api:key:value]" />
<set-backend-service base-url="https://mydomain[az:config:3rd-api:key:value]" />
I am however finding it really challenging injecting the required App Config values in my policy XML files as depicted above. Any idea or suggestion how I can achieve this?
PS: I can even use a data.tf
file to import from Azure the very App Config key values into my Terraform configuration, however for the XML configuration files, it is proving an impossibility.