你当前正在访问 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 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
要获取监视状态的群集的名称。
类型: | String |
别名: | ClusterName |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
群集的资源组。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |