Skip to main content

instance_pools

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

Overview

Nameinstance_pools
TypeResource
Idazure.sql.instance_pools

Fields

NameDatatypeDescription
dns_zonetextfield from the properties object
instancePoolNametextfield from the properties object
license_typetextfield from the properties object
locationtextResource location.
maintenance_configuration_idtextfield from the properties object
resourceGroupNametextfield from the properties object
skutextAn ARM Resource SKU.
subnet_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
v_corestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstancePoolName, resourceGroupName, subscriptionIdGets an instance pool.
listSELECTsubscriptionIdGets a list of all instance pools in the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of instance pools in the resource group
create_or_updateINSERTinstancePoolName, resourceGroupName, subscriptionId, data__locationCreates or updates an instance pool.
deleteDELETEinstancePoolName, resourceGroupName, subscriptionIdDeletes an instance pool
updateUPDATEinstancePoolName, resourceGroupName, subscriptionIdUpdates an instance pool.

SELECT examples

Gets a list of all instance pools in the subscription.

SELECT
dns_zone,
instancePoolName,
license_type,
location,
maintenance_configuration_id,
resourceGroupName,
sku,
subnet_id,
subscriptionId,
tags,
v_cores
FROM azure.sql.vw_instance_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.instance_pools (
instancePoolName,
resourceGroupName,
subscriptionId,
data__location,
location,
tags,
sku,
properties
)
SELECT
'{{ instancePoolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a instance_pools resource.

/*+ update */
UPDATE azure.sql.instance_pools
SET
sku = '{{ sku }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
instancePoolName = '{{ instancePoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified instance_pools resource.

/*+ delete */
DELETE FROM azure.sql.instance_pools
WHERE instancePoolName = '{{ instancePoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';