Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.hdinsight.clusters

Fields

NameDatatypeDescription
clusterNametextfield from the properties object
cluster_definitiontextfield from the properties object
cluster_hdp_versiontextfield from the properties object
cluster_idtextfield from the properties object
cluster_statetextfield from the properties object
cluster_versiontextfield from the properties object
compute_isolation_propertiestextfield from the properties object
compute_profiletextfield from the properties object
connectivity_endpointstextfield from the properties object
created_datetextfield from the properties object
disk_encryption_propertiestextfield from the properties object
encryption_in_transit_propertiestextfield from the properties object
errorstextfield from the properties object
etagtextThe ETag for the resource
excluded_services_configtextfield from the properties object
identitytextIdentity for the cluster.
kafka_rest_propertiestextfield from the properties object
locationtextThe geo-location where the resource lives
min_supported_tls_versiontextfield from the properties object
network_propertiestextfield from the properties object
os_typetextfield from the properties object
private_endpoint_connectionstextfield from the properties object
private_link_configurationstextfield from the properties object
provisioning_statetextfield from the properties object
quota_infotextfield from the properties object
resourceGroupNametextfield from the properties object
security_profiletextfield from the properties object
storage_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
tiertextfield from the properties object
zonestextThe availability zones.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGets the specified cluster.
listSELECTsubscriptionIdLists all the HDInsight clusters under the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the HDInsight clusters in a resource group.
createINSERTclusterName, resourceGroupName, subscriptionIdCreates a new HDInsight cluster with the specified parameters.
deleteDELETEclusterName, resourceGroupName, subscriptionIdDeletes the specified HDInsight cluster.
updateUPDATEclusterName, resourceGroupName, subscriptionIdPatch HDInsight cluster with the specified parameters.
execute_script_actionsEXECclusterName, resourceGroupName, subscriptionId, data__persistOnSuccessExecutes script actions on the specified HDInsight cluster.
resizeEXECclusterName, resourceGroupName, roleName, subscriptionIdResizes the specified HDInsight cluster to the specified size.
rotate_disk_encryption_keyEXECclusterName, resourceGroupName, subscriptionIdRotate disk encryption key of the specified HDInsight cluster.

SELECT examples

Lists all the HDInsight clusters under the subscription.

SELECT
clusterName,
cluster_definition,
cluster_hdp_version,
cluster_id,
cluster_state,
cluster_version,
compute_isolation_properties,
compute_profile,
connectivity_endpoints,
created_date,
disk_encryption_properties,
encryption_in_transit_properties,
errors,
etag,
excluded_services_config,
identity,
kafka_rest_properties,
location,
min_supported_tls_version,
network_properties,
os_type,
private_endpoint_connections,
private_link_configurations,
provisioning_state,
quota_info,
resourceGroupName,
security_profile,
storage_profile,
subscriptionId,
system_data,
tags,
tier,
zones
FROM azure.hdinsight.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.hdinsight.clusters (
clusterName,
resourceGroupName,
subscriptionId,
location,
tags,
zones,
properties,
identity
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ zones }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a clusters resource.

/*+ update */
UPDATE azure.hdinsight.clusters
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified clusters resource.

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