Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.data_explorer.clusters

Fields

The following fields are returned by SELECT queries:

The Kusto cluster.

NameDatatypeDescription
etagstringA unique read-only string that changes whenever the resource is updated.
identityobjectThe identity of the cluster, if configured.
locationstringThe geo-location where the resource lives
propertiesobjectThe cluster properties.
skuobjectThe SKU of the cluster.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.
zonesarrayThe availability zones of the cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, clusterName, subscriptionIdGets a Kusto cluster.
list_by_resource_groupselectresourceGroupName, subscriptionIdLists all Kusto clusters within a resource group.
listselectsubscriptionIdLists all Kusto clusters within a subscription.
create_or_updateinsertresourceGroupName, clusterName, subscriptionId, data__skuIf-Match, If-None-MatchCreate or update a Kusto cluster.
updateupdateresourceGroupName, clusterName, subscriptionIdIf-MatchUpdate a Kusto cluster.
deletedeleteresourceGroupName, clusterName, subscriptionIdDeletes a Kusto cluster.
stopexecresourceGroupName, clusterName, subscriptionIdStops a Kusto cluster.
startexecresourceGroupName, clusterName, subscriptionIdStarts a Kusto cluster.
migrateexecresourceGroupName, clusterName, subscriptionId, clusterResourceIdMigrate data from a Kusto cluster to another cluster.
detach_follower_databasesexecresourceGroupName, clusterName, subscriptionId, clusterResourceId, attachedDatabaseConfigurationNameDetaches all followers of a database owned by this cluster.
diagnose_virtual_networkexecresourceGroupName, clusterName, subscriptionIdDiagnoses network connectivity status for external resources on which the service is dependent on.
check_name_availabilityexecsubscriptionId, location, name, typeChecks that the cluster name is valid and is not already in use.
add_language_extensionsexecsubscriptionId, resourceGroupName, clusterNameAdd a list of language extensions that can run within KQL queries.
remove_language_extensionsexecsubscriptionId, resourceGroupName, clusterNameRemove a list of language extensions that can run within KQL queries.

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

SELECT examples

Gets a Kusto cluster.

SELECT
etag,
identity,
location,
properties,
sku,
systemData,
tags,
zones
FROM azure.data_explorer.clusters
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Create or update a Kusto cluster.

INSERT INTO azure.data_explorer.clusters (
data__sku,
data__zones,
data__identity,
data__properties,
data__tags,
data__location,
resourceGroupName,
clusterName,
subscriptionId,
If-Match,
If-None-Match
)
SELECT
'{{ sku }}' /* required */,
'{{ zones }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ subscriptionId }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
etag,
identity,
location,
properties,
sku,
systemData,
tags,
zones
;

UPDATE examples

Update a Kusto cluster.

UPDATE azure.data_explorer.clusters
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__sku = '{{ sku }}',
data__zones = '{{ zones }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
identity,
location,
properties,
sku,
systemData,
tags,
zones;

DELETE examples

Deletes a Kusto cluster.

DELETE FROM azure.data_explorer.clusters
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Stops a Kusto cluster.

EXEC azure.data_explorer.clusters.stop 
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;