Blog of Denis VOITURON

for a better .NET world

Configure a Visual Studio Online (VSO) Build Agent

Posted on 2016-06-05

When using Visual Studio Online (VSO) in your team or for your personal projects, it is very useful to integrate a compilation and a continuous deployment process. With MSDN subscriptions, you have about 240 minutes of hosted build. After this time, it’s very expensive and you can not install any tools of your choice on the server.

Microsoft allow to install freely the Build and Deployment agent on a on-premice server [note 2]… and very quickly and easily. In this 5 minutes video, I am going to show how to configure a Build Agent linked to your VSO account.

In order to configure a Build Agents, you must install all tools to compile and to deploy your projects on the server:

Next, you must download and extract the VSO Build Agent included in the Admin portal of your Visual Studio Online account: https://[your_account].visualstudio.com/_admin/_AgentPool

And finally you need to run the ConfigureAgent.cmd program.

D:\agent>ConfigureAgent.cmd Enter the name for this agent (default is Agent-AL423966) Agent-AL423966 Enter the URL for the Team Foundation Server (default is ) https://dvoituron.visualstudio.com Configure this agent against which agent pool? (default pool name is 'default') default Enter the path of the work folder for this agent (default is 'D:\agent\_work') D:\agent\_work Would you like to install the agent as a Windows Service (Y/N) (default is N) Y Enter the name of the user account to use for the service (default is NT AUTHORITY\NETWORK SERVICE) AL423966\BuildUser Enter the password for user account AL423966\BuildUser: ********* Installing service vsoagent.dvoituron.Agent-AL423966... Service vsoagent.dvoituron.Agent-AL423966 has been successfully installed. Creating EventLog source vsoagent.dvoituron.Agent-AL423966 in log Application... Configuration successful.

There are no special firewall rules to define, because when you start a build process from VSO, all requests are initiated from your Build Server (in https).

That’s all ;-)

My next article will be “How to create a Build Definition, to compile and to deploy your SQL and Web projects in Azure

More information:



Follow me

Recent posts