你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzHDInsightMonitoring
获取 HDInsight 群集上的经典 Azure Monitor 日志集成的状态。
语法
Get-AzHDInsightMonitoring
[-Name] <String>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzHDInsightMonitoring cmdlet 获取 HDInsight 群集上的经典 Azure Monitor 日志集成的状态。 如果启用监视,则它还将返回 Log Analytics 工作区 ID。
示例
示例 1
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
群集上启用了监视,因为 ClusterMonitoringEnabled 属性为 true。 日志流动的监视工作区 ID 为 1d364e89-bb71-4503-aa3d-a23535aea7bd
示例 2
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
群集上启用了监视,因为 ClusterMonitoringEnabled 属性为 true。 日志流动的监视工作区 ID 为 1d364e89-bb71-4503-aa3d-a23535aea7bd
示例 3
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'false', 'workspaceId': null}
群集上禁用监视,因为 ClusterMonitoringEnabled 属性为 false。
示例 4
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'false', 'workspaceId': null}
群集上禁用监视,因为 ClusterMonitoringEnabled 属性为 false。
参数
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
要获取监视状态的群集的名称。
Type: | String |
Aliases: | ClusterName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
群集的资源组。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输入
输出
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈