Get-AzHDInsightMonitoring
Gets the status of the Classic Azure Monitor logs integration on an HDInsight cluster.
Get-AzHDInsightMonitoring
[-Name] <String>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
The Get-AzHDInsightMonitoring cmdlet gets the status of the Classic Azure Monitor logs integration on an HDInsight cluster. If monitoring is enabled then it will also return the log analytics workspace id.
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
Monitoring is enabled on the cluster because the ClusterMonitoringEnabled property is true. The monitoring workspace id where the logs are flowing is 1d364e89-bb71-4503-aa3d-a23535aea7bd
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
Monitoring is enabled on the cluster because the ClusterMonitoringEnabled property is true. The monitoring workspace id where the logs are flowing is 1d364e89-bb71-4503-aa3d-a23535aea7bd
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'false', 'workspaceId': null}
Monitoring is disabled on the cluster because the ClusterMonitoringEnabled property is false.
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'false', 'workspaceId': null}
Monitoring is disabled on the cluster because the ClusterMonitoringEnabled property is false.
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 |
The name of the cluster to get the status of monitoring.
Type: | String |
Aliases: | ClusterName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The resource group of the cluster.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Commentaires sur Azure PowerShell
Azure PowerShell est un projet open source. Sélectionnez un lien pour fournir des commentaires :