diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index 6df4b6ff..173aae8d 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -58,11 +58,13 @@ stages: } $uri = "$($baseUri)/distributedtask/pools?api-version=6.0" + Write-Host $uri $responsePools = Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing foreach ($pool in $responsePools.Value) { $uri = "$($baseUri)/distributedtask/pools/$($pool.Id)/agents?api-version=6.0&includeCapabilities=true" + Write-Host $uri $responseAgents = Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing $agents = $responseAgents.Value.Where({$_.id -eq $agentId -and $_.name -eq $agentName})