Skip to main content

kusto_pools

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

Overview

Namekusto_pools
TypeResource
Idazure.synapse.kusto_pools

Fields

The following fields are returned by SELECT queries:

The Kusto pool.

NameDatatypeDescription
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringThe geo-location where the resource lives
propertiesobjectThe kusto pool properties.
skuobjectThe SKU of the kusto pool.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectworkspaceName, kustoPoolName, subscriptionId, resourceGroupNameGets a Kusto pool.
list_by_workspaceselectresourceGroupName, subscriptionId, workspaceNameList all Kusto pools
create_or_updateinsertworkspaceName, resourceGroupName, kustoPoolName, subscriptionId, data__skuIf-Match, If-None-MatchCreate or update a Kusto pool.
updateupdateworkspaceName, resourceGroupName, kustoPoolName, subscriptionIdIf-MatchUpdate a Kusto Kusto Pool.
deletedeleteworkspaceName, resourceGroupName, kustoPoolName, subscriptionIdDeletes a Kusto pool.
check_name_availabilityexecsubscriptionId, location, name, typeChecks that the kusto pool name is valid and is not already in use.
stopexecworkspaceName, kustoPoolName, subscriptionId, resourceGroupNameStops a Kusto pool.
startexecworkspaceName, kustoPoolName, subscriptionId, resourceGroupNameStarts a Kusto pool.
add_language_extensionsexecworkspaceName, kustoPoolName, subscriptionId, resourceGroupNameAdd a list of language extensions that can run within KQL queries.
remove_language_extensionsexecworkspaceName, kustoPoolName, subscriptionId, resourceGroupNameRemove a list of language extensions that can run within KQL queries.
detach_follower_databasesexecworkspaceName, kustoPoolName, subscriptionId, resourceGroupName, clusterResourceId, attachedDatabaseConfigurationNameDetaches all followers of a database owned by this Kusto Pool.

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
kustoPoolNamestringThe name of the Kusto pool.
locationstringThe name of Azure region.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.
If-MatchstringThe ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
If-None-MatchstringSet to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response.

SELECT examples

Gets a Kusto pool.

SELECT
etag,
location,
properties,
sku,
systemData,
tags
FROM azure.synapse.kusto_pools
WHERE workspaceName = '{{ workspaceName }}' -- required
AND kustoPoolName = '{{ kustoPoolName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
;

INSERT examples

Create or update a Kusto pool.

INSERT INTO azure.synapse.kusto_pools (
data__sku,
data__properties,
data__tags,
data__location,
workspaceName,
resourceGroupName,
kustoPoolName,
subscriptionId,
If-Match,
If-None-Match
)
SELECT
'{{ sku }}' /* required */,
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ workspaceName }}',
'{{ resourceGroupName }}',
'{{ kustoPoolName }}',
'{{ subscriptionId }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
etag,
location,
properties,
sku,
systemData,
tags
;

UPDATE examples

Update a Kusto Kusto Pool.

UPDATE azure.synapse.kusto_pools
SET
data__tags = '{{ tags }}',
data__sku = '{{ sku }}',
data__properties = '{{ properties }}'
WHERE
workspaceName = '{{ workspaceName }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND kustoPoolName = '{{ kustoPoolName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
location,
properties,
sku,
systemData,
tags;

DELETE examples

Deletes a Kusto pool.

DELETE FROM azure.synapse.kusto_pools
WHERE workspaceName = '{{ workspaceName }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND kustoPoolName = '{{ kustoPoolName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Checks that the kusto pool name is valid and is not already in use.

EXEC azure.synapse.kusto_pools.check_name_availability 
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;