azure::load-balancer

Creates a load balancer.

Example

azure::load-balancer load-balancer-example
    name: "load-balancer-example"
    resource-group: $(azure::resource-group resource-group-lb-example)

    public-frontend
        name: "public-frontend"
        public-ip-address: $(azure::public-ip-address public-ip-address)
    end

    load-balancer-rule
        name: "test-rule"
        backend-port: 80
        floating-ip: false
        frontend-name: "public-frontend"
        frontend-port: 443
        idle-timeout-in-minutes: 8
        protocol: "TCP"
        backend-name: "backend-name"
        health-check-probe-name: "healthcheck-tcp"
    end

    health-check-probe-tcp
        name: "healthcheck-tcp"
        interval: 5
        port: 80
        probes: 2
        protocol: "TCP"
    end

    tags: {
            Name: "load-balancer-example"
    }
end

Attributes

Attribute Description
health-check-probe-http set subresource

The Health Check Http Probes associated with the Load Balancer.

name
The name of the Health Probe. (Required)
interval
The amount of time before a Health Probe signals unhealthy. (Required)
port
The destination port used for the Health Probe. (Required)
probes
The number of Health probe failures required by an unhealthy target to be considered unhealthy. (Required)
request-path
The HTTP request path by the probe to call to check the health status. (Required)
health-check-probe-tcp set subresource

The Health Check Tcp Probes associated with the Load Balancer.

name
The name of the Health Probe. (Required)
interval
The amount of time before a Health Probe signals unhealthy. (Required)
port
The destination port used for the Health Probe. (Required)
probes
The number of Health probe failures required by an unhealthy target to be considered unhealthy. (Required)
name The name of the Load Balancer. (Required)
load-balancer-rule set subresource

The Load Balancer rules associated with the Load Balancer. (Required)

backend-name
The backend pool associated with the Load Balancer Rule. (Required)
backend-port
The backend port that receives network traffic for the Load Balancer Rule. (Required)
floating-ip
Determines whether floating ip support is enabled for the Load Balancer Rule. Defaults to false.
frontend-name
The name of the frontend associated with the Load Balancer Rule. (Required)
frontend-port
The frontend port that receives network traffic for the Load Balancer Rule. (Required)
idle-timeout-in-minutes
The number of minutes before an unresponsive connection is closed for the Load Balancer Rule. (Required)
name
The name of the Load Balancer Rule. (Required)
health-check-probe-name
The health check probe associated with the Load Balancer Rule. (Required)
protocol
The protocol used by the Load Balancer Rule. (Required)
private-frontend set subresource

The Private Frontend associated with the Load Balancer.

name
The name of the Private Frontend. (Required)
private-ip-address
The Private IP Address associated with the Private Frontend.
network
The Network where the Subnet is found for the Private Frontend. (Required)
subnet-name
The name of the Subnet that is associated with the Private Frontend. (Required)
public-frontend set subresource

The Public Frontend associated with the Load Balancer.

name
The name of the Public Frontend. (Required)
public-ip-address
The Public IP Address associated with the Public Frontend. (Required)
resource-group The Resource Group under which the Load Balancer would reside. (Required)
sku-type Specifies the sku type for the Load Balancer. Defaults to BASIC. Valid values are BASIC or STANDARD.
tags map The tags associated with the Load Balancer.
inbound-nat-pool set subresource

The Inbound Nat Pools Associated with the Load Balancer.

backend-port
The port number that network traffic is sent to for the Inbound Nat Pool. (Required)
frontend-name
The name of the frontend that the Inbound Nat Pool is associated with. (Required)
frontend-port-start
The starting number of the frontend port for the Inbound Nat Pool. (Required)
frontend-port-end
The ending number of the frontend port for the Inbound Nat Pool. (Required)
name
The name of the Inbound Nat Pool. (Required)
protocol
The protocol used by the Inbound Nat Pool. Valid values are TCP or UDP. (Required)
inbound-nat-rule set subresource

The Inbound Nat Rules associated with the Load Balancer. Nat rules may not be associated with a Load Balancer if a Nat Pool is associated.

backend-port
The backend port that receives network traffic for the Inbound Nat Rule. (Required)
floating-ip
Determines whether floating ip support is enabled for the Inbound Nat Rule. Defaults to false.
frontend-name
The frontend associated with the Inbound Nat Rule. (Required)
name
The name of the Inbound Nat Rule. (Required)
frontend-port
The frontend port that receives network traffic for the Inbound Nat Rule. (Required)
protocol
The protocol used by the Inbound Nat Rule. Valid values are TCP or UDP. (Required)

Outputs

Attribute Description
id The ID of the Load Balancer.