Operations 7 min read

Installing and Configuring TFS Build vNext Agent on Windows

This guide explains how to install Node.js, download the TFS Build vNext agent, configure it on Windows using PowerShell, set execution policies, and register the agent with TFS, covering required tools, configuration options, and optional service setup.

DevOps
DevOps
DevOps
Installing and Configuring TFS Build vNext Agent on Windows

TFS Build vNext, released with TFS 2015, is a cross‑platform continuous integration engine compatible with Windows, Linux, Unix, and macOS, supporting languages such as .NET, Java, iOS, and Android.

The Build Agent is built with Node.js and is open‑source on GitHub ( https://github.com/Microsoft/vso-agent ); its tasks are also available at https://github.com/Microsoft/vso-agent-tasks .

For Windows installation, first download and install Node.js (prefer the LTS version) from https://nodejs.org , choosing the appropriate x64 or x86 installer.

Installation steps:

Log in to TFS, click the gear icon to open the admin panel.

In the Control Panel, select Agent Pools | Download Agent and save the ZIP file.

Extract the ZIP to a local folder, e.g., C:\buildagent.

Open Windows PowerShell as Administrator and set the execution policy to Unrestricted: Set-ExecutionPolicy -ExecutionPolicy Unrestricted Navigate to C:\buildagent and run ConfigureAgent.cmd to configure the agent name, server URL, pool, and work folder. If running as a service, provide a service account.

After configuration, the new agent appears in the pool with its capabilities.

Optionally add users to the Agent Pool Administrators role to manage the agent.

The configuration table below summarizes the key settings:

Configuration Item

Description

Agent Name

Defaults to the machine name.

Server URL

e.g.,

http://tfs2015.vsalm.local:8080/tfs

Agent Pool

Container for agents, default is

default

, can be custom.

Work Folder

Directory where builds are executed (download code, compile, test, etc.).

Service Account

Required if the agent runs as a Windows service.

Running the agent as a Windows service starts it automatically on system boot, simplifying maintenance; running it interactively allows desktop interaction for UI tests.

After completing these steps, the TFS Build vNext agent is ready for use on Windows.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DevOpsNode.jsWindowsCITFSBuild Agent
DevOps
Written by

DevOps

Share premium content and events on trends, applications, and practices in development efficiency, AI and related technologies. The IDCF International DevOps Coach Federation trains end‑to‑end development‑efficiency talent, linking high‑performance organizations and individuals to achieve excellence.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.