We recommend using Azure Native.
azure.lb.NatPool
Explore with Pulumi AI
Manages a Load Balancer NAT pool.
NOTE: This resource cannot be used with with virtual machines, instead use the
azure.lb.NatRuleresource.
NOTE When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "LoadBalancerRG",
    location: "West Europe",
});
const examplePublicIp = new azure.network.PublicIp("example", {
    name: "PublicIPForLB",
    location: example.location,
    resourceGroupName: example.name,
    allocationMethod: "Static",
});
const exampleLoadBalancer = new azure.lb.LoadBalancer("example", {
    name: "TestLoadBalancer",
    location: example.location,
    resourceGroupName: example.name,
    frontendIpConfigurations: [{
        name: "PublicIPAddress",
        publicIpAddressId: examplePublicIp.id,
    }],
});
const exampleNatPool = new azure.lb.NatPool("example", {
    resourceGroupName: example.name,
    loadbalancerId: exampleLoadBalancer.id,
    name: "SampleApplicationPool",
    protocol: "Tcp",
    frontendPortStart: 80,
    frontendPortEnd: 81,
    backendPort: 8080,
    frontendIpConfigurationName: "PublicIPAddress",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="LoadBalancerRG",
    location="West Europe")
example_public_ip = azure.network.PublicIp("example",
    name="PublicIPForLB",
    location=example.location,
    resource_group_name=example.name,
    allocation_method="Static")
example_load_balancer = azure.lb.LoadBalancer("example",
    name="TestLoadBalancer",
    location=example.location,
    resource_group_name=example.name,
    frontend_ip_configurations=[{
        "name": "PublicIPAddress",
        "public_ip_address_id": example_public_ip.id,
    }])
example_nat_pool = azure.lb.NatPool("example",
    resource_group_name=example.name,
    loadbalancer_id=example_load_balancer.id,
    name="SampleApplicationPool",
    protocol="Tcp",
    frontend_port_start=80,
    frontend_port_end=81,
    backend_port=8080,
    frontend_ip_configuration_name="PublicIPAddress")
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/lb"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("LoadBalancerRG"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
			Name:              pulumi.String("PublicIPForLB"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			AllocationMethod:  pulumi.String("Static"),
		})
		if err != nil {
			return err
		}
		exampleLoadBalancer, err := lb.NewLoadBalancer(ctx, "example", &lb.LoadBalancerArgs{
			Name:              pulumi.String("TestLoadBalancer"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			FrontendIpConfigurations: lb.LoadBalancerFrontendIpConfigurationArray{
				&lb.LoadBalancerFrontendIpConfigurationArgs{
					Name:              pulumi.String("PublicIPAddress"),
					PublicIpAddressId: examplePublicIp.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = lb.NewNatPool(ctx, "example", &lb.NatPoolArgs{
			ResourceGroupName:           example.Name,
			LoadbalancerId:              exampleLoadBalancer.ID(),
			Name:                        pulumi.String("SampleApplicationPool"),
			Protocol:                    pulumi.String("Tcp"),
			FrontendPortStart:           pulumi.Int(80),
			FrontendPortEnd:             pulumi.Int(81),
			BackendPort:                 pulumi.Int(8080),
			FrontendIpConfigurationName: pulumi.String("PublicIPAddress"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "LoadBalancerRG",
        Location = "West Europe",
    });
    var examplePublicIp = new Azure.Network.PublicIp("example", new()
    {
        Name = "PublicIPForLB",
        Location = example.Location,
        ResourceGroupName = example.Name,
        AllocationMethod = "Static",
    });
    var exampleLoadBalancer = new Azure.Lb.LoadBalancer("example", new()
    {
        Name = "TestLoadBalancer",
        Location = example.Location,
        ResourceGroupName = example.Name,
        FrontendIpConfigurations = new[]
        {
            new Azure.Lb.Inputs.LoadBalancerFrontendIpConfigurationArgs
            {
                Name = "PublicIPAddress",
                PublicIpAddressId = examplePublicIp.Id,
            },
        },
    });
    var exampleNatPool = new Azure.Lb.NatPool("example", new()
    {
        ResourceGroupName = example.Name,
        LoadbalancerId = exampleLoadBalancer.Id,
        Name = "SampleApplicationPool",
        Protocol = "Tcp",
        FrontendPortStart = 80,
        FrontendPortEnd = 81,
        BackendPort = 8080,
        FrontendIpConfigurationName = "PublicIPAddress",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.lb.LoadBalancer;
import com.pulumi.azure.lb.LoadBalancerArgs;
import com.pulumi.azure.lb.inputs.LoadBalancerFrontendIpConfigurationArgs;
import com.pulumi.azure.lb.NatPool;
import com.pulumi.azure.lb.NatPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("LoadBalancerRG")
            .location("West Europe")
            .build());
        var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
            .name("PublicIPForLB")
            .location(example.location())
            .resourceGroupName(example.name())
            .allocationMethod("Static")
            .build());
        var exampleLoadBalancer = new LoadBalancer("exampleLoadBalancer", LoadBalancerArgs.builder()
            .name("TestLoadBalancer")
            .location(example.location())
            .resourceGroupName(example.name())
            .frontendIpConfigurations(LoadBalancerFrontendIpConfigurationArgs.builder()
                .name("PublicIPAddress")
                .publicIpAddressId(examplePublicIp.id())
                .build())
            .build());
        var exampleNatPool = new NatPool("exampleNatPool", NatPoolArgs.builder()
            .resourceGroupName(example.name())
            .loadbalancerId(exampleLoadBalancer.id())
            .name("SampleApplicationPool")
            .protocol("Tcp")
            .frontendPortStart(80)
            .frontendPortEnd(81)
            .backendPort(8080)
            .frontendIpConfigurationName("PublicIPAddress")
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: LoadBalancerRG
      location: West Europe
  examplePublicIp:
    type: azure:network:PublicIp
    name: example
    properties:
      name: PublicIPForLB
      location: ${example.location}
      resourceGroupName: ${example.name}
      allocationMethod: Static
  exampleLoadBalancer:
    type: azure:lb:LoadBalancer
    name: example
    properties:
      name: TestLoadBalancer
      location: ${example.location}
      resourceGroupName: ${example.name}
      frontendIpConfigurations:
        - name: PublicIPAddress
          publicIpAddressId: ${examplePublicIp.id}
  exampleNatPool:
    type: azure:lb:NatPool
    name: example
    properties:
      resourceGroupName: ${example.name}
      loadbalancerId: ${exampleLoadBalancer.id}
      name: SampleApplicationPool
      protocol: Tcp
      frontendPortStart: 80
      frontendPortEnd: 81
      backendPort: 8080
      frontendIpConfigurationName: PublicIPAddress
Create NatPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NatPool(name: string, args: NatPoolArgs, opts?: CustomResourceOptions);@overload
def NatPool(resource_name: str,
            args: NatPoolArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def NatPool(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            backend_port: Optional[int] = None,
            frontend_ip_configuration_name: Optional[str] = None,
            frontend_port_end: Optional[int] = None,
            frontend_port_start: Optional[int] = None,
            loadbalancer_id: Optional[str] = None,
            protocol: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            floating_ip_enabled: Optional[bool] = None,
            idle_timeout_in_minutes: Optional[int] = None,
            name: Optional[str] = None,
            tcp_reset_enabled: Optional[bool] = None)func NewNatPool(ctx *Context, name string, args NatPoolArgs, opts ...ResourceOption) (*NatPool, error)public NatPool(string name, NatPoolArgs args, CustomResourceOptions? opts = null)
public NatPool(String name, NatPoolArgs args)
public NatPool(String name, NatPoolArgs args, CustomResourceOptions options)
type: azure:lb:NatPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NatPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var natPoolResource = new Azure.Lb.NatPool("natPoolResource", new()
{
    BackendPort = 0,
    FrontendIpConfigurationName = "string",
    FrontendPortEnd = 0,
    FrontendPortStart = 0,
    LoadbalancerId = "string",
    Protocol = "string",
    ResourceGroupName = "string",
    FloatingIpEnabled = false,
    IdleTimeoutInMinutes = 0,
    Name = "string",
    TcpResetEnabled = false,
});
example, err := lb.NewNatPool(ctx, "natPoolResource", &lb.NatPoolArgs{
	BackendPort:                 pulumi.Int(0),
	FrontendIpConfigurationName: pulumi.String("string"),
	FrontendPortEnd:             pulumi.Int(0),
	FrontendPortStart:           pulumi.Int(0),
	LoadbalancerId:              pulumi.String("string"),
	Protocol:                    pulumi.String("string"),
	ResourceGroupName:           pulumi.String("string"),
	FloatingIpEnabled:           pulumi.Bool(false),
	IdleTimeoutInMinutes:        pulumi.Int(0),
	Name:                        pulumi.String("string"),
	TcpResetEnabled:             pulumi.Bool(false),
})
var natPoolResource = new NatPool("natPoolResource", NatPoolArgs.builder()
    .backendPort(0)
    .frontendIpConfigurationName("string")
    .frontendPortEnd(0)
    .frontendPortStart(0)
    .loadbalancerId("string")
    .protocol("string")
    .resourceGroupName("string")
    .floatingIpEnabled(false)
    .idleTimeoutInMinutes(0)
    .name("string")
    .tcpResetEnabled(false)
    .build());
nat_pool_resource = azure.lb.NatPool("natPoolResource",
    backend_port=0,
    frontend_ip_configuration_name="string",
    frontend_port_end=0,
    frontend_port_start=0,
    loadbalancer_id="string",
    protocol="string",
    resource_group_name="string",
    floating_ip_enabled=False,
    idle_timeout_in_minutes=0,
    name="string",
    tcp_reset_enabled=False)
const natPoolResource = new azure.lb.NatPool("natPoolResource", {
    backendPort: 0,
    frontendIpConfigurationName: "string",
    frontendPortEnd: 0,
    frontendPortStart: 0,
    loadbalancerId: "string",
    protocol: "string",
    resourceGroupName: "string",
    floatingIpEnabled: false,
    idleTimeoutInMinutes: 0,
    name: "string",
    tcpResetEnabled: false,
});
type: azure:lb:NatPool
properties:
    backendPort: 0
    floatingIpEnabled: false
    frontendIpConfigurationName: string
    frontendPortEnd: 0
    frontendPortStart: 0
    idleTimeoutInMinutes: 0
    loadbalancerId: string
    name: string
    protocol: string
    resourceGroupName: string
    tcpResetEnabled: false
NatPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NatPool resource accepts the following input properties:
- BackendPort int
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- FrontendIp stringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- FrontendPort intEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- FrontendPort intStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- LoadbalancerId string
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- Protocol string
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- ResourceGroup stringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- FloatingIp boolEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- IdleTimeout intIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- Name string
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- TcpReset boolEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- BackendPort int
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- FrontendIp stringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- FrontendPort intEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- FrontendPort intStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- LoadbalancerId string
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- Protocol string
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- ResourceGroup stringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- FloatingIp boolEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- IdleTimeout intIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- Name string
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- TcpReset boolEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backendPort Integer
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontendIp StringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- frontendPort IntegerEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontendPort IntegerStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancerId String
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- protocol String
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resourceGroup StringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- floatingIp BooleanEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- idleTimeout IntegerIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- name String
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- tcpReset BooleanEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backendPort number
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontendIp stringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- frontendPort numberEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontendPort numberStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancerId string
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- protocol string
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resourceGroup stringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- floatingIp booleanEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- idleTimeout numberIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- name string
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- tcpReset booleanEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backend_port int
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontend_ip_ strconfiguration_ name 
- The name of the frontend IP configuration exposing this rule.
- frontend_port_ intend 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontend_port_ intstart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancer_id str
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- protocol str
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resource_group_ strname 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- floating_ip_ boolenabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- idle_timeout_ intin_ minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- name str
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- tcp_reset_ boolenabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backendPort Number
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- frontendIp StringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- frontendPort NumberEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontendPort NumberStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- loadbalancerId String
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- protocol String
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resourceGroup StringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- floatingIp BooleanEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- idleTimeout NumberIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- name String
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- tcpReset BooleanEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
Outputs
All input properties are implicitly available as output properties. Additionally, the NatPool resource produces the following output properties:
- FrontendIp stringConfiguration Id 
- Id string
- The provider-assigned unique ID for this managed resource.
- FrontendIp stringConfiguration Id 
- Id string
- The provider-assigned unique ID for this managed resource.
- frontendIp StringConfiguration Id 
- id String
- The provider-assigned unique ID for this managed resource.
- frontendIp stringConfiguration Id 
- id string
- The provider-assigned unique ID for this managed resource.
- frontend_ip_ strconfiguration_ id 
- id str
- The provider-assigned unique ID for this managed resource.
- frontendIp StringConfiguration Id 
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NatPool Resource
Get an existing NatPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NatPoolState, opts?: CustomResourceOptions): NatPool@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend_port: Optional[int] = None,
        floating_ip_enabled: Optional[bool] = None,
        frontend_ip_configuration_id: Optional[str] = None,
        frontend_ip_configuration_name: Optional[str] = None,
        frontend_port_end: Optional[int] = None,
        frontend_port_start: Optional[int] = None,
        idle_timeout_in_minutes: Optional[int] = None,
        loadbalancer_id: Optional[str] = None,
        name: Optional[str] = None,
        protocol: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        tcp_reset_enabled: Optional[bool] = None) -> NatPoolfunc GetNatPool(ctx *Context, name string, id IDInput, state *NatPoolState, opts ...ResourceOption) (*NatPool, error)public static NatPool Get(string name, Input<string> id, NatPoolState? state, CustomResourceOptions? opts = null)public static NatPool get(String name, Output<String> id, NatPoolState state, CustomResourceOptions options)resources:  _:    type: azure:lb:NatPool    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- BackendPort int
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- FloatingIp boolEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- FrontendIp stringConfiguration Id 
- FrontendIp stringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- FrontendPort intEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- FrontendPort intStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- IdleTimeout intIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- LoadbalancerId string
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- Protocol string
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- ResourceGroup stringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- TcpReset boolEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- BackendPort int
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- FloatingIp boolEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- FrontendIp stringConfiguration Id 
- FrontendIp stringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- FrontendPort intEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- FrontendPort intStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- IdleTimeout intIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- LoadbalancerId string
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- Protocol string
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- ResourceGroup stringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- TcpReset boolEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backendPort Integer
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- floatingIp BooleanEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- frontendIp StringConfiguration Id 
- frontendIp StringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- frontendPort IntegerEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontendPort IntegerStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- idleTimeout IntegerIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- loadbalancerId String
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- name String
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- protocol String
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resourceGroup StringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- tcpReset BooleanEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backendPort number
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- floatingIp booleanEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- frontendIp stringConfiguration Id 
- frontendIp stringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- frontendPort numberEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontendPort numberStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- idleTimeout numberIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- loadbalancerId string
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- name string
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- protocol string
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resourceGroup stringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- tcpReset booleanEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backend_port int
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- floating_ip_ boolenabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- frontend_ip_ strconfiguration_ id 
- frontend_ip_ strconfiguration_ name 
- The name of the frontend IP configuration exposing this rule.
- frontend_port_ intend 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontend_port_ intstart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- idle_timeout_ intin_ minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- loadbalancer_id str
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- name str
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- protocol str
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resource_group_ strname 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- tcp_reset_ boolenabled 
- Is TCP Reset enabled for this Load Balancer Rule?
- backendPort Number
- The port used for the internal endpoint. Possible values range between 1 and 65535, inclusive.
- floatingIp BooleanEnabled 
- Are the floating IPs enabled for this Load Balancer Rule? A floating IP is reassigned to a secondary server in case the primary server fails. Required to configure a SQL AlwaysOn Availability Group.
- frontendIp StringConfiguration Id 
- frontendIp StringConfiguration Name 
- The name of the frontend IP configuration exposing this rule.
- frontendPort NumberEnd 
- The last port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- frontendPort NumberStart 
- The first port number in the range of external ports that will be used to provide Inbound NAT to NICs associated with this Load Balancer. Possible values range between 1 and 65534, inclusive.
- idleTimeout NumberIn Minutes 
- Specifies the idle timeout in minutes for TCP connections. Valid values are between 4and30. Defaults to4.
- loadbalancerId String
- The ID of the Load Balancer in which to create the NAT pool. Changing this forces a new resource to be created.
- name String
- Specifies the name of the NAT pool. Changing this forces a new resource to be created.
- protocol String
- The transport protocol for the external endpoint. Possible values are All,TcpandUdp.
- resourceGroup StringName 
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- tcpReset BooleanEnabled 
- Is TCP Reset enabled for this Load Balancer Rule?
Import
Load Balancer NAT Pools can be imported using the resource id, e.g.
$ pulumi import azure:lb/natPool:NatPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatPools/pool1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.