Implement a build strategy

Alberto De Natale
6 min readSep 13, 2021

In this post, I will share my study notes that I took while preparing for the exam Azure AZ400 “Implement a build strategy”.

Design and implement build agent infrastructure (include cost, tool selection, licenses, maintainability)

There are two types of build agents that may be configured with Azure DevOps: hosted and self-hosted.

Hosted agents are completely maintained by Microsoft and have common software required to build application already installed.

They have some limitations and (build duration, disk space, CPU/memory/network, interactivity and file shared) and can introduce some latency at the start of a build.

It is not possible to have incremental builds with hosted agents.

To install a self-hosted agent the following steps will be needed:

  • A virtual machine will be needed, for instance, an Azure Virtual Machine
  • A security token will be required with build and agent pools permissions
  • The virtual machine will need to have the building tools required to build an application
  • The agent software will need to be installed on the virtual machine

A pipeline that would want to use an agent from this pool will need the following YAML code:

name: 'MyAgentPool'
- npm

There are three roles available that allow enforcing access control against users.

Reader, Service Account and Administrator.

Reader Members of this role can view the agent pool as well as agents. You typically use this to add operators that are responsible for monitoring the agents and their health.

Service Account Members of this role can use the organization agent pool to create a project agent pool in a project. If you follow the guidelines above for creating new project agent pools, you typically do not have to add any members here.

Administrator In addition to all the above permissions, members of this role can register or

Alberto De Natale

Alberto De Natale is a passionate tech-enthusiast software developer.