Setup TFS 2015 Windows Build Agent

With TFS 2015 (RC is available as of now) new build system is introduced. Below is a guide to setup an agent for the new build system. To download the build agent setup files go to admin mode of the TFS web portal and download the agent.

http://lh3.googleusercontent.com/-r6e8_K1HexQ/VZLrriUEsRI/AAAAAAAAFT4/SMNOFN_UM_s/1_thumb%25255B1%25255D.png?imgmax=800

Extract the contents of the downloaded zip file, to a folder in the machine which is going to be setup as the build agent.
http://lh3.googleusercontent.com/-NGW17nz-39k/VZLrtJ-QP4I/AAAAAAAAFUI/SVYfcNhtriY/3_thumb%25255B1%25255D.png?imgmax=800
Open a PowerShell window as Administrator and change directory to the extracted folder. Run the ConfigureAgent.ps1. Provide below details for the agent.
* Agent Name
* TFS URL -  This should be TFS Server URL, not project collection URL.
* Specify an agent pool to join.
* Specify a working folder path. Which will be used to download source code and run the builds
* Set the build agent to run as a widows service. Windows service is the better option for production usage.
* Specify credentials for agent service.
http://lh3.googleusercontent.com/-lV3Sd9aQ5Zk/VZLrvOywv5I/AAAAAAAAFUY/4E5ih67B7cQ/5_thumb%25255B1%25255D.png?imgmax=800
Once this is done the agent service can be seen up and running as a Windows service.
http://lh3.googleusercontent.com/-t26pGhrNfyU/VZLrwkEhv0I/AAAAAAAAFUo/dDxVHt1n0WI/7_thumb%25255B1%25255D.png?imgmax=800
The new build agent is available for the build agent pool.
http://lh3.googleusercontent.com/-UfQh5DYdubw/VZLryXpCdII/AAAAAAAAFU4/Lve6VkFixQo/6_thumb%25255B1%25255D.png?imgmax=800
The new Windows build agent and XAML build agent can coexist on the same machine, which would useful to support already available XAML build definitions.
http://lh3.googleusercontent.com/-dOCwJm9J8FY/VZLr14MaX7I/AAAAAAAAFVI/LLXDAMvlFns/8_thumb%25255B1%25255D.png?imgmax=800
http://lh3.googleusercontent.com/-n5uA8PdO038/VZLr364J-CI/AAAAAAAAFVY/BEHY66EVBng/9_thumb%25255B1%25255D.png?imgmax=800