A clear example of additionalVariables object usage #55
-
In the documentation there are examples of how to supply additionalVariables using variables and multiple glob patterns but there is no example of the first "an object: properties will be parsed as key/value pairs". Can this be provided? I am currently looking into having a powershell-script call into Azure to get metadata. This metadata will then be used to update a settings-file using the replacetokens-task. This is to avoid using variable groups for a lot of settings. Can this be done? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mikaelsand, For your need, the task is able to automatically access environment variables (that's how the agent is passing inline variables and variable groups to tasks) and variables specified in the additional variables input. The additional variables are set in your definition so you cannot update them dynamically during runtime. What you could do in your step where you get the metadata:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi @mikaelsand,
Thanks for the feedback, I'll add a example of passing additional variables using a object (map).
For your need, the task is able to automatically access environment variables (that's how the agent is passing inline variables and variable groups to tasks) and variables specified in the additional variables input. The additional variables are set in your definition so you cannot update them dynamically during runtime.
What you could do in your step where you get the metadata: