Skip to content

Commit

Permalink
Merge pull request #3 from mahipdeora/mahipdeora-patch-1-1
Browse files Browse the repository at this point in the history
Mahipdeora patch 1 1
  • Loading branch information
mahipdeora authored Aug 10, 2023
2 parents 3e6ecdf + b275b78 commit 28b712d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion articles/load-balancer/manage-inbound-nat-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,13 @@ $lb | Set-AzLoadBalancer

[!INCLUDE [azure-cli-prepare-your-environment.md](~/articles/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]

In this example, you create an inbound NAT rule to forward port **500** to backend port **443**.
In this example, you will create an inbound NAT rule to forward port **500** to backend port **443**. You will then attach the inbound NAT rule to a VM's NIC

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.

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


```azurecli
az network lb inbound-nat-rule create \
--backend-port 443 \
Expand All @@ -124,6 +125,7 @@ Use [az network nic ip-config inbound-nat-rule add](/cli/azure/network/nic/ip-co
--ip-config-name MyIpConfig \
--inbound-nat-rule MyNatRule \
--lb-name myLoadBalancer
```
---

Expand Down

0 comments on commit 28b712d

Please sign in to comment.