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:
- Visual Studio 2015 (Community Edition or Professional)
- Microsoft .NET Framework
- Microsoft Azure SDK 2.9
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.
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…
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).
My next article will be “How to create a Build Definition, to compile and to deploy your SQL and Web projects in Azure”