azure-powershell

How can you use secret variables from a linked variable group in an Azure Powershell task in an Azure Release pipeline?

牧云@^-^@ 提交于 2020-12-07 06:39:25
问题 I have an Azure Release pipeline that I've built using the GUI in Azure DevOps. There is a stage that has a linked variable group (Release scope) with a secret variable in the variable group. The stage has an agent job with an Azure Powershell task that runs a script file. That script file references the secret variable using the syntax $env:MYSECRETVARIABLE but the value is null. When I add an Azure Powershell task for debugging that runs Get-ChildItem -Path Env:\ , I can see that all the