Replacing Tokens in Azure DevOps

It seems that out of the box Azure DevOps Pipelines are really only configured to do XDT Transforms of XML config files and substitution in JSON files in certain situations, typically Web App deployments.

If you need more flexibility (e.g. token substitution in yaml files) then I recommend the Replace Tokens Task from Guillaume Rouchon.

It’s simple to use but has enough flexibility for all the tasks I’ve thrown at it.