Skip to content
Andy Xu(devdiv) edited this page Aug 15, 2021 · 4 revisions

Proxy

All the Azure Gradle plugins now supports http proxy, if your network requires proxy, you may need to enable it by:

  1. System Proxy
  2. Java Command Line Arguments

System Proxy

The most convenient way to configure proxy is to configure system proxy, if you are using Window 10, you can configure system proxy by:

  1. Press # to show startup menu, type settings and click on the system settings button.
  2. In System Settings page, search proxy and click the 'Proxy settings' button.
  3. Input the proper host name and port and click the save button.
  4. Execute gradle tasks by adding command-line argument:-Djava.net.useSystemProxies=true --no-daemon.

image

Note: System proxy doesn't support proxy with credentials, see https://superuser.com/questions/979727/windows-10-set-up-a-os-level-proxy-with-authentication

Java Command Line Arguments

Execute your maven commands with proxy arguments, eg:-Dhttps.proxyHost=192.168.1.100 -Dhttps.proxyPort=8080 <-Dhttps.proxyUser=user -Dhttps.proxyPassword=pass>, please replace the host and port with your proxy. You can refer here for more details.

Example:

gradle azurewebappdeploy -Dhttps.proxyHost=192.168.1.102 -Dhttps.proxyPort=8080 --no-daemon
gradle azurewebappdeploy  -Dhttps.proxyHost=192.168.1.102 -Dhttps.proxyPort=8081 -Dhttps.proxyUser=user -Dhttps.proxyPassword=pass --no-daemon

Note: Gradle plugins require you to add command argument:--no-daemon to avoid use previous proxy configuration caused by gradle daemon, eg: -Dhttps.proxyHost=192.168.1.100 -Dhttps.proxyPort=8080 --no-daemon

Clone this wiki locally