LoadBalancer
Manages a Load Balancer Resource.
Create a LoadBalancer Resource
new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);def LoadBalancer(resource_name, opts=None, frontend_ip_configurations=None, location=None, name=None, resource_group_name=None, sku=None, tags=None, __props__=None);func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
LoadBalancer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
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 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
BasicandStandard. Defaults toBasic.- 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 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
BasicandStandard. Defaults toBasic.- 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
BasicandStandard. Defaults toBasic.- {[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_ List[Loadconfigurations Balancer Frontend Ip Configuration] 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
BasicandStandard. Defaults toBasic.- Dict[str, str]
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 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_ List[str]addresses The list of private IP address assigned to the load balancer in
frontend_ip_configurationblocks, if any.
Look up an 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): LoadBalancerstatic get(resource_name, id, opts=None, frontend_ip_configurations=None, location=None, name=None, private_ip_address=None, private_ip_addresses=None, resource_group_name=None, sku=None, tags=None, __props__=None);func 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)- 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.
The following state arguments are supported:
- Frontend
Ip List<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 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
BasicandStandard. Defaults toBasic.- Dictionary<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 []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
BasicandStandard. Defaults toBasic.- 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
BasicandStandard. Defaults toBasic.- {[key: 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 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_ List[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
BasicandStandard. Defaults toBasic.- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
LoadBalancerFrontendIpConfiguration
- Name string
Specifies the name of the frontend ip configuration.
- 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
A list of Availability Zones which the Load Balancer’s IP Addresses should be created in.
- Name string
Specifies the name of the frontend ip configuration.
- 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
A list of Availability Zones which the Load Balancer’s IP Addresses should be created in.
- name string
Specifies the name of the frontend ip configuration.
- 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
A list of Availability Zones which the Load Balancer’s IP Addresses should be created in.
- name str
Specifies the name of the frontend ip configuration.
- id str
The id of the Frontend IP Configuration.
- inbound_
nat_ List[str]rules The list of IDs of inbound rules that use this frontend IP.
- load_
balancer_ List[str]rules The list of IDs of load balancing rules that use this frontend IP.
- outbound
Rules List[str] The list of IDs outbound rules that use this frontend IP.
- 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.- 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.
- 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
A list of Availability Zones which the Load Balancer’s IP Addresses should be created in.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.