You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-47
Original file line number
Diff line number
Diff line change
@@ -5,64 +5,63 @@ languages:
5
5
products:
6
6
- azure
7
7
extensions:
8
-
services: virtual-network
8
+
services: Network
9
9
platforms: java
10
10
---
11
11
12
12
# Getting Started with Network - Manage Application Gateway - in Java #
13
13
14
14
15
15
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 => 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 => 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 => backend server pool 1
57
+
(round-robin load distribution)
59
58
60
59
61
60
## Running this Sample ##
62
61
63
62
To run this sample:
64
63
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).
0 commit comments