6
votes

I am getting the below message while I am doing build in my Azure DevOps pipeline. Here I am using Azure DevOps pipelines, VS2017 and Windows 2016.

"No agent found in pool Default which satisfies the specified demands:

msbuild

visualstudio

vstest

Agent.Version -gtVersion 2.161.0 "

This is failing when I'm using three agent jobs in single pipeline. If I run the same tasks in new pipeline it works fine. Could you please suggest the solution?

5

5 Answers

1
votes

Same here. We have the same issue and MS is tracking it. https://twitter.com/AzureDevOps/status/1207288336206815232

1
votes

In my case, we were getting the error and this is what solved it:

I logged on to our build server and restarted these three services:

enter image description here

In our case, it was just a problem with a single pipeline, as the other pipeline we use was running ok. I don't know why one pipeline worked and the other didn't since they both use the same agent, but restarting the services resolved it.

0
votes

This issue is caused by "Download Pipeline Artifacts@2" task.

It has been reported to the product group not long ago, and our engineers have released fixes that resolve compatibility issues. This issue has now been fixed. I apologize for the inconvenience here.

For details,please refer to this case on our Developer Community forum.

0
votes

I got this error when I created a new agent. This new agent didn't receive existing User-defined capabilities that were on older agents.

After comparing agent capabilities, I added the missing user-defined capabilitiesies and it started to compile.

0
votes

In your pipeline definition YML file you have to specify 'windows-2016' before specifying agentpool, see below:

stages:
- stage: Build
  displayName: 'IaC Build'
  variables:
  - name: var
    value: val
  jobs:
  - job: Build
    pool:
          vmImage: 'windows-2016'
    steps:
    - task: ...
# Deploy Dev 
- stage: DeployDevInfra
  displayName: 'Deploy: DEV'
  dependsOn: build
  variables:
  - group: your-var-group
  - name: var
    value: val
  jobs:
  - template: another-pipeline.yml
    parameters:
      agentpool: 'here-come-name-of-your-agent-pool'
      environment: 'your-dev-environment'