I have 2 Azure Dev Ops Pipeline Tasks within a pipeline - the first calls a powershell script that does some stuff and then sets an Env variable I want to reference again;
$env:MYVALUE = "ABC"
This powershell script is executed and works well - however I thought I would be able to reference $MYVALUE in the pipeline after it running;
task: SqlAzureDacpacDeployment@1
displayName: 'Do The thing'
inputs:
...
DatabaseName: '$(MYVALUE)'
...
Is it possible to obtain the ENV variable from the pipeline?