We recommend using Azure Native.
azure.lb.LoadBalancer
Explore with Pulumi AI
Manages a Load Balancer Resource.
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,
    }],
});
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,
    }])
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
		}
		_, 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
		}
		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,
            },
        },
    });
});
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 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());
    }
}
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}
Create LoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);@overload
def LoadBalancer(resource_name: str,
                 args: LoadBalancerArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancer(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 resource_group_name: Optional[str] = None,
                 edge_zone: Optional[str] = None,
                 frontend_ip_configurations: Optional[Sequence[LoadBalancerFrontendIpConfigurationArgs]] = None,
                 location: Optional[str] = None,
                 name: Optional[str] = None,
                 sku: Optional[str] = None,
                 sku_tier: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None)func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)
public LoadBalancer(String name, LoadBalancerArgs args)
public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
type: azure:lb:LoadBalancer
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 LoadBalancerArgs
- 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 LoadBalancerArgs
- 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 LoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerArgs
- 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 loadBalancerResource = new Azure.Lb.LoadBalancer("loadBalancerResource", new()
{
    ResourceGroupName = "string",
    EdgeZone = "string",
    FrontendIpConfigurations = new[]
    {
        new Azure.Lb.Inputs.LoadBalancerFrontendIpConfigurationArgs
        {
            Name = "string",
            PrivateIpAddress = "string",
            InboundNatRules = new[]
            {
                "string",
            },
            LoadBalancerRules = new[]
            {
                "string",
            },
            Id = "string",
            OutboundRules = new[]
            {
                "string",
            },
            GatewayLoadBalancerFrontendIpConfigurationId = "string",
            PrivateIpAddressAllocation = "string",
            PrivateIpAddressVersion = "string",
            PublicIpAddressId = "string",
            PublicIpPrefixId = "string",
            SubnetId = "string",
            Zones = new[]
            {
                "string",
            },
        },
    },
    Location = "string",
    Name = "string",
    Sku = "string",
    SkuTier = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := lb.NewLoadBalancer(ctx, "loadBalancerResource", &lb.LoadBalancerArgs{
	ResourceGroupName: pulumi.String("string"),
	EdgeZone:          pulumi.String("string"),
	FrontendIpConfigurations: lb.LoadBalancerFrontendIpConfigurationArray{
		&lb.LoadBalancerFrontendIpConfigurationArgs{
			Name:             pulumi.String("string"),
			PrivateIpAddress: pulumi.String("string"),
			InboundNatRules: pulumi.StringArray{
				pulumi.String("string"),
			},
			LoadBalancerRules: pulumi.StringArray{
				pulumi.String("string"),
			},
			Id: pulumi.String("string"),
			OutboundRules: pulumi.StringArray{
				pulumi.String("string"),
			},
			GatewayLoadBalancerFrontendIpConfigurationId: pulumi.String("string"),
			PrivateIpAddressAllocation:                   pulumi.String("string"),
			PrivateIpAddressVersion:                      pulumi.String("string"),
			PublicIpAddressId:                            pulumi.String("string"),
			PublicIpPrefixId:                             pulumi.String("string"),
			SubnetId:                                     pulumi.String("string"),
			Zones: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Sku:      pulumi.String("string"),
	SkuTier:  pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
    .resourceGroupName("string")
    .edgeZone("string")
    .frontendIpConfigurations(LoadBalancerFrontendIpConfigurationArgs.builder()
        .name("string")
        .privateIpAddress("string")
        .inboundNatRules("string")
        .loadBalancerRules("string")
        .id("string")
        .outboundRules("string")
        .gatewayLoadBalancerFrontendIpConfigurationId("string")
        .privateIpAddressAllocation("string")
        .privateIpAddressVersion("string")
        .publicIpAddressId("string")
        .publicIpPrefixId("string")
        .subnetId("string")
        .zones("string")
        .build())
    .location("string")
    .name("string")
    .sku("string")
    .skuTier("string")
    .tags(Map.of("string", "string"))
    .build());
load_balancer_resource = azure.lb.LoadBalancer("loadBalancerResource",
    resource_group_name="string",
    edge_zone="string",
    frontend_ip_configurations=[{
        "name": "string",
        "private_ip_address": "string",
        "inbound_nat_rules": ["string"],
        "load_balancer_rules": ["string"],
        "id": "string",
        "outbound_rules": ["string"],
        "gateway_load_balancer_frontend_ip_configuration_id": "string",
        "private_ip_address_allocation": "string",
        "private_ip_address_version": "string",
        "public_ip_address_id": "string",
        "public_ip_prefix_id": "string",
        "subnet_id": "string",
        "zones": ["string"],
    }],
    location="string",
    name="string",
    sku="string",
    sku_tier="string",
    tags={
        "string": "string",
    })
const loadBalancerResource = new azure.lb.LoadBalancer("loadBalancerResource", {
    resourceGroupName: "string",
    edgeZone: "string",
    frontendIpConfigurations: [{
        name: "string",
        privateIpAddress: "string",
        inboundNatRules: ["string"],
        loadBalancerRules: ["string"],
        id: "string",
        outboundRules: ["string"],
        gatewayLoadBalancerFrontendIpConfigurationId: "string",
        privateIpAddressAllocation: "string",
        privateIpAddressVersion: "string",
        publicIpAddressId: "string",
        publicIpPrefixId: "string",
        subnetId: "string",
        zones: ["string"],
    }],
    location: "string",
    name: "string",
    sku: "string",
    skuTier: "string",
    tags: {
        string: "string",
    },
});
type: azure:lb:LoadBalancer
properties:
    edgeZone: string
    frontendIpConfigurations:
        - gatewayLoadBalancerFrontendIpConfigurationId: string
          id: string
          inboundNatRules:
            - string
          loadBalancerRules:
            - string
          name: string
          outboundRules:
            - string
          privateIpAddress: string
          privateIpAddressAllocation: string
          privateIpAddressVersion: string
          publicIpAddressId: string
          publicIpPrefixId: string
          subnetId: string
          zones:
            - string
    location: string
    name: string
    resourceGroupName: string
    sku: string
    skuTier: string
    tags:
        string: string
LoadBalancer 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 LoadBalancer resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- FrontendIp List<LoadConfigurations Balancer Frontend Ip Configuration> 
- One or more frontend_ip_configurationblocks as documented below.
- Location string
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- SkuTier string
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- ResourceGroup stringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- FrontendIp []LoadConfigurations Balancer Frontend Ip Configuration Args 
- One or more frontend_ip_configurationblocks as documented below.
- Location string
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- SkuTier string
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- resourceGroup StringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontendIp List<LoadConfigurations Balancer Frontend Ip Configuration> 
- One or more frontend_ip_configurationblocks as documented below.
- location String
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- skuTier String
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- resourceGroup stringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- edgeZone string
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontendIp LoadConfigurations Balancer Frontend Ip Configuration[] 
- One or more frontend_ip_configurationblocks as documented below.
- location string
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- sku string
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- skuTier string
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- resource_group_ strname 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- edge_zone str
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontend_ip_ Sequence[Loadconfigurations Balancer Frontend Ip Configuration Args] 
- One or more frontend_ip_configurationblocks as documented below.
- location str
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- sku str
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- sku_tier str
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- resourceGroup StringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontendIp List<Property Map>Configurations 
- One or more frontend_ip_configurationblocks as documented below.
- location String
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- skuTier String
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- PrivateIp stringAddress 
- Private IP Address to assign to the Load Balancer.
- PrivateIp List<string>Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- Id string
- The provider-assigned unique ID for this managed resource.
- PrivateIp stringAddress 
- Private IP Address to assign to the Load Balancer.
- PrivateIp []stringAddresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- id String
- The provider-assigned unique ID for this managed resource.
- privateIp StringAddress 
- Private IP Address to assign to the Load Balancer.
- privateIp List<String>Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- id string
- The provider-assigned unique ID for this managed resource.
- privateIp stringAddress 
- Private IP Address to assign to the Load Balancer.
- privateIp string[]Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- id str
- The provider-assigned unique ID for this managed resource.
- private_ip_ straddress 
- Private IP Address to assign to the Load Balancer.
- private_ip_ Sequence[str]addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- id String
- The provider-assigned unique ID for this managed resource.
- privateIp StringAddress 
- Private IP Address to assign to the Load Balancer.
- privateIp List<String>Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
Look up Existing LoadBalancer Resource
Get an existing LoadBalancer 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?: LoadBalancerState, opts?: CustomResourceOptions): LoadBalancer@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        edge_zone: Optional[str] = None,
        frontend_ip_configurations: Optional[Sequence[LoadBalancerFrontendIpConfigurationArgs]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        private_ip_address: Optional[str] = None,
        private_ip_addresses: Optional[Sequence[str]] = None,
        resource_group_name: Optional[str] = None,
        sku: Optional[str] = None,
        sku_tier: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> LoadBalancerfunc GetLoadBalancer(ctx *Context, name string, id IDInput, state *LoadBalancerState, opts ...ResourceOption) (*LoadBalancer, error)public static LoadBalancer Get(string name, Input<string> id, LoadBalancerState? state, CustomResourceOptions? opts = null)public static LoadBalancer get(String name, Output<String> id, LoadBalancerState state, CustomResourceOptions options)resources:  _:    type: azure:lb:LoadBalancer    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.
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- FrontendIp List<LoadConfigurations Balancer Frontend Ip Configuration> 
- One or more frontend_ip_configurationblocks as documented below.
- Location string
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- PrivateIp stringAddress 
- Private IP Address to assign to the Load Balancer.
- PrivateIp List<string>Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- ResourceGroup stringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- SkuTier string
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- EdgeZone string
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- FrontendIp []LoadConfigurations Balancer Frontend Ip Configuration Args 
- One or more frontend_ip_configurationblocks as documented below.
- Location string
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- PrivateIp stringAddress 
- Private IP Address to assign to the Load Balancer.
- PrivateIp []stringAddresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- ResourceGroup stringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- SkuTier string
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontendIp List<LoadConfigurations Balancer Frontend Ip Configuration> 
- One or more frontend_ip_configurationblocks as documented below.
- location String
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- privateIp StringAddress 
- Private IP Address to assign to the Load Balancer.
- privateIp List<String>Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- resourceGroup StringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- skuTier String
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- edgeZone string
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontendIp LoadConfigurations Balancer Frontend Ip Configuration[] 
- One or more frontend_ip_configurationblocks as documented below.
- location string
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- privateIp stringAddress 
- Private IP Address to assign to the Load Balancer.
- privateIp string[]Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- resourceGroup stringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- sku string
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- skuTier string
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- edge_zone str
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontend_ip_ Sequence[Loadconfigurations Balancer Frontend Ip Configuration Args] 
- One or more frontend_ip_configurationblocks as documented below.
- location str
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- private_ip_ straddress 
- Private IP Address to assign to the Load Balancer.
- private_ip_ Sequence[str]addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- resource_group_ strname 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- sku str
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- sku_tier str
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- edgeZone String
- Specifies the Edge Zone within the Azure Region where this Load Balancer should exist. Changing this forces a new Load Balancer to be created.
- frontendIp List<Property Map>Configurations 
- One or more frontend_ip_configurationblocks as documented below.
- location String
- Specifies the supported Azure Region where the Load Balancer should be created. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Load Balancer. Changing this forces a new resource to be created.
- privateIp StringAddress 
- Private IP Address to assign to the Load Balancer.
- privateIp List<String>Addresses 
- The list of private IP address assigned to the load balancer in frontend_ip_configurationblocks, if any.
- resourceGroup StringName 
- The name of the Resource Group in which to create the Load Balancer. Changing this forces a new resource to be created.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are - Basic,- Standardand- Gateway. Defaults to- Standard. Changing this forces a new resource to be created.- NOTE: The - Microsoft.Network/AllowGatewayLoadBalancerfeature is required to be registered in order to use the- GatewaySKU. The feature can only be registered by the Azure service team, please submit an Azure support ticket for that.
- skuTier String
- sku_tier- (Optional) The SKU tier of this Load Balancer. Possible values are- Globaland- Regional. Defaults to- Regional. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
LoadBalancerFrontendIpConfiguration, LoadBalancerFrontendIpConfigurationArgs          
- Name string
- Specifies the name of the frontend IP configuration.
- GatewayLoad stringBalancer Frontend Ip Configuration Id 
- The Frontend IP Configuration ID of a Gateway SKU Load Balancer.
- Id string
- The id of the Frontend IP Configuration.
- InboundNat List<string>Rules 
- The list of IDs of inbound rules that use this frontend IP.
- LoadBalancer List<string>Rules 
- The list of IDs of load balancing rules that use this frontend IP.
- OutboundRules List<string>
- The list of IDs outbound rules that use this frontend IP.
- PrivateIp stringAddress 
- Private IP Address to assign to the Load Balancer. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- PrivateIp stringAddress Allocation 
- The allocation method for the Private IP Address used by this Load Balancer. Possible values as DynamicandStatic.
- PrivateIp stringAddress Version 
- The version of IP that the Private IP Address is. Possible values are IPv4orIPv6.
- PublicIp stringAddress Id 
- The ID of a Public IP Address which should be associated with the Load Balancer.
- PublicIp stringPrefix Id 
- The ID of a Public IP Prefix which should be associated with the Load Balancer. Public IP Prefix can only be used with outbound rules.
- SubnetId string
- The ID of the Subnet which should be associated with the IP Configuration.
- Zones List<string>
- Specifies a list of Availability Zones in which the IP Address for this Load Balancer should be located. - NOTE: Availability Zones are only supported with a Standard SKU and in select regions at this time. 
- Name string
- Specifies the name of the frontend IP configuration.
- GatewayLoad stringBalancer Frontend Ip Configuration Id 
- The Frontend IP Configuration ID of a Gateway SKU Load Balancer.
- Id string
- The id of the Frontend IP Configuration.
- InboundNat []stringRules 
- The list of IDs of inbound rules that use this frontend IP.
- LoadBalancer []stringRules 
- The list of IDs of load balancing rules that use this frontend IP.
- OutboundRules []string
- The list of IDs outbound rules that use this frontend IP.
- PrivateIp stringAddress 
- Private IP Address to assign to the Load Balancer. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- PrivateIp stringAddress Allocation 
- The allocation method for the Private IP Address used by this Load Balancer. Possible values as DynamicandStatic.
- PrivateIp stringAddress Version 
- The version of IP that the Private IP Address is. Possible values are IPv4orIPv6.
- PublicIp stringAddress Id 
- The ID of a Public IP Address which should be associated with the Load Balancer.
- PublicIp stringPrefix Id 
- The ID of a Public IP Prefix which should be associated with the Load Balancer. Public IP Prefix can only be used with outbound rules.
- SubnetId string
- The ID of the Subnet which should be associated with the IP Configuration.
- Zones []string
- Specifies a list of Availability Zones in which the IP Address for this Load Balancer should be located. - NOTE: Availability Zones are only supported with a Standard SKU and in select regions at this time. 
- name String
- Specifies the name of the frontend IP configuration.
- gatewayLoad StringBalancer Frontend Ip Configuration Id 
- The Frontend IP Configuration ID of a Gateway SKU Load Balancer.
- id String
- The id of the Frontend IP Configuration.
- inboundNat List<String>Rules 
- The list of IDs of inbound rules that use this frontend IP.
- loadBalancer List<String>Rules 
- The list of IDs of load balancing rules that use this frontend IP.
- outboundRules List<String>
- The list of IDs outbound rules that use this frontend IP.
- privateIp StringAddress 
- Private IP Address to assign to the Load Balancer. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- privateIp StringAddress Allocation 
- The allocation method for the Private IP Address used by this Load Balancer. Possible values as DynamicandStatic.
- privateIp StringAddress Version 
- The version of IP that the Private IP Address is. Possible values are IPv4orIPv6.
- publicIp StringAddress Id 
- The ID of a Public IP Address which should be associated with the Load Balancer.
- publicIp StringPrefix Id 
- The ID of a Public IP Prefix which should be associated with the Load Balancer. Public IP Prefix can only be used with outbound rules.
- subnetId String
- The ID of the Subnet which should be associated with the IP Configuration.
- zones List<String>
- Specifies a list of Availability Zones in which the IP Address for this Load Balancer should be located. - NOTE: Availability Zones are only supported with a Standard SKU and in select regions at this time. 
- name string
- Specifies the name of the frontend IP configuration.
- gatewayLoad stringBalancer Frontend Ip Configuration Id 
- The Frontend IP Configuration ID of a Gateway SKU Load Balancer.
- id string
- The id of the Frontend IP Configuration.
- inboundNat string[]Rules 
- The list of IDs of inbound rules that use this frontend IP.
- loadBalancer string[]Rules 
- The list of IDs of load balancing rules that use this frontend IP.
- outboundRules string[]
- The list of IDs outbound rules that use this frontend IP.
- privateIp stringAddress 
- Private IP Address to assign to the Load Balancer. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- privateIp stringAddress Allocation 
- The allocation method for the Private IP Address used by this Load Balancer. Possible values as DynamicandStatic.
- privateIp stringAddress Version 
- The version of IP that the Private IP Address is. Possible values are IPv4orIPv6.
- publicIp stringAddress Id 
- The ID of a Public IP Address which should be associated with the Load Balancer.
- publicIp stringPrefix Id 
- The ID of a Public IP Prefix which should be associated with the Load Balancer. Public IP Prefix can only be used with outbound rules.
- subnetId string
- The ID of the Subnet which should be associated with the IP Configuration.
- zones string[]
- Specifies a list of Availability Zones in which the IP Address for this Load Balancer should be located. - NOTE: Availability Zones are only supported with a Standard SKU and in select regions at this time. 
- name str
- Specifies the name of the frontend IP configuration.
- gateway_load_ strbalancer_ frontend_ ip_ configuration_ id 
- The Frontend IP Configuration ID of a Gateway SKU Load Balancer.
- id str
- The id of the Frontend IP Configuration.
- inbound_nat_ Sequence[str]rules 
- The list of IDs of inbound rules that use this frontend IP.
- load_balancer_ Sequence[str]rules 
- The list of IDs of load balancing rules that use this frontend IP.
- outbound_rules Sequence[str]
- The list of IDs outbound rules that use this frontend IP.
- private_ip_ straddress 
- Private IP Address to assign to the Load Balancer. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- private_ip_ straddress_ allocation 
- The allocation method for the Private IP Address used by this Load Balancer. Possible values as DynamicandStatic.
- private_ip_ straddress_ version 
- The version of IP that the Private IP Address is. Possible values are IPv4orIPv6.
- public_ip_ straddress_ id 
- The ID of a Public IP Address which should be associated with the Load Balancer.
- public_ip_ strprefix_ id 
- The ID of a Public IP Prefix which should be associated with the Load Balancer. Public IP Prefix can only be used with outbound rules.
- subnet_id str
- The ID of the Subnet which should be associated with the IP Configuration.
- zones Sequence[str]
- Specifies a list of Availability Zones in which the IP Address for this Load Balancer should be located. - NOTE: Availability Zones are only supported with a Standard SKU and in select regions at this time. 
- name String
- Specifies the name of the frontend IP configuration.
- gatewayLoad StringBalancer Frontend Ip Configuration Id 
- The Frontend IP Configuration ID of a Gateway SKU Load Balancer.
- id String
- The id of the Frontend IP Configuration.
- inboundNat List<String>Rules 
- The list of IDs of inbound rules that use this frontend IP.
- loadBalancer List<String>Rules 
- The list of IDs of load balancing rules that use this frontend IP.
- outboundRules List<String>
- The list of IDs outbound rules that use this frontend IP.
- privateIp StringAddress 
- Private IP Address to assign to the Load Balancer. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- privateIp StringAddress Allocation 
- The allocation method for the Private IP Address used by this Load Balancer. Possible values as DynamicandStatic.
- privateIp StringAddress Version 
- The version of IP that the Private IP Address is. Possible values are IPv4orIPv6.
- publicIp StringAddress Id 
- The ID of a Public IP Address which should be associated with the Load Balancer.
- publicIp StringPrefix Id 
- The ID of a Public IP Prefix which should be associated with the Load Balancer. Public IP Prefix can only be used with outbound rules.
- subnetId String
- The ID of the Subnet which should be associated with the IP Configuration.
- zones List<String>
- Specifies a list of Availability Zones in which the IP Address for this Load Balancer should be located. - NOTE: Availability Zones are only supported with a Standard SKU and in select regions at this time. 
Import
Load Balancers can be imported using the resource id, e.g.
$ pulumi import azure:lb/loadBalancer:LoadBalancer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1
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.