Skip to main content

extensions

Creates, updates, deletes, gets or lists an extensions resource.

Overview

Nameextensions
TypeResource
Idazure.hdinsight.extensions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorobjectThe error message associated with the cluster creation.
statusstringThe async operation state. Known values are: "InProgress", "Succeeded", and "Failed". (InProgress, Succeeded, Failed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_azure_async_operation_statusselectresource_group_name, cluster_name, extension_name, operation_id, subscription_idGets the async operation status.
getselectresource_group_name, cluster_name, extension_name, subscription_idGets the extension properties for the specified HDInsight cluster extension.
get_monitoring_statusselectresource_group_name, cluster_name, subscription_idGets the status of Operations Management Suite (OMS) on the HDInsight cluster.
createinsertresource_group_name, cluster_name, extension_name, subscription_idCreates an HDInsight cluster extension.
deletedeleteresource_group_name, cluster_name, extension_name, subscription_idDeletes the specified extension for HDInsight cluster.
disable_monitoringdeleteresource_group_name, cluster_name, subscription_idDisables the Operations Management Suite (OMS) on the HDInsight cluster.
enable_monitoringexecresource_group_name, cluster_name, subscription_idEnables the Operations Management Suite (OMS) on the HDInsight cluster.
get_azure_monitor_statusexecresource_group_name, cluster_name, subscription_idGets the status of Azure Monitor on the HDInsight cluster.
enable_azure_monitorexecresource_group_name, cluster_name, subscription_idEnables the Azure Monitor on the HDInsight cluster.
disable_azure_monitorexecresource_group_name, cluster_name, subscription_idDisables the Azure Monitor on the HDInsight cluster.
get_azure_monitor_agent_statusexecresource_group_name, cluster_name, subscription_idGets the status of Azure Monitor Agent on the HDInsight cluster.
enable_azure_monitor_agentexecresource_group_name, cluster_name, subscription_idEnables the Azure Monitor Agent on the HDInsight cluster.
disable_azure_monitor_agentexecresource_group_name, cluster_name, subscription_idDisables the Azure Monitor Agent on the HDInsight cluster.

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
cluster_namestringThe name of the cluster. Required.
extension_namestringThe name of the cluster extension. Required.
operation_idstringThe long running operation id. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the async operation status.

SELECT
error,
status
FROM azure.hdinsight.extensions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND extension_name = '{{ extension_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates an HDInsight cluster extension.

INSERT INTO azure.hdinsight.extensions (
workspaceId,
primaryKey,
resource_group_name,
cluster_name,
extension_name,
subscription_id
)
SELECT
'{{ workspaceId }}',
'{{ primaryKey }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ extension_name }}',
'{{ subscription_id }}'
;

DELETE examples

Deletes the specified extension for HDInsight cluster.

DELETE FROM azure.hdinsight.extensions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND extension_name = '{{ extension_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Enables the Operations Management Suite (OMS) on the HDInsight cluster.

EXEC azure.hdinsight.extensions.enable_monitoring 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"workspaceId": "{{ workspaceId }}",
"primaryKey": "{{ primaryKey }}"
}'
;