Skip to content

Commit 7465ae7

Browse files
committed
Release azure-resourcemanager 2.0.0
1 parent c3fe874 commit 7465ae7

File tree

4 files changed

+1801
-1553
lines changed

4 files changed

+1801
-1553
lines changed

README.md

+48-47
Original file line numberDiff line numberDiff line change
@@ -5,64 +5,63 @@ languages:
55
products:
66
- azure
77
extensions:
8-
services: virtual-network
8+
services: Network
99
platforms: java
1010
---
1111

1212
# Getting Started with Network - Manage Application Gateway - in Java #
1313

1414

1515
Azure network sample for managing application gateways.
16-
17-
- CREATE an application gateway for load balancing
18-
HTTP/HTTPS requests to backend server pools of virtual machines
19-
20-
This application gateway serves traffic for multiple
21-
domain names
22-
23-
Routing Rule 1
24-
Hostname 1 = None
25-
Backend server pool 1 = 4 virtual machines with IP addresses
26-
Backend server pool 1 settings = HTTP:8080
27-
Front end port 1 = HTTP:80
28-
Listener 1 = HTTP
29-
Routing rule 1 = HTTP listener 1 => backend server pool 1
30-
(round-robin load distribution)
31-
32-
Routing Rule 2
33-
Hostname 2 = None
34-
Backend server pool 2 = 4 virtual machines with IP addresses
35-
Backend server pool 2 settings = HTTP:8080
36-
Front end port 2 = HTTPS:443
37-
Listener 2 = HTTPS
38-
Routing rule 2 = HTTPS listener 2 => backend server pool 2
39-
(round-robin load distribution)
40-
41-
- MODIFY the application gateway - re-configure the Routing Rule 1 for SSL offload and
42-
add a host name, www.contoso.com
43-
44-
Change listener 1 from HTTP to HTTPS
45-
Add SSL certificate to the listener
46-
Update front end port 1 to HTTPS:1443
47-
Add a host name, www.contoso.com
48-
Enable cookie-based affinity
49-
50-
Modified Routing Rule 1
51-
Hostname 1 = www.contoso.com
52-
Backend server pool 1 = 4 virtual machines with IP addresses
53-
Backend server pool 1 settings = HTTP:8080
54-
Front end port 1 = HTTPS:1443
55-
Listener 1 = HTTPS
56-
Routing rule 1 = HTTPS listener 1 => backend server pool 1
57-
(round-robin load distribution)
58-
16+
<p>
17+
- CREATE an application gateway for load balancing
18+
HTTP/HTTPS requests to backend server pools of virtual machines
19+
<p>
20+
This application gateway serves traffic for multiple
21+
domain names
22+
<p>
23+
Routing Rule 1
24+
Hostname 1 = None
25+
Backend server pool 1 = 4 virtual machines with IP addresses
26+
Backend server pool 1 settings = HTTP:8080
27+
Front end port 1 = HTTP:80
28+
Listener 1 = HTTP
29+
Routing rule 1 = HTTP listener 1 =&gt; backend server pool 1
30+
(round-robin load distribution)
31+
<p>
32+
Routing Rule 2
33+
Hostname 2 = None
34+
Backend server pool 2 = 4 virtual machines with IP addresses
35+
Backend server pool 2 settings = HTTP:8080
36+
Front end port 2 = HTTPS:443
37+
Listener 2 = HTTPS
38+
Routing rule 2 = HTTPS listener 2 =&gt; backend server pool 2
39+
(round-robin load distribution)
40+
<p>
41+
- MODIFY the application gateway - re-configure the Routing Rule 1 for SSL offload and
42+
add a host name, www.contoso.com
43+
<p>
44+
Change listener 1 from HTTP to HTTPS
45+
Add SSL certificate to the listener
46+
Update front end port 1 to HTTPS:1443
47+
Add a host name, www.contoso.com
48+
Enable cookie-based affinity
49+
<p>
50+
Modified Routing Rule 1
51+
Hostname 1 = www.contoso.com
52+
Backend server pool 1 = 4 virtual machines with IP addresses
53+
Backend server pool 1 settings = HTTP:8080
54+
Front end port 1 = HTTPS:1443
55+
Listener 1 = HTTPS
56+
Routing rule 1 = HTTPS listener 1 =&gt; backend server pool 1
57+
(round-robin load distribution)
5958

6059

6160
## Running this Sample ##
6261

6362
To run this sample:
6463

65-
Set the environment variable `AZURE_AUTH_LOCATION` with the full path for an auth file. See [how to create an auth file](https://github.com/Azure/azure-libraries-for-java/blob/master/AUTH.md).
64+
See [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/identity/azure-identity#defaultazurecredential) and prepare the authentication works best for you. For more details on authentication, please refer to [AUTH.md](https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md).
6665

6766
git clone https://github.com/Azure-Samples/application-gateway-java-manage-application-gateways.git
6867

@@ -72,9 +71,11 @@ Set the environment variable `AZURE_AUTH_LOCATION` with the full path for an aut
7271

7372
## More information ##
7473

75-
[http://azure.com/java](http://azure.com/java)
74+
For general documentation as well as quickstarts on how to use Azure Management Libraries for Java, please see [here](https://aka.ms/azsdk/java/mgmt).
75+
76+
Start to develop applications with Java on Azure [here](http://azure.com/java).
7677

77-
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212)
78+
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212).
7879

7980
---
8081

pom.xml

+15-14
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@
1515
<artifactId>exec-maven-plugin</artifactId>
1616
<version>1.4.0</version>
1717
<configuration>
18-
<mainClass>com.microsoft.azure.management.network.samples.ManageApplicationGateway</mainClass>
18+
<mainClass>com.azure.resourcemanager.network.samples.ManageApplicationGateway</mainClass>
19+
<cleanupDaemonThreads>false</cleanupDaemonThreads>
1920
</configuration>
2021
</plugin>
2122
<plugin>
2223
<artifactId>maven-compiler-plugin</artifactId>
23-
<version>3.0</version>
24+
<version>3.8.1</version>
2425
<configuration>
25-
<source>1.7</source>
26-
<target>1.7</target>
26+
<source>1.8</source>
27+
<target>1.8</target>
2728
</configuration>
2829
</plugin>
2930
<plugin>
@@ -40,7 +41,7 @@
4041
</descriptorRefs>
4142
<archive>
4243
<manifest>
43-
<mainClass>com.microsoft.azure.management.network.samples.ManageApplicationGateway.java</mainClass>
44+
<mainClass>com.azure.resourcemanager.network.samples.ManageApplicationGateway.java</mainClass>
4445
</manifest>
4546
</archive>
4647
</configuration>
@@ -51,24 +52,24 @@
5152
</build>
5253
<dependencies>
5354
<dependency>
54-
<groupId>com.microsoft.azure</groupId>
55-
<artifactId>azure</artifactId>
56-
<version>1.36.3</version>
55+
<groupId>com.azure.resourcemanager</groupId>
56+
<artifactId>azure-resourcemanager</artifactId>
57+
<version>2.0.0</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.azure</groupId>
61+
<artifactId>azure-identity</artifactId>
62+
<version>1.1.3</version>
5763
</dependency>
5864
<dependency>
5965
<groupId>commons-net</groupId>
6066
<artifactId>commons-net</artifactId>
61-
<version>3.3</version>
67+
<version>3.6</version>
6268
</dependency>
6369
<dependency>
6470
<groupId>commons-lang</groupId>
6571
<artifactId>commons-lang</artifactId>
6672
<version>2.6</version>
6773
</dependency>
68-
<dependency>
69-
<groupId>org.apache.commons</groupId>
70-
<artifactId>commons-lang3</artifactId>
71-
<version>3.7</version>
72-
</dependency>
7374
</dependencies>
7475
</project>

0 commit comments

Comments
 (0)