Skip to main content

inbound_nat_rules

Creates, updates, deletes, gets or lists an inbound_nat_rules resource.

Overview

Nameinbound_nat_rules
TypeResource
Idazure.network.inbound_nat_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
backendAddressPoolobjectReference to another subresource.
backendIPConfigurationobjectA reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP.
backendPortintegerThe port used for the internal endpoint. Acceptable values range from 1 to 65535.
enableFloatingIPbooleanConfigures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.
enableTcpResetbooleanReceive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.
etagstringA unique read-only string that changes whenever the resource is updated.
frontendIPConfigurationobjectReference to another subresource.
frontendPortintegerThe port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534.
frontendPortRangeEndintegerThe port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.
frontendPortRangeStartintegerThe port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534.
idleTimeoutInMinutesintegerThe timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.
protocolstringThe reference to the transport protocol used by the load balancing rule. Known values are: "Udp", "Tcp", "All", and "Quic". (Udp, Tcp, All, Quic)
provisioningStatestringThe provisioning state of the inbound NAT rule resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, load_balancer_name, inbound_nat_rule_name, subscription_id$expandGets the specified load balancer inbound NAT rule.
listselectresource_group_name, load_balancer_name, subscription_idGets all the inbound NAT rules in a load balancer.
create_or_updateinsertresource_group_name, load_balancer_name, inbound_nat_rule_name, subscription_idCreates or updates a load balancer inbound NAT rule.
create_or_updatereplaceresource_group_name, load_balancer_name, inbound_nat_rule_name, subscription_idCreates or updates a load balancer inbound NAT rule.
deletedeleteresource_group_name, load_balancer_name, inbound_nat_rule_name, subscription_idDeletes the specified load balancer inbound NAT rule.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
inbound_nat_rule_namestringThe name of the inbound NAT rule. Required.
load_balancer_namestringThe name of the load balancer. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringExpands referenced resources. Default value is None.

SELECT examples

Gets the specified load balancer inbound NAT rule.

SELECT
id,
name,
backendAddressPool,
backendIPConfiguration,
backendPort,
enableFloatingIP,
enableTcpReset,
etag,
frontendIPConfiguration,
frontendPort,
frontendPortRangeEnd,
frontendPortRangeStart,
idleTimeoutInMinutes,
protocol,
provisioningState,
type
FROM azure.network.inbound_nat_rules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND load_balancer_name = '{{ load_balancer_name }}' -- required
AND inbound_nat_rule_name = '{{ inbound_nat_rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a load balancer inbound NAT rule.

INSERT INTO azure.network.inbound_nat_rules (
id,
name,
properties,
resource_group_name,
load_balancer_name,
inbound_nat_rule_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ load_balancer_name }}',
'{{ inbound_nat_rule_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates or updates a load balancer inbound NAT rule.

REPLACE azure.network.inbound_nat_rules
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND load_balancer_name = '{{ load_balancer_name }}' --required
AND inbound_nat_rule_name = '{{ inbound_nat_rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes the specified load balancer inbound NAT rule.

DELETE FROM azure.network.inbound_nat_rules
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND load_balancer_name = '{{ load_balancer_name }}' --required
AND inbound_nat_rule_name = '{{ inbound_nat_rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;