Azure DevOps Azure PowerShell task output variable
问题 I'm creating a release pipeline using one Azure PowerShell Task and PowerShell task. In the the Azure Powershell Task, I have the following code $groupInfos = @() for ([int]$i = 0; $i -lt $azureADGroupsObj.Count) { $groupInfo = New-Object PSObject $groupInfo | Add-Member -MemberType NoteProperty -Name "displayName" -Value $azureADGroupsObj[$i].DisplayName $groupInfo | Add-Member -MemberType NoteProperty -Name "Id" -Value $azureADGroupsObj[$i].Id $groupInfos += $groupInfo $i++ } return