In an ordinary Azure pipeline (no release), based on the input parameter I want to tedit a XML file used in the pipeline. For example I want to change log level if needed. Next, the file would be loaded by az storage file upload
- task: myTask@1
displayName: 'Upload Config File'
inputs:
scriptLocation: 'inlineScript'
inlineScript: |
myConfiguration="${{ parameters.name }}-configuration.xml"
# here want to modify the xml above
az storage file upload --share-name $(config-file-share) \
--source "$(input-files-path)/${myConfiguration}"
After reading Azure File transforms and variable substitution reference I'm a little bit lost... can I use is it mechanism in no release pipeline? But if I can, I have no idea how to apply this... It's hard to about a good example. I think that an easier way would be just use awk.
Could you please share your opinion and an example if have?