1. Packages
  2. Azure Classic
  3. API Docs
  4. lb
  5. NatRule

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.lb.NatRule

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Load Balancer NAT Rule.

    NOTE: This resource cannot be used with with virtual machine scale sets, instead use the azure.lb.NatPool resource.

    NOTE When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: LoadBalancerRG
          location: West Europe
      examplePublicIp:
        type: azure:network:PublicIp
        name: example
        properties:
          name: PublicIPForLB
          location: West US
          resourceGroupName: ${example.name}
          allocationMethod: Static
      exampleLoadBalancer:
        type: azure:lb:LoadBalancer
        name: example
        properties:
          name: TestLoadBalancer
          location: West US
          resourceGroupName: ${example.name}
          frontendIpConfigurations:
            - name: PublicIPAddress
              publicIpAddressId: ${examplePublicIp.id}
      exampleBackendAddressPool:
        type: azure:lb:BackendAddressPool
        name: example
        properties:
          resourceGroupName: ${example.name}
          loadbalancerId: ${exampleLoadBalancer.id}
          name: be
      exampleNatRule:
        type: azure:lb:NatRule
        name: example
        properties:
          resourceGroupName: ${example.name}
          loadbalancerId: ${exampleLoadBalancer.id}
          name: RDPAccess
          protocol: Tcp
          frontendPort: 3389
          backendPort: 3389
          frontendIpConfigurationName: PublicIPAddress
      example1:
        type: azure:lb:NatRule
        properties:
          resourceGroupName: ${example.name}
          loadbalancerId: ${exampleLoadBalancer.id}
          name: RDPAccess
          protocol: Tcp
          frontendPortStart: 3000
          frontendPortEnd: 3389
          backendPort: 3389
          backendAddressPoolId: ${exampleBackendAddressPool.id}
          frontendIpConfigurationName: PublicIPAddress
    

    Create NatRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NatRule(name: string, args: NatRuleArgs, opts?: CustomResourceOptions);
    @overload
    def NatRule(resource_name: str,
                args: NatRuleArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def NatRule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                loadbalancer_id: Optional[str] = None,
                backend_port: Optional[int] = None,
                resource_group_name: Optional[str] = None,
                protocol: Optional[str] = None,
                frontend_ip_configuration_name: Optional[str] = None,
                enable_tcp_reset: Optional[bool] = None,
                frontend_port_end: Optional[int] = None,
                frontend_port_start: Optional[int] = None,
                idle_timeout_in_minutes: Optional[int] = None,
                frontend_port: Optional[int] = None,
                name: Optional[str] = None,
                backend_address_pool_id: Optional[str] = None,
                enable_floating_ip: Optional[bool] = None)
    func NewNatRule(ctx *Context, name string, args NatRuleArgs, opts ...ResourceOption) (*NatRule, error)
    public NatRule(string name, NatRuleArgs args, CustomResourceOptions? opts = null)
    public NatRule(String name, NatRuleArgs args)
    public NatRule(String name, NatRuleArgs args, CustomResourceOptions options)
    
    type: azure:lb:NatRule
    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 NatRuleArgs
    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 NatRuleArgs
    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 NatRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NatRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NatRuleArgs
    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 natRuleResource = new Azure.Lb.NatRule("natRuleResource", new()
    {
        LoadbalancerId = "string",
        BackendPort = 0,
        ResourceGroupName = "string",
        Protocol = "string",
        FrontendIpConfigurationName = "string",
        EnableTcpReset = false,
        FrontendPortEnd = 0,
        FrontendPortStart = 0,
        IdleTimeoutInMinutes = 0,
        FrontendPort = 0,
        Name = "string",
        BackendAddressPoolId = "string",
        EnableFloatingIp = false,
    });
    
    example, err := lb.NewNatRule(ctx, "natRuleResource", &lb.NatRuleArgs{
    	LoadbalancerId:              pulumi.String("string"),
    	BackendPort:                 pulumi.Int(0),
    	ResourceGroupName:           pulumi.String("string"),
    	Protocol:                    pulumi.String("string"),
    	FrontendIpConfigurationName: pulumi.String("string"),
    	EnableTcpReset:              pulumi.Bool(false),
    	FrontendPortEnd:             pulumi.Int(0),
    	FrontendPortStart:           pulumi.Int(0),
    	IdleTimeoutInMinutes:        pulumi.Int(0),
    	FrontendPort:                pulumi.Int(0),
    	Name:                        pulumi.String("string"),
    	BackendAddressPoolId:        pulumi.String("string"),
    	EnableFloatingIp:            pulumi.Bool(false),
    })
    
    var natRuleResource = new NatRule("natRuleResource", NatRuleArgs.builder()
        .loadbalancerId("string")
        .backendPort(0)
        .resourceGroupName("string")
        .protocol("string")
        .frontendIpConfigurationName("string")
        .enableTcpReset(false)
        .frontendPortEnd(0)
        .frontendPortStart(0)
        .idleTimeoutInMinutes(0)
        .frontendPort(0)
        .name("string")
        .backendAddressPoolId("string")
        .enableFloatingIp(false)
        .build());
    
    nat_rule_resource = azure.lb.NatRule("natRuleResource",
        loadbalancer_id="string",
        backend_port=0,
        resource_group_name="string",
        protocol="string",
        frontend_ip_configuration_name="string",
        enable_tcp_reset=False,
        frontend_port_end=0,
        frontend_port_start=0,
        idle_timeout_in_minutes=0,
        frontend_port=0,
        name="string",
        backend_address_pool_id="string",
        enable_floating_ip=False)
    
    const natRuleResource = new azure.lb.NatRule("natRuleResource", {
        loadbalancerId: "string",
        backendPort: 0,
        resourceGroupName: "string",
        protocol: "string",
        frontendIpConfigurationName: "string",
        enableTcpReset: false,
        frontendPortEnd: 0,
        frontendPortStart: 0,
        idleTimeoutInMinutes: 0,
        frontendPort: 0,
        name: "string",
        backendAddressPoolId: "string",
        enableFloatingIp: false,
    });
    
    type: azure:lb:NatRule
    properties:
        backendAddressPoolId: string
        backendPort: 0
        enableFloatingIp: false
        enableTcpReset: false
        frontendIpConfigurationName: string
        frontendPort: 0
        frontendPortEnd: 0
        frontendPortStart: 0
        idleTimeoutInMinutes: 0
        loadbalancerId: string
        name: string
        protocol: string
        resourceGroupName: string
    

    NatRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NatRule resource accepts the following input properties:

    BackendPort int
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    FrontendIpConfigurationName string
    The name of the frontend IP configuration exposing this rule.
    LoadbalancerId string
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    Protocol string
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    ResourceGroupName string
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    BackendAddressPoolId string
    Specifies a reference to backendAddressPool resource.
    EnableFloatingIp bool
    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. Defaults to false.
    EnableTcpReset bool
    Is TCP Reset enabled for this Load Balancer Rule?
    FrontendPort int
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    FrontendPortEnd int
    The 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, inclusive.
    FrontendPortStart int
    The 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, inclusive.
    IdleTimeoutInMinutes int
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    Name string
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    BackendPort int
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    FrontendIpConfigurationName string
    The name of the frontend IP configuration exposing this rule.
    LoadbalancerId string
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    Protocol string
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    ResourceGroupName string
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    BackendAddressPoolId string
    Specifies a reference to backendAddressPool resource.
    EnableFloatingIp bool
    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. Defaults to false.
    EnableTcpReset bool
    Is TCP Reset enabled for this Load Balancer Rule?
    FrontendPort int
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    FrontendPortEnd int
    The 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, inclusive.
    FrontendPortStart int
    The 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, inclusive.
    IdleTimeoutInMinutes int
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    Name string
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    backendPort Integer
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    frontendIpConfigurationName String
    The name of the frontend IP configuration exposing this rule.
    loadbalancerId String
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    protocol String
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resourceGroupName String
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backendAddressPoolId String
    Specifies a reference to backendAddressPool resource.
    enableFloatingIp Boolean
    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. Defaults to false.
    enableTcpReset Boolean
    Is TCP Reset enabled for this Load Balancer Rule?
    frontendPort Integer
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontendPortEnd Integer
    The 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, inclusive.
    frontendPortStart Integer
    The 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, inclusive.
    idleTimeoutInMinutes Integer
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    name String
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    backendPort number
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    frontendIpConfigurationName string
    The name of the frontend IP configuration exposing this rule.
    loadbalancerId string
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    protocol string
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resourceGroupName string
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backendAddressPoolId string
    Specifies a reference to backendAddressPool resource.
    enableFloatingIp boolean
    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. Defaults to false.
    enableTcpReset boolean
    Is TCP Reset enabled for this Load Balancer Rule?
    frontendPort number
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontendPortEnd number
    The 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, inclusive.
    frontendPortStart number
    The 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, inclusive.
    idleTimeoutInMinutes number
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    name string
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    backend_port int
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    frontend_ip_configuration_name str
    The name of the frontend IP configuration exposing this rule.
    loadbalancer_id str
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    protocol str
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resource_group_name str
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backend_address_pool_id str
    Specifies a reference to backendAddressPool resource.
    enable_floating_ip bool
    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. Defaults to false.
    enable_tcp_reset bool
    Is TCP Reset enabled for this Load Balancer Rule?
    frontend_port int
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontend_port_end int
    The 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, inclusive.
    frontend_port_start int
    The 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, inclusive.
    idle_timeout_in_minutes int
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    name str
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    backendPort Number
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    frontendIpConfigurationName String
    The name of the frontend IP configuration exposing this rule.
    loadbalancerId String
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    protocol String
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resourceGroupName String
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backendAddressPoolId String
    Specifies a reference to backendAddressPool resource.
    enableFloatingIp Boolean
    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. Defaults to false.
    enableTcpReset Boolean
    Is TCP Reset enabled for this Load Balancer Rule?
    frontendPort Number
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontendPortEnd Number
    The 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, inclusive.
    frontendPortStart Number
    The 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, inclusive.
    idleTimeoutInMinutes Number
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    name String
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NatRule resource produces the following output properties:

    BackendIpConfigurationId string
    FrontendIpConfigurationId string
    Id string
    The provider-assigned unique ID for this managed resource.
    BackendIpConfigurationId string
    FrontendIpConfigurationId string
    Id string
    The provider-assigned unique ID for this managed resource.
    backendIpConfigurationId String
    frontendIpConfigurationId String
    id String
    The provider-assigned unique ID for this managed resource.
    backendIpConfigurationId string
    frontendIpConfigurationId string
    id string
    The provider-assigned unique ID for this managed resource.
    backend_ip_configuration_id str
    frontend_ip_configuration_id str
    id str
    The provider-assigned unique ID for this managed resource.
    backendIpConfigurationId String
    frontendIpConfigurationId String
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NatRule Resource

    Get an existing NatRule 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?: NatRuleState, opts?: CustomResourceOptions): NatRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backend_address_pool_id: Optional[str] = None,
            backend_ip_configuration_id: Optional[str] = None,
            backend_port: Optional[int] = None,
            enable_floating_ip: Optional[bool] = None,
            enable_tcp_reset: Optional[bool] = None,
            frontend_ip_configuration_id: Optional[str] = None,
            frontend_ip_configuration_name: Optional[str] = None,
            frontend_port: Optional[int] = 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) -> NatRule
    func GetNatRule(ctx *Context, name string, id IDInput, state *NatRuleState, opts ...ResourceOption) (*NatRule, error)
    public static NatRule Get(string name, Input<string> id, NatRuleState? state, CustomResourceOptions? opts = null)
    public static NatRule get(String name, Output<String> id, NatRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    BackendAddressPoolId string
    Specifies a reference to backendAddressPool resource.
    BackendIpConfigurationId string
    BackendPort int
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    EnableFloatingIp bool
    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. Defaults to false.
    EnableTcpReset bool
    Is TCP Reset enabled for this Load Balancer Rule?
    FrontendIpConfigurationId string
    FrontendIpConfigurationName string
    The name of the frontend IP configuration exposing this rule.
    FrontendPort int
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    FrontendPortEnd int
    The 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, inclusive.
    FrontendPortStart int
    The 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, inclusive.
    IdleTimeoutInMinutes int
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    LoadbalancerId string
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    Protocol string
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    ResourceGroupName string
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    BackendAddressPoolId string
    Specifies a reference to backendAddressPool resource.
    BackendIpConfigurationId string
    BackendPort int
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    EnableFloatingIp bool
    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. Defaults to false.
    EnableTcpReset bool
    Is TCP Reset enabled for this Load Balancer Rule?
    FrontendIpConfigurationId string
    FrontendIpConfigurationName string
    The name of the frontend IP configuration exposing this rule.
    FrontendPort int
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    FrontendPortEnd int
    The 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, inclusive.
    FrontendPortStart int
    The 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, inclusive.
    IdleTimeoutInMinutes int
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    LoadbalancerId string
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    Protocol string
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    ResourceGroupName string
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backendAddressPoolId String
    Specifies a reference to backendAddressPool resource.
    backendIpConfigurationId String
    backendPort Integer
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    enableFloatingIp Boolean
    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. Defaults to false.
    enableTcpReset Boolean
    Is TCP Reset enabled for this Load Balancer Rule?
    frontendIpConfigurationId String
    frontendIpConfigurationName String
    The name of the frontend IP configuration exposing this rule.
    frontendPort Integer
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontendPortEnd Integer
    The 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, inclusive.
    frontendPortStart Integer
    The 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, inclusive.
    idleTimeoutInMinutes Integer
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    loadbalancerId String
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    name String
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    protocol String
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resourceGroupName String
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backendAddressPoolId string
    Specifies a reference to backendAddressPool resource.
    backendIpConfigurationId string
    backendPort number
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    enableFloatingIp boolean
    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. Defaults to false.
    enableTcpReset boolean
    Is TCP Reset enabled for this Load Balancer Rule?
    frontendIpConfigurationId string
    frontendIpConfigurationName string
    The name of the frontend IP configuration exposing this rule.
    frontendPort number
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontendPortEnd number
    The 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, inclusive.
    frontendPortStart number
    The 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, inclusive.
    idleTimeoutInMinutes number
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    loadbalancerId string
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    name string
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    protocol string
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resourceGroupName string
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backend_address_pool_id str
    Specifies a reference to backendAddressPool resource.
    backend_ip_configuration_id str
    backend_port int
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    enable_floating_ip bool
    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. Defaults to false.
    enable_tcp_reset bool
    Is TCP Reset enabled for this Load Balancer Rule?
    frontend_ip_configuration_id str
    frontend_ip_configuration_name str
    The name of the frontend IP configuration exposing this rule.
    frontend_port int
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontend_port_end int
    The 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, inclusive.
    frontend_port_start int
    The 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, inclusive.
    idle_timeout_in_minutes int
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    loadbalancer_id str
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    name str
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    protocol str
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resource_group_name str
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
    backendAddressPoolId String
    Specifies a reference to backendAddressPool resource.
    backendIpConfigurationId String
    backendPort Number
    The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive.
    enableFloatingIp Boolean
    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. Defaults to false.
    enableTcpReset Boolean
    Is TCP Reset enabled for this Load Balancer Rule?
    frontendIpConfigurationId String
    frontendIpConfigurationName String
    The name of the frontend IP configuration exposing this rule.
    frontendPort Number
    The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive.
    frontendPortEnd Number
    The 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, inclusive.
    frontendPortStart Number
    The 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, inclusive.
    idleTimeoutInMinutes Number
    Specifies the idle timeout in minutes for TCP connections. Valid values are between 4 and 30 minutes. Defaults to 4 minutes.
    loadbalancerId String
    The ID of the Load Balancer in which to create the NAT Rule. Changing this forces a new resource to be created.
    name String
    Specifies the name of the NAT Rule. Changing this forces a new resource to be created.
    protocol String
    The transport protocol for the external endpoint. Possible values are Udp, Tcp or All.
    resourceGroupName String
    The name of the resource group in which to create the resource. Changing this forces a new resource to be created.

    Import

    Load Balancer NAT Rules can be imported using the resource id, e.g.

    $ pulumi import azure:lb/natRule:NatRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/inboundNatRules/rule1
    

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi