Skip to main content
Providers

LoadBalancer

A resource of the Azure provider, version 0.3.0, in its Load Balancing group. Import it with:

import LoadBalancer from "azure/loadbalancing"

Example

resource LoadBalancer example {
    name                     = "example-value"
    resourceGroup            = "example-value"
    location                 = "example-value"
    sku                      = "Standard"
    tier                     = "Regional"
    frontendIpConfigurations = "..."
    backendAddressPools      = "..."
    healthProbes             = "..."
    loadBalancingRules       = "..."
    inboundNatRules          = "..."
    outboundRules            = "..."
    tags                     = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
namestring—NoThe name of the load balancer
resourceGroupstring—NoThe resource group name
locationstring—NoThe Azure region
skustring"Standard"NoThe SKU of the load balancer Allowed: "Basic", "Standard"
tierstring"Regional"NoThe SKU tier Allowed: "Regional", "Global"
frontendIpConfigurationsany[]—NoFrontend IP configurations. At least one is required
backendAddressPoolsany[]—NoBackend address pools
healthProbesany[]—NoHealth probes for backend health monitoring
loadBalancingRulesany[]—NoLoad balancing rules
inboundNatRulesany[]—NoInbound NAT rules for port forwarding
outboundRulesany[]—NoOutbound rules (Standard SKU only)
tagsobject—NoTags to apply to the load balancer

Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
idstringYesThe resource ID of the load balancer
provisioningStatestringNoProvisioning state of the load balancer

On this page