Share via


LoadBalancer Class

LoadBalancer resource.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

LoadBalancer(*, id: str | None = None, location: str | None = None, tags: Dict[str, str] | None = None, extended_location: _models.ExtendedLocation | None = None, sku: _models.LoadBalancerSku | None = None, frontend_ip_configurations: List[_models.FrontendIPConfiguration] | None = None, backend_address_pools: List[_models.BackendAddressPool] | None = None, load_balancing_rules: List[_models.LoadBalancingRule] | None = None, probes: List[_models.Probe] | None = None, inbound_nat_rules: List[_models.InboundNatRule] | None = None, inbound_nat_pools: List[_models.InboundNatPool] | None = None, outbound_rules: List[_models.OutboundRule] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
id
str

Resource ID.

Default value: None
location
str

Resource location.

Default value: None
tags

Resource tags.

Default value: None
extended_location

The extended location of the load balancer.

Default value: None
sku

The load balancer SKU.

Default value: None
frontend_ip_configurations

Object representing the frontend IPs to be used for the load balancer.

Default value: None
backend_address_pools

Collection of backend address pools used by a load balancer.

Default value: None
load_balancing_rules

Object collection representing the load balancing rules Gets the provisioning.

Default value: None
probes

Collection of probe objects used in the load balancer.

Default value: None
inbound_nat_rules

Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.

Default value: None
inbound_nat_pools

Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.

Default value: None
outbound_rules

The outbound rules.

Default value: None

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

location
str

Resource location.

tags

Resource tags.

extended_location

The extended location of the load balancer.

sku

The load balancer SKU.

etag
str

A unique read-only string that changes whenever the resource is updated.

frontend_ip_configurations

Object representing the frontend IPs to be used for the load balancer.

backend_address_pools

Collection of backend address pools used by a load balancer.

load_balancing_rules

Object collection representing the load balancing rules Gets the provisioning.

probes

Collection of probe objects used in the load balancer.

inbound_nat_rules

Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.

inbound_nat_pools

Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.

outbound_rules

The outbound rules.

resource_guid
str

The resource GUID property of the load balancer resource.

provisioning_state

The provisioning state of the load balancer resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting".