In VSTS CI/CD , I am setting some variable\'s value in a Powershell task in CI. During CD I want to access that variable\'s value to do something , lets say echo.
I
Check out the Azure DevOps extension Variable Tools for Azure DevOps Services.
In the "build pipeline" you can create a JSON file using "save variables". This file needs to be published as artifact or with existing artifact.
In the "release pipeline" you can restore the variables using "load variables" from the JSON file.