Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.data_explorer.clusters

Fields

NameDatatypeDescription
accepted_audiencestextfield from the properties object
allowed_fqdn_listtextfield from the properties object
allowed_ip_range_listtextfield from the properties object
clusterNametextfield from the properties object
data_ingestion_uritextfield from the properties object
enable_auto_stoptextfield from the properties object
enable_disk_encryptiontextfield from the properties object
enable_double_encryptiontextfield from the properties object
enable_purgetextfield from the properties object
enable_streaming_ingesttextfield from the properties object
engine_typetextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
identitytextIdentity for the resource.
key_vault_propertiestextfield from the properties object
language_extensionstextfield from the properties object
locationtextThe geo-location where the resource lives
migration_clustertextfield from the properties object
optimized_autoscaletextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_ip_typetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
restrict_outbound_network_accesstextfield from the properties object
skutextAzure SKU definition.
statetextfield from the properties object
state_reasontextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
trusted_external_tenantstextfield from the properties object
uritextfield from the properties object
virtual_cluster_graduation_propertiestextfield from the properties object
virtual_network_configurationtextfield from the properties object
zonestextAn array represents the availability zones of the cluster.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGets a Kusto cluster.
listSELECTsubscriptionIdLists all Kusto clusters within a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all Kusto clusters within a resource group.
create_or_updateINSERTclusterName, resourceGroupName, subscriptionId, data__skuCreate or update a Kusto cluster.
deleteDELETEclusterName, resourceGroupName, subscriptionIdDeletes a Kusto cluster.
updateUPDATEclusterName, resourceGroupName, subscriptionIdUpdate a Kusto cluster.
add_language_extensionsEXECclusterName, resourceGroupName, subscriptionIdAdd a list of language extensions that can run within KQL queries.
check_name_availabilityEXEClocation, subscriptionId, data__name, data__typeChecks that the cluster name is valid and is not already in use.
detach_follower_databasesEXECclusterName, resourceGroupName, subscriptionId, data__attachedDatabaseConfigurationName, data__clusterResourceIdDetaches all followers of a database owned by this cluster.
diagnose_virtual_networkEXECclusterName, resourceGroupName, subscriptionIdDiagnoses network connectivity status for external resources on which the service is dependent on.
migrateEXECclusterName, resourceGroupName, subscriptionId, data__clusterResourceIdMigrate data from a Kusto cluster to another cluster.
remove_language_extensionsEXECclusterName, resourceGroupName, subscriptionIdRemove a list of language extensions that can run within KQL queries.
startEXECclusterName, resourceGroupName, subscriptionIdStarts a Kusto cluster.
stopEXECclusterName, resourceGroupName, subscriptionIdStops a Kusto cluster.

SELECT examples

Lists all Kusto clusters within a subscription.

SELECT
accepted_audiences,
allowed_fqdn_list,
allowed_ip_range_list,
clusterName,
data_ingestion_uri,
enable_auto_stop,
enable_disk_encryption,
enable_double_encryption,
enable_purge,
enable_streaming_ingest,
engine_type,
etag,
identity,
key_vault_properties,
language_extensions,
location,
migration_cluster,
optimized_autoscale,
private_endpoint_connections,
provisioning_state,
public_ip_type,
public_network_access,
resourceGroupName,
restrict_outbound_network_access,
sku,
state,
state_reason,
subscriptionId,
system_data,
tags,
trusted_external_tenants,
uri,
virtual_cluster_graduation_properties,
virtual_network_configuration,
zones
FROM azure.data_explorer.vw_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_explorer.clusters (
clusterName,
resourceGroupName,
subscriptionId,
data__sku,
sku,
zones,
identity,
properties,
tags,
location
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ zones }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a clusters resource.

/*+ update */
UPDATE azure.data_explorer.clusters
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
zones = '{{ zones }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified clusters resource.

/*+ delete */
DELETE FROM azure.data_explorer.clusters
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';