Private VSTS build agent – more speed and less costs

Using Hosted Agents in Visual Studio Team Services (VSTS) is quite comfortable as you don’t have to worry about configuration or maintenance.

But as soon as your development team grows, the queue and the related build times become problematic. Or you want to execute your code with software that is still in beta. And once your projects consume more than 240 minutes build time per onat, you need to buy a Hosted Agens.

In fact, we had exactly these three problems and that is why we started using private build and release agents. In the following article we would like to explain these points in more detail and give examples from our pool of experience.

But what exactly are the advantages of using private build agents for VSTS?

Accelerate your build times by a multiple

We have found that our build time with private agents have been improved enormously.  More specifically, projects that previously took more than five minutes of build time have been completed with private agents in less than one minute. This is an improvement of over 500%! Of course, we don’t claim that this is the same with every project, but that’s an example from our everyday project life.

Save money by using private build and release agents

Taking hosted build agents for building and publishing projects has the big advantage that you get the first 240 minutes for free. But once you exceed these 240 minutes, each hosted agent costs $40 per month and that with the above disadvantages.

Using private agents costs only $15 plus the cost of the azure resources for the agent itself. And owners of a Visual Studio Enterprise license get one private pipeline per „Enterprise license“ for free.

We are currently experiencing the best build times with burstable VMs, more precisely the „Standard B2S“. This VM size have enough performance to finish builds rapidly and has a great price, 49.34$ per month. If the concept of burstable VMs is new to you, we recommend this article:

So, if we take all costs into account we end up with about 55$ per month without Enterprise license and 40$ per month with Enterprise license. Now you’re probably wondering why we claim that private agents are cheaper, although in the best case they cost at least as much as hosted agents.

But the deciding factor where we save the most money is the time the developer doesn’t have to wait for the build. And remember, private build and release agents in Visual Studio Team Services are up to 500% faster than hosted agents.

If you’re still not convinced of the benefits of private agents, read the article by Microsoft Principal DevOps Manager Donovan Brown.

Configuring private build agents is no magic

Deploying Private Build and Release Agents including all dependencies and SDKs for VSTS is not complicated, but is very time-consuming. That’s why we automated the entire process using an Azure Resource Manager template (Infrastructure as a Code). The VSTS Agent installed during this process logs in directly to the specified Agent Pool. We used Chocolatey to install all the dependencies and SDKs. To learn more about Chocolatey visit their page. Here is a list of the programs that are installed with our offer „Build Agent for VSTS – Windows based“:

You want to use private build and release agents for your DevOps pipeline?

Check out our free Azure marketplace offer (comming soon) and deploy your personal build agent via a click by click experience. And if you want to customize our solution to your needs, take a look at our public GitHub repository.


If you have further questions about our offer or if you would like to commission us, please contact us.