Original question
Is it possible to store the response from a REST API call in a variable and use it in the downstream jobs?
Question update:
I want to store the resolved value through a PowerShell script, and make it accessible through out the next stages. I have setup a script like this:
$slot = &"c:\temp\GetSlot.exe" 2>&1
Write-host "resolved:" $slot
Write-host "init value output:" $(currentslot)
Write-Output ("##vso[task.setvariable variable=currentslot;isOutput=true;]$slot")
Write-host "updated value output:" $(currentslot)
Along with a variable, to make it accessible throug the $(currentslot) in aditional stages. Its configured like this:
The value from the executions is being set into the $slot variable, but the variable is not getting updated, what do I do wrong?

