How to Configure a Proxy for Your Azure DevOps Build Agent
All of a sudden, our build agent could no longer communicate with Azure. A failed network change forced us to set a proxy server manually. While most browsers use the system proxy, the build agent did not.
For the build agent you need to create a .proxy file with the proxy URL in the root directory of your agent. Let us look how you can do that.
- Locate the root directory of your build agent (this is the folder that contains the run.exe and the _work folder).
- Open a Command Prompt at this location.
-
Type this command, but replace PROXYIP & PORT with your values:
-
Check that your .proxy file is created at the right place:

-
Optional: If your proxy needs authentication, you must set these environment variables:
-
Restart the service for your build agent.
Your build agent should now connect to Azure and work as expected.
When you know that you need a proxy at the time of the installation, you can configure the proxy settings right when you call config.cmd: