Repository navigation
Proxy
Andy Xu(devdiv) edited this page Jan 27, 2021
·
12 revisions
All the Azure Maven/Gradle plugins now supports http proxy, if your network requires proxy, you may need to enable it by:
The most convenient way to configure proxy is to configure system proxy, if you are using Window 10, you can configure system proxy by:
- Press
#to show startup menu, typesettingsand click on the system settings button. - In System Settings page, search
proxyand click the 'Proxy settings' button. - Input the proper host name and port and click the
savebutton. - Execute the maven or gradle tasks by adding maven gradle command-line argument:
-Djava.net.useSystemProxies=true, you need to change yourauthconfiguration.

Note: Only gradle plugins require you to add command argument:
-Djava.net.useSystemProxies=true
Execute your maven commands with proxy arguments, eg:-DhttpProxyHost=localhost -DhttpProxyPort=8888, please replace the host and port with your proxy.
Add the proxy in your configuration, see the two sample configurations in pom.xml and build.gradle.
<plugin>
<groupId>com.microsoft.azuregroupId>
<artifactId>azure-webapp-maven-pluginartifactId>
<version>1.13.0version>
<configuration>
<httpProxyHost>localhosthttpProxyHost>
<httpProxyPort>8888httpProxyPort>
configuration>
plugin>azurefunctions {
httpProxyHost = 'localhost'
httpProxyPort = 8888
// ... other configurations
}- Home
- Authentication
- Proxy
- Common Configurations
-
Maven Plugin for Azure Web Apps
- Quickstarts
- Goals
- Configuration Details
- Samples
-
Maven Plugin for Azure Functions
- Quickstarts
- Archetype
- Goals
- Configuration Details
-
Maven Plugin for Azure Spring Apps
- Quickstarts
- Goals
- Configuration Details
- Maven Plugin for Azure Container Apps
- Using in CI/CD