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: articles/load-balancer/manage-rules-how-to.md
+28-46Lines changed: 28 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,23 +5,23 @@ author: mbender-ms
5
5
ms.author: mbender
6
6
ms.service: azure-load-balancer
7
7
ms.topic: how-to
8
-
ms.date: 02/12/2024
8
+
ms.date: 12/06/2024
9
9
ms.custom: template-how-to, engagement-fy23
10
10
---
11
11
12
12
# Manage rules for Azure Load Balancer using the Azure portal
13
13
14
-
Azure Load Balancer supports rules to configure traffic to the backend pool. In this article, you'll learn how to manage the rules for an Azure Load Balancer.
14
+
Azure Load Balancer supports rules to configure traffic to the backend pool. In this article, you learn how to manage the rules for an Azure Load Balancer.
15
15
16
16
There are four types of rules:
17
17
18
-
***Load-balancing rules** - A load balancer rule is used to define how incoming traffic is distributed to **all** the instances within the backend pool. A load-balancing rule maps a given frontend IP configuration and port to multiple backend IP addresses and ports. An example would be a rule created on port 80 to load balance web traffic.
18
+
-**Load-balancing rules** - A load balancer rule is used to define how incoming traffic is distributed to **all** the instances within the backend pool. A load-balancing rule maps a given frontend IP configuration and port to multiple backend IP addresses and ports. An example would be a rule created on port 80 to load balance web traffic.
19
19
20
-
***High availability ports** - A load balancer rule configured with **protocol - all** and **port - 0**. These rules enable a single rule to load-balance all TCP and UDP traffic that arrive on all ports of an internal standard load balancer. The HA ports load-balancing rules help with scenarios, such as high availability and scale for network virtual appliances (NVAs) inside virtual networks. The feature can help when a large number of ports must be load-balanced.
20
+
-**High availability ports** - A load balancer rule configured with **protocol - all** and **port - 0**. These rules enable a single rule to load-balance all TCP and UDP traffic that arrive on all ports of an internal standard load balancer. The HA ports load-balancing rules help with scenarios, such as high availability and scale for network virtual appliances (NVAs) inside virtual networks. The feature can help when a large number of ports must be load-balanced.
21
21
22
-
***Inbound NAT rule** - An inbound NAT rule forwards incoming traffic sent to frontend IP address and port combination. The traffic is sent to a **specific** virtual machine or instance in the backend pool. Port forwarding is done by the same hash-based distribution as load balancing.
22
+
-**Inbound NAT rule** - An inbound NAT rule forwards incoming traffic sent to frontend IP address and port combination. The traffic is sent to a **specific** virtual machine or instance in the backend pool. Port forwarding is done by the same hash-based distribution as load balancing.
23
23
24
-
***Outbound rule** - An outbound rule configures outbound Network Address Translation (NAT) for **all** virtual machines or instances identified by the backend pool. This rule enables instances in the backend to communicate (outbound) to the internet or other endpoints.
24
+
-**Outbound rule** - An outbound rule configures outbound Network Address Translation (NAT) for **all** virtual machines or instances identified by the backend pool. This rule enables instances in the backend to communicate (outbound) to the internet or other endpoints.
25
25
26
26
## Prerequisites
27
27
@@ -33,11 +33,11 @@ There are four types of rules:
33
33
34
34
## Load-balancing rules
35
35
36
-
In this section, you'll learn how to add and remove a load-balancing rule. A public load balancer is used in the examples.
36
+
In this section, you learn how to add and remove a load-balancing rule. A public load balancer is used in the examples.
37
37
38
38
### Add a load-balancing rule
39
39
40
-
In this example, you'll create a rule to load balance port 80.
40
+
In this example, you create a rule to load balance port 80.
41
41
42
42
1. Sign in to the [Azure portal](https://portal.azure.com).
43
43
@@ -49,8 +49,6 @@ In this example, you'll create a rule to load balance port 80.
49
49
50
50
5. Select **+ Add** in **Load balancing rules** to add a rule.
51
51
52
-
:::image type="content" source="./media/manage-rules-how-to/load-balancing-rules.png" alt-text="Screenshot of the load-balancing rules page in a standard load balancer." border="true":::
53
-
54
52
6. Enter or select the following information in **Add load balancing rule**.
55
53
56
54
| Setting | Value |
@@ -61,21 +59,19 @@ In this example, you'll create a rule to load balance port 80.
61
59
| Protocol | Leave the default of **TCP**. |
62
60
| Port | Enter **80**. |
63
61
| Backend port | Enter **80**. |
64
-
| Backend pool | Select the backend pool of the load balancer.</br> In this example, it's **myBackendPool**. |
65
-
| Health probe | Select **Create new**.</br> In **Name**, enter **myHealthProbe**.</br> Select **HTTP** in **Protocol**.</br> Leave the rest at the defaults or tailor to your requirements.</br> Select **OK**. |
66
-
| Session persistence | Select **None** or your required persistence.</br> For more information about distribution modes, see [Azure Load Balancer distribution modes](load-balancer-distribution-mode.md). |
62
+
| Backend pool | Select the backend pool of the load balancer.</br> In this example, it's **myBackendPool**. |
63
+
| Health probe | Select **Create new**.</br> In **Name**, enter **myHealthProbe**.</br> Select **HTTP** in **Protocol**.</br> Leave the rest at the defaults or tailor to your requirements.</br> Select **OK**. |
64
+
| Session persistence | Select **None** or your required persistence.</br> For more information about distribution modes, see [Azure Load Balancer distribution modes](load-balancer-distribution-mode.md). |
67
65
| Idle timeout (minutes) | Leave the default of **4** or move the slider to your required idle timeout. |
68
-
| TCP reset | Select **Enabled**.</br> For more information on TCP reset, see [Load Balancer TCP Reset and Idle Timeout](load-balancer-tcp-reset.md). |
69
-
| Floating IP | Leave the default of **Disabled** or enable if your deployment requires floating IP.</br> For information on floating IP, see [Azure Load Balancer Floating IP configuration](load-balancer-floating-ip.md). |
70
-
| Outbound source network address translation (SNAT) | Leave the default of **(Recommended) Use outbound rules to provide backend pool members access to the internet.**</br> For more information on outbound rules and (SNAT), see [Outbound rules Azure Load Balancer](outbound-rules.md) and [Using Source Network Address Translation (SNAT) for outbound connections](load-balancer-outbound-connections.md).|
66
+
| TCP reset | Select **Enabled**.</br> For more information on TCP reset, see [Load Balancer TCP Reset and Idle Timeout](load-balancer-tcp-reset.md). |
67
+
| Floating IP | Leave the default of **Disabled** or enable if your deployment requires floating IP.</br> For information on floating IP, see [Azure Load Balancer Floating IP configuration](load-balancer-floating-ip.md). |
68
+
| Outbound source network address translation (SNAT) | Leave the default of **(Recommended) Use outbound rules to provide backend pool members access to the internet.**</br> For more information on outbound rules and (SNAT), see [Outbound rules Azure Load Balancer](outbound-rules.md) and [Using Source Network Address Translation (SNAT) for outbound connections](load-balancer-outbound-connections.md).|
71
69
72
70
7. Select **Add**.
73
71
74
-
:::image type="content" source="./media/manage-rules-how-to/add-load-balancing-rule.png" alt-text="Screenshot of the add load balancer rule page." border="true":::
75
-
76
72
### Remove a load-balancing rule
77
73
78
-
In this example, you'll remove a load-balancing rule.
74
+
In this example, you remove a load-balancing rule.
79
75
80
76
1. Sign in to the [Azure portal](https://portal.azure.com).
81
77
@@ -89,17 +85,15 @@ In this example, you'll remove a load-balancing rule.
89
85
90
86
6. Select **Delete**.
91
87
92
-
:::image type="content" source="./media/manage-rules-how-to/remove-load-balancing-rule.png" alt-text="Screenshot of removing a load-balancing rule." border="true":::
93
-
94
88
## High availability ports
95
89
96
-
In this section, you'll learn how to add and remove a high availability ports rule. You'll use an internal load balancer in this example.
90
+
In this section, you learn how to add and remove a high availability ports rule. You use an internal load balancer in this example.
97
91
98
92
HA ports rules are supported on a standard internal load balancer.
99
93
100
94
### Add high availability ports rule
101
95
102
-
In this example, you'll create a high availability ports rule.
96
+
In this example, you create a high availability ports rule.
103
97
104
98
1. Sign in to the [Azure portal](https://portal.azure.com).
105
99
@@ -111,31 +105,27 @@ In this example, you'll create a high availability ports rule.
111
105
112
106
5. Select **+ Add** in **Load balancing rules** to add a rule.
113
107
114
-
:::image type="content" source="./media/manage-rules-how-to/load-balancing-rules.png" alt-text="Screenshot of the load-balancing rules page in a standard load balancer." border="true":::
115
-
116
108
6. Enter or select the following information in **Add load balancing rule**.
117
109
118
110
| Setting | Value |
119
111
| ------- | ----- |
120
112
| Name | Enter **myHARule**. |
121
113
| IP Version | Select **IPv4** or **IPv6**. |
122
-
| Frontend IP address | Select the frontend IP address of the load balancer. <br> In this example, it's **myFrontendIP**.</br> Select the box next to **HA Ports**. |
123
-
| Backend pool | Select the backend pool of the load balancer.</br> In this example, it's **myBackendPool**. |
124
-
| Health probe | Select **Create new**.</br> In **Name**, enter **myHealthProbe**.</br> Select **TCP** in **Protocol**.</br> Enter a TCP port in **Port**. In this example, it's port **80**. Enter a port that meets your requirements.</br> Leave the rest at the defaults or tailor to your requirements.</br> Select **OK**. |
125
-
| Session persistence | Select **None** or your required persistence.</br> For more information about distribution modes, see [Azure Load Balancer distribution modes](load-balancer-distribution-mode.md). |
114
+
| Frontend IP address | Select the frontend IP address of the load balancer. <br> In this example, it's **myFrontendIP**.</br> Select the box next to **HA Ports**. |
115
+
| Backend pool | Select the backend pool of the load balancer.</br> In this example, it's **myBackendPool**. |
116
+
| Health probe | Select **Create new**.</br> In **Name**, enter **myHealthProbe**.</br> Select **TCP** in **Protocol**.</br> Enter a TCP port in **Port**. In this example, it's port **80**. Enter a port that meets your requirements.</br> Leave the rest at the defaults or tailor to your requirements.</br> Select **OK**. |
117
+
| Session persistence | Select **None** or your required persistence.</br> For more information about distribution modes, see [Azure Load Balancer distribution modes](load-balancer-distribution-mode.md). |
126
118
| Idle timeout (minutes) | Leave the default of **4** or move the slider to your required idle timeout. |
127
-
| TCP reset | Select **Enabled**.</br> For more information on TCP reset, see [Load Balancer TCP Reset and Idle Timeout](load-balancer-tcp-reset.md). |
128
-
| Floating IP | Leave the default of **Disabled** or enable if your deployment requires floating IP.</br> For information on floating IP, see [Azure Load Balancer Floating IP configuration](load-balancer-floating-ip.md). |
119
+
| TCP reset | Select **Enabled**.</br> For more information on TCP reset, see [Load Balancer TCP Reset and Idle Timeout](load-balancer-tcp-reset.md). |
120
+
| Floating IP | Leave the default of **Disabled** or enable if your deployment requires floating IP.</br> For information on floating IP, see [Azure Load Balancer Floating IP configuration](load-balancer-floating-ip.md). |
129
121
130
122
For more information on HA ports rule configuration, see **[High availability ports overview](load-balancer-ha-ports-overview.md)**.
131
123
132
124
7. Select **Add**.
133
125
134
-
:::image type="content" source="./media/manage-rules-how-to/add-ha-ports-load-balancing-rule.png" alt-text="Screenshot of the add load balancer HA ports rule page." border="true":::
135
-
136
126
### Remove a high availability ports rule
137
127
138
-
In this example, you'll remove a load-balancing rule.
128
+
In this example, you remove a load-balancing rule.
139
129
140
130
1. Sign in to the [Azure portal](https://portal.azure.com).
141
131
@@ -149,21 +139,19 @@ In this example, you'll remove a load-balancing rule.
149
139
150
140
6. Select **Delete**.
151
141
152
-
:::image type="content" source="./media/manage-rules-how-to/remove-ha-ports-load-balancing-rule.png" alt-text="Screenshot of removing a HA ports load-balancing rule." border="true":::
153
-
154
142
## Inbound NAT rule
155
143
156
144
Inbound NAT rules are used to route connections to a specific VM in the backend pool. For more information and a detailed tutorial on configuring and testing inbound NAT rules, see [Tutorial: Configure port forwarding in Azure Load Balancer using the portal](tutorial-load-balancer-port-forwarding-portal.md).
157
145
158
146
## Outbound rule
159
147
160
-
You'll learn how to add and remove an outbound rule in this section. You'll use a public load balancer in this example.
148
+
You learn how to add and remove an outbound rule in this section. You use a public load balancer in this example.
161
149
162
150
Outbound rules are supported on standard public load balancers.
163
151
164
152
### Add outbound rule
165
153
166
-
In this example, you'll create an outbound rule.
154
+
In this example, you create an outbound rule.
167
155
168
156
1. Sign in to the [Azure portal](https://portal.azure.com).
169
157
@@ -175,8 +163,6 @@ In this example, you'll create an outbound rule.
175
163
176
164
5. Select **+ Add** in **Outbound rules** to add a rule.
177
165
178
-
:::image type="content" source="./media/manage-rules-how-to/outbound-rules.png" alt-text="Screenshot of the outbound rules page in a standard load balancer." border="true":::
179
-
180
166
6. Enter or select the following information in **Add outbound rule**.
181
167
182
168
| Setting | Value |
@@ -187,7 +173,7 @@ In this example, you'll create an outbound rule.
187
173
| Protocol | Leave the default of **All**. |
188
174
| Idle timeout (minutes) | Leave the default of **4** or move the slider to meet your requirements. |
189
175
| TCP Reset | Leave the default of **Enabled**. |
190
-
| Backend pool | Select the backend pool of the load balancer.</br> In this example, it's **myBackendPool**. |
176
+
| Backend pool | Select the backend pool of the load balancer.</br> In this example, it's **myBackendPool**. |
191
177
|**Port allocation**||
192
178
| Port allocation | Select **Manually choose number of outbound ports**. |
193
179
|**Outbound ports**||
@@ -196,11 +182,9 @@ In this example, you'll create an outbound rule.
196
182
197
183
7. Select **Add**.
198
184
199
-
:::image type="content" source="./media/manage-rules-how-to/add-outbound-rule.png" alt-text="Screenshot of the add outbound rule page." border="true":::
200
-
201
185
### Remove an outbound rule
202
186
203
-
In this example, you'll remove an outbound rule.
187
+
In this example, you remove an outbound rule.
204
188
205
189
1. Sign in to the [Azure portal](https://portal.azure.com).
206
190
@@ -214,8 +198,6 @@ In this example, you'll remove an outbound rule.
214
198
215
199
6. Select **Delete**.
216
200
217
-
:::image type="content" source="./media/manage-rules-how-to/remove-outbound-rule.png" alt-text="Screenshot of removing an outbound rule." border="true":::
218
-
219
201
## Next steps
220
202
221
203
In this article, you learned how to manage load-balancing rules for an Azure Load Balancer.
0 commit comments