First make sure you are using /ServerUrl:ServerUrl
during the configuration.
For troubleshooting configuration errors, detailed logs can be found in the _diag
folder under the agent installation directory.
Before you begin, make sure your build agent machine is set up with:
Requirements:
- An operating system that is supported by Visual Studio 2013 or newer
- Visual Studio 2013 or Visual Studio 2015
- PowerShell 3 or newer (Where can I get a newer version of PowerShell?)
Please also take a look at the detail steps for deploy and config build agent in this tutorial: Deploy an agent on Windows for on-premises TFS 2015
Also not suggest you to deploy the build agent on another TFS server. Particularly, if there are 2013 build agents on the server. This may cause some confusion. Moreover, for TFS2015 it's agent based, doesn't have Controllers and you can install multiple agents on a single machine. Agents are grouped in Pools and live at the Server level, allowing you to use them across collections. There is no need to use physical machines economically.