az network lb inbound-nat-pool

Manage inbound NAT address pools of a load balancer.

Commands

az network lb inbound-nat-pool create Create an inbound NAT address pool.
az network lb inbound-nat-pool delete Delete an inbound NAT address pool.
az network lb inbound-nat-pool list List inbound NAT address pools.
az network lb inbound-nat-pool show Get the details of an inbound NAT address pool.
az network lb inbound-nat-pool update Update an inbound NAT address pool.

az network lb inbound-nat-pool create

Create an inbound NAT address pool.

az network lb inbound-nat-pool create --backend-port
--frontend-port-range-end
--frontend-port-range-start
--lb-name
--name
--protocol {All, Tcp, Udp}
--resource-group
[--enable-tcp-reset {false, true}]
[--floating-ip {false, true}]
[--frontend-ip-name]
[--idle-timeout]
[--subscription]

Examples

Create an inbound NAT address pool.

az network lb inbound-nat-pool create -g MyResourceGroup --lb-name MyLb \
                        -n MyNatPool --protocol Tcp --frontend-port-range-start 80 --frontend-port-range-end 89 \
                        --backend-port 80 --frontend-ip-name MyFrontendIp

Required Parameters

--backend-port

Port number.

--frontend-port-range-end

Port number.

--frontend-port-range-start

Port number.

--lb-name

The load balancer name.

--name -n

The name of the inbound NAT pool.

--protocol

Network transport protocol.

accepted values: All, Tcp, Udp
--resource-group -g

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

Optional Parameters

--enable-tcp-reset

Receive bidirectional TCP reset on TCP flow idle timeout or unexpected connection termination. Only used when protocol is set to TCP.

accepted values: false, true
--floating-ip

Enable floating IP.

accepted values: false, true
--frontend-ip-name

The name of the frontend IP configuration. If only one exists, omit to use as default.

--idle-timeout

Idle timeout in minutes.

--subscription

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

az network lb inbound-nat-pool delete

Delete an inbound NAT address pool.

az network lb inbound-nat-pool delete --lb-name
--name
--resource-group
[--subscription]

Examples

Delete an inbound NAT address pool.

az network lb inbound-nat-pool delete -g MyResourceGroup --lb-name MyLb -n MyNatPool

Required Parameters

--lb-name

The name of the load balancer.

--name -n

The name of the inbound NAT pool.

--resource-group -g

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

Optional Parameters

--subscription

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

az network lb inbound-nat-pool list

List inbound NAT address pools.

az network lb inbound-nat-pool list --lb-name
--resource-group
[--subscription]

Examples

List inbound NAT address pools.

az network lb inbound-nat-pool list -g MyResourceGroup --lb-name MyLb -o table

Required Parameters

--lb-name

The name of the load balancer.

--resource-group -g

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

Optional Parameters

--subscription

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

az network lb inbound-nat-pool show

Get the details of an inbound NAT address pool.

az network lb inbound-nat-pool show --lb-name
--name
--resource-group
[--subscription]

Examples

Get the details of an inbound NAT address pool.

az network lb inbound-nat-pool show -g MyResourceGroup --lb-name MyLb -n MyNatPool

Required Parameters

--lb-name

The name of the load balancer.

--name -n

The name of the inbound NAT pool.

--resource-group -g

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

Optional Parameters

--subscription

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

az network lb inbound-nat-pool update

Update an inbound NAT address pool.

az network lb inbound-nat-pool update [--add]
[--backend-port]
[--enable-tcp-reset {false, true}]
[--floating-ip {false, true}]
[--force-string]
[--frontend-ip-name]
[--frontend-port-range-end]
[--frontend-port-range-start]
[--idle-timeout]
[--ids]
[--lb-name]
[--name]
[--protocol {All, Tcp, Udp}]
[--remove]
[--resource-group]
[--set]
[--subscription]

Examples

Update an inbound NAT address pool to a different backend port.

az network lb inbound-nat-pool update -g MyResourceGroup --lb-name MyLb -n MyNatPool \
                            --protocol Tcp --backend-port 8080

Optional Parameters

--add

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

--backend-port

Port number.

--enable-tcp-reset

Receive bidirectional TCP reset on TCP flow idle timeout or unexpected connection termination. Only used when protocol is set to TCP.

accepted values: false, true
--floating-ip

Enable floating IP.

accepted values: false, true
--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--frontend-ip-name

The name of the frontend IP configuration.

--frontend-port-range-end

Port number.

--frontend-port-range-start

Port number.

--idle-timeout

Idle timeout in minutes.

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--lb-name

The load balancer name.

--name -n

The name of the inbound NAT pool.

--protocol

Network transport protocol.

accepted values: All, Tcp, Udp
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

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

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

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