Skip to content

Commit b64c8d1

Browse files
authored
Merge pull request #4 from mahipdeora/mahipdeora-patch-1-2
Mahipdeora patch 1 2
2 parents 2769ba6 + a716d09 commit b64c8d1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

articles/load-balancer/manage-inbound-nat-rules.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,24 @@ In this example, you create an inbound NAT rule to forward port **500** to backe
106106

107107
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.
108108

109+
Use [az network nic ip-config inbound-nat-rule add](/cli/azure/network/nic/ip-config/inbound-nat-rule) to add the inbound NAT rule to a VM's NIC
110+
109111
```azurecli
110112
az network lb inbound-nat-rule create \
111113
--backend-port 443 \
112114
--lb-name myLoadBalancer \
113115
--name myInboundNATrule \
114116
--protocol Tcp \
115117
--resource-group myResourceGroup \
116-
--backend-pool-name myBackendPool \
117118
--frontend-ip-name myFrontend \
118-
--frontend-port-range-end 1000 \
119-
--frontend-port-range-start 500
119+
--frontend-port 500
120+
121+
az network nic ip-config inbound-nat-rule add \
122+
--resource-group myResourceGroup \
123+
--nic-name MyNic \
124+
--ip-config-name MyIpConfig \
125+
--inbound-nat-rule MyNatRule \
126+
--lb-name myLoadBalancer
120127
```
121128
---
122129

0 commit comments

Comments
 (0)