From 7245de086e162c6f5fb9e56c5fce23b3f6fdb0cb Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 22 Dec 2022 00:53:21 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- .azure/pipelines/azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) 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})