"az pipelines run variables" not working the way i expected

961 Views Asked by At

i have a branch in git with a .yaml build file which has a script to simply print out the value of the variable declared in the .yaml

if i run the command: az pipelines run --id 999 --variables "myvar=myvar" I expected the variable to change as I am injecting it. it doesnt.

am i misunderstanding what this switch does? if so, what is it supposed to do and/or how can i achieve my goal?

i tried i tried i dont understand these SO "quality standards" <= (this line allowed me to save the post)

1

There are 1 best solutions below

4
PatrickLu-MSFT On

For az pipelines variable ,there are four commands

  • az pipelines variable create Add a variable to a pipeline.
  • az pipelines variable delete Delete a variable from pipeline.
  • az pipelines variable list List the variables in a pipeline.
  • az pipelines variable updateUpdate a variable in a pipeline.

You should use az pipelines variable update command to update a variable in a pipeline.

Command sample:

az pipelines variable update --name