I used vso task.set variable to define the variables mentioned mentioned in Var groups in a inline powershell task which works fine.
Write-Host "##vso[task.setvariable variable=HTTP_PROXY;]http://yyyy.com:8080"
Write-Host "##vso[task.setvariable variable=NO_PROXY;].google.com"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…