Enterprises that host their infrastructure on-premise or in a hybrid cloud setup tend to use a multi-level security approach. This usually involves one or more firewalls that protect the infrastructure from external traffic, and a web proxy to control the intranet and internet traffic. In such a scaled setup, traffic generated from the agent may be blocked from connecting to the Azure DevOps server if it is not routed through the proxy. Luckily, the Azure DevOps agent infrastructure supports proxy configuration natively. In this recipe, we'll learn how to configure a web proxy during agent configuration.
Ensure you've downloaded the latest version of the agent locally on the target machine where you intend to install and configure the agent. You'll need to be part of the build administrators group in Azure DevOps Server to be able to connect the agent as well as an administrator on the target machine to be able to install the agent...