We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Load Balancer Resource.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
Location = "West US",
ResourceGroupName = exampleResourceGroup.Name,
AllocationMethod = "Static",
});
var exampleLoadBalancer = new Azure.Lb.LoadBalancer("exampleLoadBalancer", new Azure.Lb.LoadBalancerArgs
{
Location = "West US",
ResourceGroupName = exampleResourceGroup.Name,
FrontendIpConfigurations =
{
new Azure.Lb.Inputs.LoadBalancerFrontendIpConfigurationArgs
{
Name = "PublicIPAddress",
PublicIpAddressId = examplePublicIp.Id,
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/lb"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
examplePublicIp, err := network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
Location: pulumi.String("West US"),
ResourceGroupName: exampleResourceGroup.Name,
AllocationMethod: pulumi.String("Static"),
})
if err != nil {
return err
}
_, err = lb.NewLoadBalancer(ctx, "exampleLoadBalancer", &lb.LoadBalancerArgs{
Location: pulumi.String("West US"),
ResourceGroupName: exampleResourceGroup.Name,
FrontendIpConfigurations: lb.LoadBalancerFrontendIpConfigurationArray{
&lb.LoadBalancerFrontendIpConfigurationArgs{
Name: pulumi.String("PublicIPAddress"),
PublicIpAddressId: examplePublicIp.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
location: "West US",
resourceGroupName: exampleResourceGroup.name,
allocationMethod: "Static",
});
const exampleLoadBalancer = new azure.lb.LoadBalancer("exampleLoadBalancer", {
location: "West US",
resourceGroupName: exampleResourceGroup.name,
frontendIpConfigurations: [{
name: "PublicIPAddress",
publicIpAddressId: examplePublicIp.id,
}],
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_public_ip = azure.network.PublicIp("examplePublicIp",
location="West US",
resource_group_name=example_resource_group.name,
allocation_method="Static")
example_load_balancer = azure.lb.LoadBalancer("exampleLoadBalancer",
location="West US",
resource_group_name=example_resource_group.name,
frontend_ip_configurations=[azure.lb.LoadBalancerFrontendIpConfigurationArgs(
name="PublicIPAddress",
public_ip_address_id=example_public_ip.id,
)])
Example coming soon!
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,
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",
FrontendIpConfigurations = new[]
{
new Azure.Lb.Inputs.LoadBalancerFrontendIpConfigurationArgs
{
Name = "string",
OutboundRules = new[]
{
"string",
},
Id = "string",
InboundNatRules = new[]
{
"string",
},
LoadBalancerRules = new[]
{
"string",
},
GatewayLoadBalancerFrontendIpConfigurationId = "string",
AvailabilityZone = "string",
PrivateIpAddress = "string",
PrivateIpAddressAllocation = "string",
PrivateIpAddressVersion = "string",
PublicIpAddressId = "string",
PublicIpPrefixId = "string",
SubnetId = "string",
},
},
Location = "string",
Name = "string",
Sku = "string",
SkuTier = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := lb.NewLoadBalancer(ctx, "loadBalancerResource", &lb.LoadBalancerArgs{
ResourceGroupName: pulumi.String("string"),
FrontendIpConfigurations: lb.LoadBalancerFrontendIpConfigurationArray{
&lb.LoadBalancerFrontendIpConfigurationArgs{
Name: pulumi.String("string"),
OutboundRules: pulumi.StringArray{
pulumi.String("string"),
},
Id: pulumi.String("string"),
InboundNatRules: pulumi.StringArray{
pulumi.String("string"),
},
LoadBalancerRules: pulumi.StringArray{
pulumi.String("string"),
},
GatewayLoadBalancerFrontendIpConfigurationId: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
PrivateIpAddressAllocation: pulumi.String("string"),
PrivateIpAddressVersion: pulumi.String("string"),
PublicIpAddressId: pulumi.String("string"),
PublicIpPrefixId: pulumi.String("string"),
SubnetId: 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")
.frontendIpConfigurations(LoadBalancerFrontendIpConfigurationArgs.builder()
.name("string")
.outboundRules("string")
.id("string")
.inboundNatRules("string")
.loadBalancerRules("string")
.gatewayLoadBalancerFrontendIpConfigurationId("string")
.availabilityZone("string")
.privateIpAddress("string")
.privateIpAddressAllocation("string")
.privateIpAddressVersion("string")
.publicIpAddressId("string")
.publicIpPrefixId("string")
.subnetId("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",
frontend_ip_configurations=[{
"name": "string",
"outbound_rules": ["string"],
"id": "string",
"inbound_nat_rules": ["string"],
"load_balancer_rules": ["string"],
"gateway_load_balancer_frontend_ip_configuration_id": "string",
"availability_zone": "string",
"private_ip_address": "string",
"private_ip_address_allocation": "string",
"private_ip_address_version": "string",
"public_ip_address_id": "string",
"public_ip_prefix_id": "string",
"subnet_id": "string",
}],
location="string",
name="string",
sku="string",
sku_tier="string",
tags={
"string": "string",
})
const loadBalancerResource = new azure.lb.LoadBalancer("loadBalancerResource", {
resourceGroupName: "string",
frontendIpConfigurations: [{
name: "string",
outboundRules: ["string"],
id: "string",
inboundNatRules: ["string"],
loadBalancerRules: ["string"],
gatewayLoadBalancerFrontendIpConfigurationId: "string",
availabilityZone: "string",
privateIpAddress: "string",
privateIpAddressAllocation: "string",
privateIpAddressVersion: "string",
publicIpAddressId: "string",
publicIpPrefixId: "string",
subnetId: "string",
}],
location: "string",
name: "string",
sku: "string",
skuTier: "string",
tags: {
string: "string",
},
});
type: azure:lb:LoadBalancer
properties:
frontendIpConfigurations:
- availabilityZone: string
gatewayLoadBalancerFrontendIpConfigurationId: string
id: string
inboundNatRules:
- string
loadBalancerRules:
- string
name: string
outboundRules:
- string
privateIpAddress: string
privateIpAddressAllocation: string
privateIpAddressVersion: string
publicIpAddressId: string
publicIpPrefixId: string
subnetId: 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:
- Resource
Group stringName - The name of the Resource Group in which to create the Load Balancer.
- Frontend
Ip List<LoadConfigurations Balancer Frontend Ip Configuration> - One or multiple
frontend_ip_configurationblocks as documented below. - Location string
- Specifies the supported Azure Region where the Load Balancer should be created.
- Name string
- Specifies the name of the Load Balancer.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - Sku
Tier string sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Resource
Group stringName - The name of the Resource Group in which to create the Load Balancer.
- Frontend
Ip []LoadConfigurations Balancer Frontend Ip Configuration Args - One or multiple
frontend_ip_configurationblocks as documented below. - Location string
- Specifies the supported Azure Region where the Load Balancer should be created.
- Name string
- Specifies the name of the Load Balancer.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - Sku
Tier string sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- map[string]string
- A mapping of tags to assign to the resource.
- resource
Group StringName - The name of the Resource Group in which to create the Load Balancer.
- frontend
Ip List<LoadConfigurations Balancer Frontend Ip Configuration> - One or multiple
frontend_ip_configurationblocks as documented below. - location String
- Specifies the supported Azure Region where the Load Balancer should be created.
- name String
- Specifies the name of the Load Balancer.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku
Tier String sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- Map<String,String>
- A mapping of tags to assign to the resource.
- resource
Group stringName - The name of the Resource Group in which to create the Load Balancer.
- frontend
Ip LoadConfigurations Balancer Frontend Ip Configuration[] - One or multiple
frontend_ip_configurationblocks as documented below. - location string
- Specifies the supported Azure Region where the Load Balancer should be created.
- name string
- Specifies the name of the Load Balancer.
- sku string
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku
Tier string sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. 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.
- frontend_
ip_ Sequence[Loadconfigurations Balancer Frontend Ip Configuration Args] - One or multiple
frontend_ip_configurationblocks as documented below. - location str
- Specifies the supported Azure Region where the Load Balancer should be created.
- name str
- Specifies the name of the Load Balancer.
- sku str
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku_
tier str sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- Mapping[str, str]
- A mapping of tags to assign to the resource.
- resource
Group StringName - The name of the Resource Group in which to create the Load Balancer.
- frontend
Ip List<Property Map>Configurations - One or multiple
frontend_ip_configurationblocks as documented below. - location String
- Specifies the supported Azure Region where the Load Balancer should be created.
- name String
- Specifies the name of the Load Balancer.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku
Tier String sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. 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.
- Private
Ip 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.
- Private
Ip 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.
- Private
Ip 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.
- Private
Ip []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.
- private
Ip 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.
- private
Ip 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.
- private
Ip 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.
- private
Ip 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. The last one and first four IPs in any range are reserved and cannot be manually assigned.
- 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.
- private
Ip 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.
- private
Ip 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,
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.
- Frontend
Ip List<LoadConfigurations Balancer Frontend Ip Configuration> - One or multiple
frontend_ip_configurationblocks as documented below. - Location string
- Specifies the supported Azure Region where the Load Balancer should be created.
- Name string
- Specifies the name of the Load Balancer.
- Private
Ip 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.
- Private
Ip List<string>Addresses - The list of private IP address assigned to the load balancer in
frontend_ip_configurationblocks, if any. - Resource
Group stringName - The name of the Resource Group in which to create the Load Balancer.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - Sku
Tier string sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Frontend
Ip []LoadConfigurations Balancer Frontend Ip Configuration Args - One or multiple
frontend_ip_configurationblocks as documented below. - Location string
- Specifies the supported Azure Region where the Load Balancer should be created.
- Name string
- Specifies the name of the Load Balancer.
- Private
Ip 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.
- Private
Ip []stringAddresses - The list of private IP address assigned to the load balancer in
frontend_ip_configurationblocks, if any. - Resource
Group stringName - The name of the Resource Group in which to create the Load Balancer.
- Sku string
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - Sku
Tier string sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- map[string]string
- A mapping of tags to assign to the resource.
- frontend
Ip List<LoadConfigurations Balancer Frontend Ip Configuration> - One or multiple
frontend_ip_configurationblocks as documented below. - location String
- Specifies the supported Azure Region where the Load Balancer should be created.
- name String
- Specifies the name of the Load Balancer.
- private
Ip 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.
- private
Ip List<String>Addresses - The list of private IP address assigned to the load balancer in
frontend_ip_configurationblocks, if any. - resource
Group StringName - The name of the Resource Group in which to create the Load Balancer.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku
Tier String sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- Map<String,String>
- A mapping of tags to assign to the resource.
- frontend
Ip LoadConfigurations Balancer Frontend Ip Configuration[] - One or multiple
frontend_ip_configurationblocks as documented below. - location string
- Specifies the supported Azure Region where the Load Balancer should be created.
- name string
- Specifies the name of the Load Balancer.
- private
Ip 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.
- private
Ip string[]Addresses - The list of private IP address assigned to the load balancer in
frontend_ip_configurationblocks, if any. - resource
Group stringName - The name of the Resource Group in which to create the Load Balancer.
- sku string
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku
Tier string sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- {[key: string]: string}
- A mapping of tags to assign to the resource.
- frontend_
ip_ Sequence[Loadconfigurations Balancer Frontend Ip Configuration Args] - One or multiple
frontend_ip_configurationblocks as documented below. - location str
- Specifies the supported Azure Region where the Load Balancer should be created.
- name str
- Specifies the name of the Load Balancer.
- 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_ 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.
- sku str
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku_
tier str sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. Changing this forces a new resource to be created.- Mapping[str, str]
- A mapping of tags to assign to the resource.
- frontend
Ip List<Property Map>Configurations - One or multiple
frontend_ip_configurationblocks as documented below. - location String
- Specifies the supported Azure Region where the Load Balancer should be created.
- name String
- Specifies the name of the Load Balancer.
- private
Ip 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.
- private
Ip List<String>Addresses - The list of private IP address assigned to the load balancer in
frontend_ip_configurationblocks, if any. - resource
Group StringName - The name of the Resource Group in which to create the Load Balancer.
- sku String
- The SKU of the Azure Load Balancer. Accepted values are
Basic,StandardandGateway. Defaults toBasic. - sku
Tier String sku_tier- (Optional) The Sku Tier of this Load Balancer. Possible values areGlobalandRegional. Defaults toRegional. 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.
- Availability
Zone string - A list of Availability Zones which the Load Balancer's IP Addresses should be created in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Availability Zone can only be updated whenever the name of the front end ip configuration changes. Defaults toZone-Redundant. - Gateway
Load 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.
- Inbound
Nat List<string>Rules - The list of IDs of inbound rules that use this frontend IP.
- Load
Balancer List<string>Rules - The list of IDs of load balancing rules that use this frontend IP.
- Outbound
Rules List<string> - The list of IDs outbound rules that use this frontend IP.
- Private
Ip 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.
- Private
Ip stringAddress Allocation - The allocation method for the Private IP Address used by this Load Balancer. Possible values as
DynamicandStatic. - Private
Ip stringAddress Version - The version of IP that the Private IP Address is. Possible values are
IPv4orIPv6. - Public
Ip stringAddress Id - The ID of a Public IP Address which should be associated with the Load Balancer.
- Public
Ip 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.
- Subnet
Id string - The ID of the Subnet which should be associated with the IP Configuration.
- Zones string
- Name string
- Specifies the name of the frontend ip configuration.
- Availability
Zone string - A list of Availability Zones which the Load Balancer's IP Addresses should be created in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Availability Zone can only be updated whenever the name of the front end ip configuration changes. Defaults toZone-Redundant. - Gateway
Load 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.
- Inbound
Nat []stringRules - The list of IDs of inbound rules that use this frontend IP.
- Load
Balancer []stringRules - The list of IDs of load balancing rules that use this frontend IP.
- Outbound
Rules []string - The list of IDs outbound rules that use this frontend IP.
- Private
Ip 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.
- Private
Ip stringAddress Allocation - The allocation method for the Private IP Address used by this Load Balancer. Possible values as
DynamicandStatic. - Private
Ip stringAddress Version - The version of IP that the Private IP Address is. Possible values are
IPv4orIPv6. - Public
Ip stringAddress Id - The ID of a Public IP Address which should be associated with the Load Balancer.
- Public
Ip 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.
- Subnet
Id string - The ID of the Subnet which should be associated with the IP Configuration.
- Zones string
- name String
- Specifies the name of the frontend ip configuration.
- availability
Zone String - A list of Availability Zones which the Load Balancer's IP Addresses should be created in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Availability Zone can only be updated whenever the name of the front end ip configuration changes. Defaults toZone-Redundant. - gateway
Load 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.
- inbound
Nat List<String>Rules - The list of IDs of inbound rules that use this frontend IP.
- load
Balancer List<String>Rules - The list of IDs of load balancing rules that use this frontend IP.
- outbound
Rules List<String> - The list of IDs outbound rules that use this frontend IP.
- private
Ip 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.
- private
Ip StringAddress Allocation - The allocation method for the Private IP Address used by this Load Balancer. Possible values as
DynamicandStatic. - private
Ip StringAddress Version - The version of IP that the Private IP Address is. Possible values are
IPv4orIPv6. - public
Ip StringAddress Id - The ID of a Public IP Address which should be associated with the Load Balancer.
- public
Ip 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.
- subnet
Id String - The ID of the Subnet which should be associated with the IP Configuration.
- zones String
- name string
- Specifies the name of the frontend ip configuration.
- availability
Zone string - A list of Availability Zones which the Load Balancer's IP Addresses should be created in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Availability Zone can only be updated whenever the name of the front end ip configuration changes. Defaults toZone-Redundant. - gateway
Load 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.
- inbound
Nat string[]Rules - The list of IDs of inbound rules that use this frontend IP.
- load
Balancer string[]Rules - The list of IDs of load balancing rules that use this frontend IP.
- outbound
Rules string[] - The list of IDs outbound rules that use this frontend IP.
- private
Ip 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.
- private
Ip stringAddress Allocation - The allocation method for the Private IP Address used by this Load Balancer. Possible values as
DynamicandStatic. - private
Ip stringAddress Version - The version of IP that the Private IP Address is. Possible values are
IPv4orIPv6. - public
Ip stringAddress Id - The ID of a Public IP Address which should be associated with the Load Balancer.
- public
Ip 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.
- subnet
Id string - The ID of the Subnet which should be associated with the IP Configuration.
- zones string
- name str
- Specifies the name of the frontend ip configuration.
- availability_
zone str - A list of Availability Zones which the Load Balancer's IP Addresses should be created in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Availability Zone can only be updated whenever the name of the front end ip configuration changes. Defaults toZone-Redundant. - 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 str
- name String
- Specifies the name of the frontend ip configuration.
- availability
Zone String - A list of Availability Zones which the Load Balancer's IP Addresses should be created in. Possible values are
Zone-Redundant,1,2,3, andNo-Zone. Availability Zone can only be updated whenever the name of the front end ip configuration changes. Defaults toZone-Redundant. - gateway
Load 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.
- inbound
Nat List<String>Rules - The list of IDs of inbound rules that use this frontend IP.
- load
Balancer List<String>Rules - The list of IDs of load balancing rules that use this frontend IP.
- outbound
Rules List<String> - The list of IDs outbound rules that use this frontend IP.
- private
Ip 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.
- private
Ip StringAddress Allocation - The allocation method for the Private IP Address used by this Load Balancer. Possible values as
DynamicandStatic. - private
Ip StringAddress Version - The version of IP that the Private IP Address is. Possible values are
IPv4orIPv6. - public
Ip StringAddress Id - The ID of a Public IP Address which should be associated with the Load Balancer.
- public
Ip 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.
- subnet
Id String - The ID of the Subnet which should be associated with the IP Configuration.
- zones String
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.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
