az network lb inbound-nat-rule
Manage inbound NAT rules of a load balancer.
Commands
| az network lb inbound-nat-rule create |
Create an inbound NAT rule. |
| az network lb inbound-nat-rule delete |
Delete an inbound NAT rule. |
| az network lb inbound-nat-rule list |
List inbound NAT rules. |
| az network lb inbound-nat-rule show |
Get the details of an inbound NAT rule. |
| az network lb inbound-nat-rule update |
Update an inbound NAT rule. |
az network lb inbound-nat-rule create
Create an inbound NAT rule.
az network lb inbound-nat-rule create --backend-port
--lb-name
--name
--protocol {All, Tcp, Udp}
--resource-group
[--backend-pool-name]
[--enable-tcp-reset {false, true}]
[--floating-ip {false, true}]
[--frontend-ip-name]
[--frontend-port]
[--frontend-port-range-end]
[--frontend-port-range-start]
[--idle-timeout]
Examples
Create a basic inbound NAT rule for port 80.
az network lb inbound-nat-rule create -g MyResourceGroup --lb-name MyLb -n MyNatRule \
--protocol Tcp --frontend-port 80 --backend-port 80
Create a basic inbound NAT rule for a specific frontend IP and enable floating IP for NAT Rule.
az network lb inbound-nat-rule create -g MyResourceGroup --lb-name MyLb -n MyNatRule --protocol Tcp \
--frontend-port 5432 --backend-port 3389 --frontend-ip-name MyFrontendIp --floating-ip true
Required Parameters
Port number.
The load balancer name.
The name of the inbound NAT rule.
Network transport protocol.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The name of the backend address pool.
Receive bidirectional TCP reset on TCP flow idle timeout or unexpected connection termination. Only used when protocol is set to TCP.
Enable floating IP.
The name of the frontend IP configuration. If only one exists, omit to use as default.
Port number.
Port number.
Port number.
Idle timeout in minutes.
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network lb inbound-nat-rule delete
Delete an inbound NAT rule.
az network lb inbound-nat-rule delete --lb-name
--name
--resource-group
Examples
Delete an inbound NAT rule.
az network lb inbound-nat-rule delete -g MyResourceGroup --lb-name MyLb -n MyNatRule
Required Parameters
The name of the load balancer.
The name of the inbound NAT rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network lb inbound-nat-rule list
List inbound NAT rules.
az network lb inbound-nat-rule list --lb-name
--resource-group
Examples
List inbound NAT rules.
az network lb inbound-nat-rule list -g MyResourceGroup --lb-name MyLb -o table
Required Parameters
The name of the load balancer.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network lb inbound-nat-rule show
Get the details of an inbound NAT rule.
az network lb inbound-nat-rule show --lb-name
--name
--resource-group
Examples
Get the details of an inbound NAT rule.
az network lb inbound-nat-rule show -g MyResourceGroup --lb-name MyLb -n MyNatRule
Required Parameters
The name of the load balancer.
The name of the inbound NAT rule.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network lb inbound-nat-rule update
Update an inbound NAT rule.
az network lb inbound-nat-rule update [--add]
[--backend-port]
[--enable-tcp-reset {false, true}]
[--floating-ip {false, true}]
[--force-string]
[--frontend-ip-name]
[--frontend-port]
[--frontend-port-range-end]
[--frontend-port-range-start]
[--idle-timeout]
[--ids]
[--lb-name]
[--name]
[--protocol {All, Tcp, Udp}]
[--remove]
[--resource-group]
[--set]
Examples
Update an inbound NAT rule to disable floating IP and modify idle timeout duration.
az network lb inbound-nat-rule update -g MyResourceGroup --lb-name MyLb -n MyNatRule \
--floating-ip false --idle-timeout 5
Update an inbound NAT rule. (autogenerated)
az network lb inbound-nat-rule update --backend-port 3389 --frontend-port 5432 --lb-name MyLb --name MyNatRule --protocol Udp --resource-group MyResourceGroup
Update an inbound NAT rule. (autogenerated)
az network lb inbound-nat-rule update --lb-name MyLb --name MyNatRule --resource-group MyResourceGroup --set tags.CostCenter=MyBusinessGroup
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
Port number.
Receive bidirectional TCP reset on TCP flow idle timeout or unexpected connection termination. Only used when protocol is set to TCP.
Enable floating IP.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
The name of the frontend IP configuration.
Port number.
Port number.
Port number.
Idle timeout in minutes.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The load balancer name.
The name of the inbound NAT rule.
Network transport protocol.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ