I have created a azure devops release pipeline. I am using this pipeline to install some prerequisites on server for an application. While installing one of the prerequisites, I have a task (powershell script) which needs ChannelPrefix variable value. I want to set it at runtime because that will depend on environment type for which I am building server.
At the moment I am unable to read the azure devops variable value the way I want.



echo "##vso[task.setvariable variable=one]secondValue"-- see learn.microsoft.com/en-us/azure/devops/pipelines/process/…