Installing TFS 2015 hosted build/release agent is extremely easy:
- Open TFS Web Access
- Click on Settings in the top right corner
- Click on project collection in the breadcrumbs
- Click on Download agent link to download .zip file with build/release agent in it. Right click on downloaded .zip file, click on Properties and Unblock the files if it is blocked
- Now the tricky part, the installation of build/release agent is essentially unzipping the file into a folder. Please make sure that you unzip the file into a folder that is not under your user profiles (for example, Downloads or Documents) or Program files folders, because this will cause UAC to kick in when build/release job will try to call to build/release agent. So, unzip folder somewhere like D:\BuildAgent\. Once you've unzipped the file into a folder, you have installed build/release agent. Now we need to configure it.
- Open PowerShell (preferably as administrator), and browse to the folder where you unzipped the build/release agent
- Run ConfigureAgent.ps1 and follow the wizard
That's it. Easy…