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
@@ -18,6 +18,9 @@ Get started with Azure Load Balancer by using the Azure portal to create an inte
18
18
19
19
:::image type="content" source="media/quickstart-load-balancer-standard-internal-portal/internal-load-balancer-resources.png" alt-text="Diagram of resources deployed for internal load balancer.":::
20
20
21
+
> [!NOTE]
22
+
> In this example you'll create a NAT gateway to provide outbound Internet access. The outbound rules tab in the configuration is bypassed and isn't needed with the NAT gateway. For more information on Azure NAT gateway, see [What is Azure Virtual Network NAT?](../virtual-network/nat-gateway/nat-overview.md)
23
+
> For more information about outbound connections in Azure, see [Source Network Address Translation (SNAT) for outbound connections](../load-balancer/load-balancer-outbound-connections.md)
21
24
## Prerequisites
22
25
23
26
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
@@ -26,6 +29,41 @@ Get started with Azure Load Balancer by using the Azure portal to create an inte
26
29
27
30
Sign in to the [Azure portal](https://portal.azure.com).
28
31
32
+
## Create NAT gateway
33
+
34
+
All outbound internet traffic traverses the NAT gateway to the internet. Use the following example to create a NAT gateway for the hub and spoke network.
35
+
36
+
1. Sign in to the [Azure portal](https://portal.azure.com).
37
+
38
+
1. In the search box at the top of the portal, enter **NAT gateway**. Select **NAT gateways** in the search results.
39
+
40
+
1. Select **+ Create**.
41
+
42
+
1. In the **Basics** tab of **Create network address translation (NAT) gateway** enter or select the following information:
43
+
44
+
| Setting | Value |
45
+
| ------- | ----- |
46
+
|**Project details**||
47
+
| Subscription | Select your subscription. |
48
+
| Resource group | Select **Create new**. </br> Enter **CreateIntLBQS-rg** in Name. </br> Select **OK**. |
49
+
|**Instance details**||
50
+
| NAT gateway name | Enter **myNATgateway**. |
51
+
| Region | Select **East US**. |
52
+
| Availability zone | Select **None**. |
53
+
| Idle timeout (minutes) | Enter **15**. |
54
+
55
+
1. Select the **Outbound IP** tab or select the **Next: Outbound IP** button at the bottom of the page.
56
+
57
+
1. Select **Create a new public IP address** under **Public IP addresses**.
58
+
59
+
1. Enter **myNATgatewayIP** in **Name** in **Add a public IP address**.
60
+
61
+
1. Select **OK**.
62
+
63
+
1. Select the blue **Review + create** button at the bottom of the page, or select the **Review + create** tab.
64
+
65
+
1. Select **Create**.
66
+
29
67
## Create the virtual network
30
68
31
69
When you create an internal load balancer, a virtual network is configured as the network for the load balancer.
@@ -38,57 +76,59 @@ In this section, you'll create a virtual network, subnet, and Azure Bastion host
38
76
39
77
1. In the search box at the top of the portal, enter **Virtual network**. Select **Virtual Networks** in the search results.
40
78
41
-
2. In **Virtual networks**, select **+ Create**.
79
+
1. In **Virtual networks**, select **+ Create**.
42
80
43
-
3. In **Create virtual network**, enter or select this information in the **Basics** tab:
81
+
1. In **Create virtual network**, enter or select this information in the **Basics** tab:
11. Select the **Review + create** tab or select the **Review + create** button.
129
+
1. Select the **Review + create** tab or select the **Review + create** button.
90
130
91
-
12. Select **Create**.
131
+
1. Select **Create**.
92
132
93
133
94
134
> [!NOTE]
@@ -100,65 +140,59 @@ In this section, you create a load balancer that load balances virtual machines.
100
140
101
141
During the creation of the load balancer, you'll configure:
102
142
103
-
* Frontend IP address
104
-
* Backend pool
105
-
* Inbound load-balancing rules
143
+
- Frontend IP address
144
+
- Backend pool
145
+
- Inbound load-balancing rules
106
146
107
147
1. In the search box at the top of the portal, enter **Load balancer**. Select **Load balancers** in the search results.
108
148
109
-
2. In the **Load balancer** page, select **Create**.
149
+
1. In the **Load balancer** page, select **Create**.
110
150
111
-
3. In the **Basics** tab of the **Create load balancer** page, enter, or select the following information:
151
+
1. In the **Basics** tab of the **Create load balancer** page, enter, or select the following information:
112
152
113
-
| Setting | Value |
114
-
| --- | --- |
153
+
| Setting | Value |
154
+
| --- | --- |
115
155
|**Project details**||
116
156
| Subscription | Select your subscription. |
117
157
| Resource group | Select **CreateIntLBQS-rg**. |
118
158
|**Instance details**||
119
-
| Name | Enter **myLoadBalancer**|
120
-
| Region | Select **West US 3**.|
159
+
| Name | Enter **myLoadBalancer**|
160
+
| Region | Select **East US**. |
121
161
| SKU | Leave the default **Standard**. |
122
-
| Type | Select **Internal**. |
162
+
| Type | Select **Internal**. |
123
163
| Tier | Leave the default of **Regional**. |
124
164
125
-
126
165
:::image type="content" source="./media/quickstart-load-balancer-standard-internal-portal/create-standard-internal-load-balancer.png" alt-text="Screenshot of create standard load balancer basics tab." border="true":::
127
166
128
-
4. Select **Next: Frontend IP configuration** at the bottom of the page.
129
-
130
-
5. In **Frontend IP configuration**, select **+ Add a frontend IP configuration**.
131
-
132
-
6. Enter **myFrontend** in **Name**.
133
-
134
-
7. Select **myBackendSubnet** in **Subnet**.
135
-
136
-
8. Select **Dynamic** for **Assignment**.
137
-
138
-
9. Select **Zone-redundant** in **Availability zone**.
139
-
140
-
10. Select **Add**.
141
-
142
-
11. Select **Next: Backend pools** at the bottom of the page.
143
-
144
-
12. In the **Backend pools** tab, select **+ Add a backend pool**.
145
-
146
-
13. Enter **myBackendPool** for **Name** in **Add backend pool**.
147
-
148
-
14. Select **NIC** or **IP Address** for **Backend Pool Configuration**.
167
+
1. Select **Next: Frontend IP configuration** at the bottom of the page.
149
168
150
-
15. Select**IPv4** or **IPv6** for**IP version**.
169
+
1. In**Frontend IP configuration**, select**+ Add a frontend IP configuration**, then enter or select the following information:
151
170
152
-
16. Select **Add**.
153
-
154
-
17. Select the **Next: Inbound rules** button at the bottom of the page.
155
-
156
-
18. In **Load balancing rule** in the **Inbound rules** tab, select **+ Add a load balancing rule**.
157
-
158
-
19. In **Add load balancing rule**, enter or select the following information:
171
+
| Setting | Value |
172
+
| ------- | ----- |
173
+
| Name | Enter **myFrontend**|
174
+
| Private IP address version | Select **IPv4** or **IPv6** depending on your requirements. |
159
175
160
176
| Setting | Value |
161
177
| ------- | ----- |
178
+
| Name | Enter **myFrontend**|
179
+
| Virtual network | Select **myVNet**|
180
+
| Subnet | Select **myBackendSubnet**|
181
+
| Assignment | Select **Dynamic**|
182
+
| Availability zone | Select **Zone-redundant**|
183
+
184
+
1. Select **Add**.
185
+
1. Select **Next: Backend pools** at the bottom of the page.
186
+
1. In the **Backend pools** tab, select **+ Add a backend pool**.
187
+
1. Enter **myBackendPool** for **Name** in **Add backend pool**.
188
+
1. Select **IP Address** for **Backend Pool Configuration**.
189
+
1. Select **Save**.
190
+
1. Select the **Next: Inbound rules** button at the bottom of the page.
191
+
1. In **Load balancing rule** in the **Inbound rules** tab, select **+ Add a load balancing rule**.
192
+
1. In **Add load balancing rule**, enter or select the following information:
193
+
194
+
|**Setting**|**Value**|
195
+
| ----------- | --------- |
162
196
| Name | Enter **myHTTPRule**|
163
197
| IP Version | Select **IPv4** or **IPv6** depending on your requirements. |
164
198
| Frontend IP address | Select **myFrontend**. |
@@ -169,57 +203,14 @@ During the creation of the load balancer, you'll configure:
169
203
| Health probe | Select **Create new**. </br> In **Name**, enter **myHealthProbe**. </br> Select **TCP** in **Protocol**. </br> Leave the rest of the defaults, and select **OK**. |
170
204
| Session persistence | Select **None**. |
171
205
| Idle timeout (minutes) | Enter or select **15**. |
172
-
| TCP reset | Select **Enabled**. |
173
-
| Floating IP |Select **Disabled**. |
206
+
|Enable TCP reset | Select **checkbox**. |
207
+
|Enable Floating IP |Leave the default of unselected. |
174
208
175
-
20. Select **Add**.
209
+
1. Select **Save**.
176
210
177
-
21. Select the blue **Review + create** button at the bottom of the page.
211
+
1. Select the blue **Review + create** button at the bottom of the page.
178
212
179
-
22. Select **Create**.
180
-
181
-
> [!NOTE]
182
-
> In this example you'll create a NAT gateway to provide outbound Internet access. The outbound rules tab in the configuration is bypassed and isn't needed with the NAT gateway. For more information on Azure NAT gateway, see [What is Azure Virtual Network NAT?](../virtual-network/nat-gateway/nat-overview.md)
183
-
> For more information about outbound connections in Azure, see [Source Network Address Translation (SNAT) for outbound connections](../load-balancer/load-balancer-outbound-connections.md)
184
-
185
-
## Create NAT gateway
186
-
187
-
In this section, you'll create a NAT gateway for outbound internet access for resources in the virtual network.
188
-
189
-
1. In the search box at the top of the portal, enter **NAT gateway**. Select **NAT gateways** in the search results.
190
-
191
-
2. In **NAT gateways**, select **+ Create**.
192
-
193
-
3. In **Create network address translation (NAT) gateway**, enter or select the following information:
194
-
195
-
| Setting | Value |
196
-
| ------- | ----- |
197
-
|**Project details**||
198
-
| Subscription | Select your subscription. |
199
-
| Resource group | Select **CreateIntLBQS-rg**. |
200
-
|**Instance details**||
201
-
| NAT gateway name | Enter **myNATgateway**. |
202
-
| Region | Select **West US 3**. |
203
-
| Availability zone | Select **None**. |
204
-
| Idle timeout (minutes) | Enter **15**. |
205
-
206
-
4. Select the **Outbound IP** tab or select the **Next: Outbound IP** button at the bottom of the page.
207
-
208
-
5. In **Outbound IP**, select **Create a new public IP address** next to **Public IP addresses**.
209
-
210
-
6. Enter **myNATgatewayIP** in **Name** in **Add a public IP address**.
211
-
212
-
7. Select **OK**.
213
-
214
-
8. Select the **Subnet** tab or select the **Next: Subnet** button at the bottom of the page.
215
-
216
-
9. In **Virtual network**, select **myVNet**.
217
-
218
-
10. Select **myBackendSubnet** under **Subnet name**.
219
-
220
-
11. Select the blue **Review + create** button at the bottom of the page, or select the **Review + create** tab.
221
-
222
-
12. Select **Create**.
213
+
1. Select **Create**.
223
214
224
215
## Create virtual machines
225
216
@@ -240,7 +231,7 @@ These VMs are added to the backend pool of the load balancer that was created ea
| Azure Spot instance | Leave the default of unselected. |
312
303
| Size | Choose VM size or take default setting |
313
304
|**Administrator account**||
@@ -388,13 +379,14 @@ In this section, you'll test the load balancer by connecting to the **myTestVM**
388
379
389
380
7. Enter the username and password entered during VM creation.
390
381
391
-
8. Open **Internet Explorer** on **myTestVM**.
382
+
8. Open **Microsoft Edge** on **myTestVM**.
392
383
393
384
9. Enter the IP address from the previous step into the address bar of the browser. The custom page displaying one of the backend server names is displayed on the browser. In this example, it's **10.1.0.4**.
394
385
395
386
:::image type="content" source="./media/quickstart-load-balancer-standard-internal-portal/load-balancer-test.png" alt-text="Screenshot shows a browser window displaying the customized page, as expected." border="true":::
396
387
397
-
To see the load balancer distribute traffic across both VMs, you can force-refresh your web browser from the client machine.
388
+
1. To see the load balancer distribute traffic across both VMs, navigate to the VM shown in the browser message, and stop the VM.
389
+
1. Refresh the browser window. The page should still display the customized page. The load balancer is now only sending traffic to the remaining VM.
398
390
399
391
## Clean up resources
400
392
@@ -404,11 +396,11 @@ When no longer needed, delete the resource group, load balancer, and all related
404
396
405
397
In this quickstart, you:
406
398
407
-
* Created an internal Azure Load Balancer
399
+
- Created an internal Azure Load Balancer
408
400
409
-
* Attached 2 VMs to the load balancer
401
+
- Attached 2 VMs to the load balancer
410
402
411
-
* Configured the load balancer traffic rule, health probe, and then tested the load balancer
403
+
- Configured the load balancer traffic rule, health probe, and then tested the load balancer
412
404
413
405
To learn more about Azure Load Balancer, continue to:
0 commit comments