Bearbeiten

Freigeben über


Disable-AzHDInsightMonitoring

Disables the Classic Azure Monitor logs integration on an HDInsight cluster and relevant logs will stop flowing to the monitoring workspace specified during enable.

Syntax

Disable-AzHDInsightMonitoring
       [-Name] <String>
       [-ResourceGroupName <String>]
       [-DefaultProfile <IAzureContextContainer>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-AzHDInsightMonitoring cmdlet disables the Classic Azure Monitor logs integration on an HDInsight cluster.

Examples

Example 1

Disable-AzHDInsightMonitoring -Name testcluster

True

Monitoring will be disabled on the HDInsight cluster and relevant logs will stop flowing to the monitoring workspace.

Example 2

Disable-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg

True

Monitoring will be disabled on the HDInsight cluster and relevant logs will stop flowing to the monitoring workspace.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the cluster to disable Monitoring.

Type:String
Aliases:ClusterName
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

The resource group of the cluster.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

Boolean