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
The name or ID of an existing inbound NAT rule.
The name of the IP configuration.
The network interface (NIC).
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The name of the load balancer associated with the NAT rule (Omit if suppying a NAT rule ID).
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
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
The name or ID of an existing inbound NAT rule.
The name of the IP configuration.
The network interface (NIC).
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The name of the load balancer associated with the NAT rule (Omit if suppying a NAT rule ID).
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.