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

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectExtendedLocation complex type.
propertiesobjectProperties of the load balancer.
skuobjectSKU of a load balancer.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTloadBalancerName, resourceGroupName, subscriptionIdGets 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_updateINSERTloadBalancerName, resourceGroupName, subscriptionIdCreates or updates a load balancer.
deleteDELETEloadBalancerName, resourceGroupName, subscriptionIdDeletes the specified load balancer.
migrate_to_ip_basedEXECgroupName, loadBalancerName, subscriptionIdMigrate load balancer to IP Based
swap_public_ip_addressesEXEClocation, subscriptionIdSwaps VIPs between two load balancers.
update_tagsEXECloadBalancerName, resourceGroupName, subscriptionIdUpdates a load balancer tags.

SELECT examples

Gets all the load balancers in a subscription.

SELECT
id,
name,
etag,
extendedLocation,
properties,
sku,
systemData,
type
FROM azure.network.load_balancers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new load_balancers resource.

/*+ create */
INSERT INTO azure.network.load_balancers (
loadBalancerName,
resourceGroupName,
subscriptionId,
extendedLocation,
sku,
properties
)
SELECT
'{{ loadBalancerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ extendedLocation }}',
'{{ sku }}',
'{{ properties }}'
;

DELETE example

Deletes the specified load_balancers resource.

/*+ delete */
DELETE FROM azure.network.load_balancers
WHERE loadBalancerName = '{{ loadBalancerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';