Skip to main content

extensions

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

Overview

Nameextensions
TypeResource
Idazure.hdinsight.extensions

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, extensionName, resourceGroupName, subscriptionIdGets the extension properties for the specified HDInsight cluster extension.
createINSERTclusterName, extensionName, resourceGroupName, subscriptionIdCreates an HDInsight cluster extension.
deleteDELETEclusterName, extensionName, resourceGroupName, subscriptionIdDeletes the specified extension for HDInsight cluster.
disable_azure_monitorEXECclusterName, resourceGroupName, subscriptionIdDisables the Azure Monitor on the HDInsight cluster.
disable_azure_monitor_agentEXECclusterName, resourceGroupName, subscriptionIdDisables the Azure Monitor Agent on the HDInsight cluster.
disable_monitoringEXECclusterName, resourceGroupName, subscriptionIdDisables the Operations Management Suite (OMS) on the HDInsight cluster.
enable_azure_monitorEXECclusterName, resourceGroupName, subscriptionIdEnables the Azure Monitor on the HDInsight cluster.
enable_azure_monitor_agentEXECclusterName, resourceGroupName, subscriptionIdEnables the Azure Monitor Agent on the HDInsight cluster.
enable_monitoringEXECclusterName, resourceGroupName, subscriptionIdEnables the Operations Management Suite (OMS) on the HDInsight cluster.

SELECT examples

Gets the extension properties for the specified HDInsight cluster extension.

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

INSERT example

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

/*+ create */
INSERT INTO azure.hdinsight.extensions (
clusterName,
extensionName,
resourceGroupName,
subscriptionId,
workspaceId,
primaryKey
)
SELECT
'{{ clusterName }}',
'{{ extensionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ primaryKey }}'
;

DELETE example

Deletes the specified extensions resource.

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