I have two BuildAgents in my Default queue. Both checkboxes for active are set, both are online and running and also shown as online and running. When I start a build on that queue, it is only sent to one Agent, never to the other. If I stop this one Agent, I get the error message, that there is no agent available. But there is!
Has anyone an idea, whats going on here?
Specs: I have an On-premise-TFS-2017 (it was upgraded from 2012). Build Agents where installed the way, that TFS-2017 describes it on the interface.

Capabilities, if there are no the required capabilities for the specific build on the agent, then you will get the"no agent available"error message. You can compare theCapabilitiesfor the agents to check if there are any differentences between them. - Andy Li-MSFT