az hdinsight monitor

Manage Azure Monitor logs integration on an HDInsight cluster.

Commands

az hdinsight monitor disable

Disable the Azure Monitor logs integration on an HDInsight cluster.

az hdinsight monitor enable

Enable the Azure Monitor logs integration on an HDInsight cluster.

az hdinsight monitor show

Get the status of Azure Monitor logs integration on an HDInsight cluster.

az hdinsight monitor disable

Disable the Azure Monitor logs integration on an HDInsight cluster.

az hdinsight monitor disable --name
                             --resource-group
                             [--subscription]

Required Parameters

--name -n

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az hdinsight monitor enable

Enable the Azure Monitor logs integration on an HDInsight cluster.

az hdinsight monitor enable --name
                            --resource-group
                            --workspace
                            [--no-validation-timeout]
                            [--primary-key]
                            [--subscription]

Required Parameters

--name -n

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--workspace

The name, resource ID or workspace ID of Log Analytics workspace.

Optional Parameters

--no-validation-timeout

Permit timeout error during argument validation phase. If omitted, validation timeout error will be permitted.

--primary-key

The certificate for the Log Analytics workspace. Required when workspace ID is provided.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az hdinsight monitor show

Get the status of Azure Monitor logs integration on an HDInsight cluster.

az hdinsight monitor show --name
                          --resource-group
                          [--query-examples]
                          [--subscription]

Required Parameters

--name -n

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.