az network nic ip-config inbound-nat-rule

Manage inbound NAT rules of an IP configuration.

Commands

az network nic ip-config inbound-nat-rule add Add an inbound NAT rule to an IP configuration.
az network nic ip-config inbound-nat-rule remove Remove an inbound NAT rule of an IP configuration.

az network nic ip-config inbound-nat-rule add

Add an inbound NAT rule to an IP configuration.

az network nic ip-config inbound-nat-rule add --inbound-nat-rule
--ip-config-name
--nic-name
--resource-group
[--lb-name]
[--subscription]

Examples

Add an inbound NAT rule to an IP configuration.

az network nic ip-config inbound-nat-rule add -g MyResourceGroup --nic-name MyNic \
    -n MyIpConfig --inbound-nat-rule MyNatRule

Add an inbound NAT rule to an IP configuration. (autogenerated)

az network nic ip-config inbound-nat-rule add --inbound-nat-rule MyNatRule --ip-config-name MyIpConfig --lb-name MyLb --nic-name MyNic --resource-group MyResourceGroup

Required Parameters

--inbound-nat-rule

The name or ID of an existing inbound NAT rule.

--ip-config-name -n

The name of the IP configuration.

--nic-name

The network interface (NIC).

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--lb-name

The name of the load balancer associated with the NAT rule (Omit if suppying a NAT rule ID).

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network nic ip-config inbound-nat-rule remove

Remove an inbound NAT rule of an IP configuration.

az network nic ip-config inbound-nat-rule remove --inbound-nat-rule
--ip-config-name
--nic-name
--resource-group
[--lb-name]
[--subscription]

Examples

Remove an inbound NAT rule of an IP configuration.

az network nic ip-config inbound-nat-rule remove -g MyResourceGroup --nic-name MyNic \
    -n MyIpConfig --inbound-nat-rule MyNatRule

Remove an inbound NAT rule of an IP configuration. (autogenerated)

az network nic ip-config inbound-nat-rule remove --inbound-nat-rule MyNatRule --ip-config-name MyIpConfig --lb-name MyLb --nic-name MyNic --resource-group MyResourceGroup

Required Parameters

--inbound-nat-rule

The name or ID of an existing inbound NAT rule.

--ip-config-name -n

The name of the IP configuration.

--nic-name

The network interface (NIC).

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--lb-name

The name of the load balancer associated with the NAT rule (Omit if suppying a NAT rule ID).

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.