I have a vNext build definition, which has a agent pool specified. This agent pool has more then one agent. I want to specify say agent number 2 to be used by this build de
Now you can use Agent.Name or Agent.ComputerName demands in build def or when queuing a build:
Agent.Name
Agent.ComputerName
Reference: https://blogs.msdn.microsoft.com/ericparvin/2017/02/08/how-to-send-tfs-build-to-a-specific-agent-or-server/