Skip to main content

load_balancers

Creates, updates, deletes, gets or lists a load_balancers resource.

Overview

Nameload_balancers
TypeResource
Idazure.network.load_balancers

Fields

The following fields are returned by SELECT queries:

Successful request for query inbound NAT rule port mapping.

NameDatatypeDescription
inboundNatRulePortMappingsarrayCollection of inbound NAT rule port mappings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_inbound_nat_rule_port_mappingsselectgroupName, loadBalancerName, backendPoolName, subscriptionIdList of inbound NAT rule port mappings.
getselectresourceGroupName, loadBalancerName, subscriptionId$expandGets the specified load balancer.
listselectresourceGroupName, subscriptionIdGets all the load balancers in a resource group.
list_allselectsubscriptionIdGets all the load balancers in a subscription.
create_or_updateinsertresourceGroupName, loadBalancerName, subscriptionIdCreates or updates a load balancer.
deletedeleteresourceGroupName, loadBalancerName, subscriptionIdDeletes the specified load balancer.
update_tagsexecresourceGroupName, loadBalancerName, subscriptionIdUpdates a load balancer tags.
swap_public_ip_addressesexeclocation, subscriptionIdSwaps VIPs between two load balancers.
migrate_to_ip_basedexecgroupName, loadBalancerName, subscriptionIdMigrate load balancer to IP Based

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
backendPoolNamestringThe name of the load balancer backend address pool.
groupNamestringThe name of the resource group.
loadBalancerNamestringThe name of the load balancer.
locationstringThe region where load balancers are located at.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

List of inbound NAT rule port mappings.

SELECT
inboundNatRulePortMappings
FROM azure.network.load_balancers
WHERE groupName = '{{ groupName }}' -- required
AND loadBalancerName = '{{ loadBalancerName }}' -- required
AND backendPoolName = '{{ backendPoolName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates a load balancer.

INSERT INTO azure.network.load_balancers (
data__extendedLocation,
data__sku,
data__properties,
resourceGroupName,
loadBalancerName,
subscriptionId
)
SELECT
'{{ extendedLocation }}',
'{{ sku }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ loadBalancerName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
extendedLocation,
properties,
sku,
systemData,
type
;

DELETE examples

Deletes the specified load balancer.

DELETE FROM azure.network.load_balancers
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND loadBalancerName = '{{ loadBalancerName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates a load balancer tags.

EXEC azure.network.load_balancers.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@loadBalancerName='{{ loadBalancerName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;