Unattended configuration of build agents using PowerShell
Azure DevOps Server Build and Release agents are the engines of your build system; the size of the infrastructure translates to the speed at which you can run and scale the build process. As you ramp up the use of the build system to automate Continuous Integration pipelines, you are going to need more agents. An automated process to add and remove build agents allows you to scale up and scale down the agents on demand. The build system has native support for unattended installation. In this recipe, we'll learn how to configure a build agent programmatically in an unattended mode using PowerShell.
Getting ready
To configure a build agent, you should be a member of the build administrators group and an administrator on the target machine. If the target machine is Windows 10 or beyond (x64), all the prerequisites will already be in place. If the target machine is Windows 7 to Windows 8.1, or Windows Server 2008 R2 SP1 to Windows Server...