diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index 721de666..f1d3804f 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -54,7 +54,7 @@ stages: $uri = "$($baseUri)/build/builds/$($buildId)?api-version=6.0" $headers = @{ - Authorization = "Basic $accessToken" + Authorization = "Bearer $accessToken" } return Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing @@ -80,7 +80,7 @@ stages: $uri = "$($baseUri)/distributedtask/pools/$($poolId)/agents/$($agentId)?api-version=6.0&includeCapabilities=true" $headers = @{ - Authorization = "Basic $accessToken" + Authorization = "Bearer $accessToken" } return Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -UseBasicParsing