When configuring a local build agent on a Windows 2016 server, I use the following proxy config settings:
.\config.cmd --proxyurl http://192.3.4.5:8080 --sslskipcertvalidation
This allows the build server to connect to Azure DevOps behind the proxy without issues, however the powershell build is having trouble connecting out to the internet. I solved this by setting an environmental variable at the beginning of the build command as such:
$env:http_proxy = "192.3.4.5:8080"
The final issue is a step in the build requires to winrm to a VM hosted directly on the build server and it cannot connect. I've tried configuring the agent's .proxybypass file as such:
localhost
192\.3\.4\.*
This has failed to solve the issue however. Any ideas on how to set the proxy bypass in the build step? Is there another powershell env variable I could set?