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-inbound-nat-rules.md
+12-29Lines changed: 12 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ In this example, you will create an inbound NAT rule to forward port **500** to
159
159
```
160
160
---
161
161
162
-
## Inbound NAT rule V2 for VM and VMSS
162
+
## Inbound NAT rule V2 for virtual machines and virtual machine scale sets
163
163
Choose this option to configure a rule with a range of ports to a backend pool of virtual machines. Select Azure portal, PowerShell, or CLI for instructions.
164
164
165
165
# [**Portal**](#tab/inbound-nat-rule-portal)
@@ -176,8 +176,6 @@ In this example, you create an inbound NAT rule to forward a range of ports star
176
176
177
177
5. Select **+ Add** in **Inbound NAT rules** to add the rule.
178
178
179
-
:::image type="content" source="./media/manage-inbound-nat-rules/add-rule.png" alt-text="Screenshot of the inbound NAT rules page for Azure Load Balancer":::
180
-
181
179
6. Enter or select the following information in **Add inbound NAT rule**.
182
180
183
181
| Setting | Value |
@@ -192,18 +190,15 @@ In this example, you create an inbound NAT rule to forward a range of ports star
192
190
| Protocol | Select **TCP**. |
193
191
194
192
7. Leave the rest at the defaults and select **Add**.
195
-
196
-
:::image type="content" source="./media/manage-inbound-nat-rules/add-inbound-nat-rule.png" alt-text="Screenshot of the add inbound NAT rules page":::
In this example, you create an inbound NAT rule to forward a range of ports starting at port 500 to backend port 443. The maximum number of machines in the backend pool is set by the parameter `-FrontendPortRangeEnd` with a value of **1000**. This setting limits the backend pool to **500** virtual machines.
201
197
202
-
Use [Get-AzLoadBalancer](/powershell/module/az.network/get-azloadbalancer) to place the load balancer information into a variable.
203
-
204
-
Use [Add-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/add-azloadbalancerinboundnatruleconfig) to create the inbound NAT rule.
198
+
- Use [Get-AzLoadBalancer](/powershell/module/az.network/get-azloadbalancer) to place the load balancer information into a variable.
205
199
206
-
To save the configuration to the load balancer, use [Set-AzLoadBalancer](/powershell/module/az.network/set-azloadbalancer)
200
+
- Use [Add-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/add-azloadbalancerinboundnatruleconfig) to create the inbound NAT rule.
201
+
- To save the configuration to the load balancer, use [Set-AzLoadBalancer](/powershell/module/az.network/set-azloadbalancer)
207
202
208
203
```azurepowershell
209
204
## Place the load balancer information into a variable for later use. ##
@@ -233,7 +228,7 @@ $lb | Set-AzLoadBalancer
233
228
234
229
In this example, you create an inbound NAT rule to forward a range of ports starting at port 500 to backend port 443. The maximum number of machines in the backend pool is set by the parameter `--frontend-port-range-end` with a value of **1000**. This setting limits the backend pool to **500** virtual machines.
235
230
236
-
Use [az network lb inbound-nat-rule create](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-create) to create the NAT rule.
231
+
-Use [az network lb inbound-nat-rule create](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-create) to create the NAT rule.
237
232
238
233
```azurecli
239
234
az network lb inbound-nat-rule create \
@@ -267,21 +262,17 @@ To accommodate more virtual machines in the backend pool in a multiple instance
267
262
268
263
5. Select the inbound NAT rule you wish to change. In this example, it's **myInboundNATrule**.
269
264
270
-
:::image type="content" source="./media/manage-inbound-nat-rules/select-inbound-nat-rule.png" alt-text="Screenshot of inbound NAT rule overview.":::
271
-
272
265
6. In the properties of the inbound NAT rule, change the value in **Maximum number of machines in backend pool** to **1000**.
273
266
274
267
7. Select **Save**.
275
268
276
-
:::image type="content" source="./media/manage-inbound-nat-rules/change-frontend-ports.png" alt-text="Screenshot of inbound NAT rule properties page.":::
To accommodate more virtual machines in the backend pool in a multiple instance rule, change the frontend port allocation in the inbound NAT rule. In this example, you change the parameter `-FrontendPortRangeEnd` to **1500**. This setting increases the maximum number of machines in the backend pool to **1000**.
281
272
282
-
Use [Get-AzLoadBalancer](/powershell/module/az.network/get-azloadbalancer) to place the load balancer information into a variable.
273
+
-Use [Get-AzLoadBalancer](/powershell/module/az.network/get-azloadbalancer) to place the load balancer information into a variable.
283
274
284
-
To change the port allocation, use [Set-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/set-azloadbalancerinboundnatruleconfig).
275
+
-To change the port allocation, use [Set-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/set-azloadbalancerinboundnatruleconfig).
285
276
286
277
```azurepowershell
287
278
## Place the load balancer information into a variable for later use. ##
To accommodate more virtual machines in the backend pool, change the frontend port allocation in the inbound NAT rule. In this example, you change the parameter `--frontend-port-range-end` to **1500**. This setting increases the maximum number of machines in the backend pool to **1000**
311
302
312
-
Use [az network lb inbound-nat-rule update](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-update) to change the frontend port allocation.
303
+
-Use [az network lb inbound-nat-rule update](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-update) to change the frontend port allocation.
313
304
314
305
```azurecli
315
306
az network lb inbound-nat-rule update \
@@ -336,12 +327,8 @@ Port mappings for the virtual machines in the backend pool can be viewed by usin
336
327
337
328
5. Select **myInboundNATrule** or your inbound NAT rule.
338
329
339
-
:::image type="content" source="./media/manage-inbound-nat-rules/view-inbound-nat-rule.png" alt-text="Screenshot of inbound NAT rule page.":::
340
-
341
330
6. Scroll to the **Port mapping** section of the inbound NAT rule properties page.
342
331
343
-
:::image type="content" source="./media/manage-inbound-nat-rules/view-port-mappings.png" alt-text="Screenshot of inbound NAT rule port mappings.":::
344
-
345
332
## Remove an inbound NAT rule
346
333
347
334
# [**Portal**](#tab/inbound-nat-rule-portal)
@@ -360,17 +347,13 @@ In this example, you remove an inbound NAT rule.
360
347
361
348
6. Select **Delete**.
362
349
363
-
:::image type="content" source="./media/manage-inbound-nat-rules/remove-inbound-nat-rule.png" alt-text="Screenshot of inbound NAT rule removal.":::
Use [Get-AzLoadBalancer](/powershell/module/az.network/get-azloadbalancer) to place the load balancer information into a variable.
370
-
371
-
To remove the inbound NAT rule, use [Remove-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/remove-azloadbalancerinboundnatruleconfig).
372
-
373
-
To save the configuration to the load balancer, use [Set-AzLoadBalancer](/powershell/module/az.network/set-azloadbalancer).
354
+
- Use [Get-AzLoadBalancer](/powershell/module/az.network/get-azloadbalancer) to place the load balancer information into a variable.
355
+
- To remove the inbound NAT rule, use [Remove-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/remove-azloadbalancerinboundnatruleconfig).
356
+
- To save the configuration to the load balancer, use [Set-AzLoadBalancer](/powershell/module/az.network/set-azloadbalancer).
374
357
375
358
```azurepowershell
376
359
## Place the load balancer information into a variable for later use. ##
@@ -391,7 +374,7 @@ $lb | Set-AzLoadBalancer
391
374
392
375
In this example, you remove an inbound NAT rule.
393
376
394
-
Use [az network lb inbound-nat-rule delete](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-delete) to remove the rule.
377
+
-Use [az network lb inbound-nat-rule delete](/cli/azure/network/lb/inbound-nat-rule#az-network-lb-inbound-nat-rule-delete) to remove the rule.
0 commit comments