Functions/Get-AzDOPipelineStageStatus.ps1
function Get-AzDOPipelineStageStatus { <# .SYNOPSIS .DESCRIPTION .PARAMETER project .PARAMETER PipiLineID .PARAMETER RunID .Example .INPUTS Input is from command line or called from a script. .OUTPUTS .NOTES Author: Lars Panzerbjørn Creation Date: 2020.07.31 #> param ( [string]$project, [string]$PipiLineID, [string]$RunID ) $Uri = $BaseUri + "$project/_apis/pipelines/$PipiLineID/runs/$RunID/stages?api-version=7.0" $Response = Invoke-RestMethod -Uri $Uri -Method Get -Headers $Header return $response } |