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:

OK. The request has succeeded.

NameDatatypeDescription
clusterMonitoringEnabledbooleanThe status of the monitor on the HDInsight cluster.
workspaceIdstringThe workspace ID of the monitor on the HDInsight cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterName, extensionNameGets the extension properties for the specified HDInsight cluster extension.
createinsertsubscriptionId, resourceGroupName, clusterName, extensionNameCreates an HDInsight cluster extension.
deletedeletesubscriptionId, resourceGroupName, clusterName, extensionNameDeletes the specified extension for HDInsight cluster.
enable_monitoringexecsubscriptionId, resourceGroupName, clusterNameEnables the Operations Management Suite (OMS) on the HDInsight cluster.
disable_monitoringexecsubscriptionId, resourceGroupName, clusterNameDisables the Operations Management Suite (OMS) on the HDInsight cluster.
enable_azure_monitorexecsubscriptionId, resourceGroupName, clusterNameEnables the Azure Monitor on the HDInsight cluster.
disable_azure_monitorexecsubscriptionId, resourceGroupName, clusterNameDisables the Azure Monitor on the HDInsight cluster.
enable_azure_monitor_agentexecsubscriptionId, resourceGroupName, clusterNameEnables the Azure Monitor Agent on the HDInsight cluster.
disable_azure_monitor_agentexecsubscriptionId, resourceGroupName, clusterNameDisables 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
clusterNamestringThe name of the cluster.
extensionNamestringThe name of the cluster extension.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets the extension properties for the specified HDInsight cluster extension.

SELECT
clusterMonitoringEnabled,
workspaceId
FROM azure.hdinsight.extensions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND extensionName = '{{ extensionName }}' -- required
;

INSERT examples

Creates an HDInsight cluster extension.

INSERT INTO azure.hdinsight.extensions (
data__workspaceId,
data__primaryKey,
subscriptionId,
resourceGroupName,
clusterName,
extensionName
)
SELECT
'{{ workspaceId }}',
'{{ primaryKey }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ extensionName }}'
;

DELETE examples

Deletes the specified extension for HDInsight cluster.

DELETE FROM azure.hdinsight.extensions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND extensionName = '{{ extensionName }}' --required
;

Lifecycle Methods

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

EXEC azure.hdinsight.extensions.enable_monitoring 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"workspaceId": "{{ workspaceId }}",
"primaryKey": "{{ primaryKey }}"
}'
;