Forum Discussion
Unable to Access Internet from Azure DevOps Server 2022 Self-Hosted Agent Behind Proxy
I am running Azure DevOps Server 2022 in an environment that uses a proxy to access the internet. Multiple projects depend on various Node packages. While I can successfully download these packages through a browser using the configured proxy, the issue occurs when running pipelines on a self-hosted agent.
The agent installation completes successfully, but the pipeline fails during execution, seemingly due to lack of internet access.
Is there a way to configure the proxy settings specifically for the self-hosted agent so that it can access the internet during pipeline runs?
1 Reply
Yes, during the Agent configuration, when you run the agent configuration script (config.cmd or config.sh), you can pass proxy parameters:
config.cmd --proxyurl http://your.proxy.server:port --proxyusername yourUsername --proxypassword yourPassword
This ensures the agent itself can communicate with Azure DevOps and external services during setup and runtime.