Get-AzHDInsightMonitoring
取得 HDInsight 叢集上傳統 Azure 監視器記錄整合的狀態。
語法
Get-AzHDInsightMonitoring
[-Name] <String>
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzHDInsightMonitoring Cmdlet 會取得 HDInsight 叢集上傳統 Azure 監視器記錄整合的狀態。 如果啟用監視,它也會傳回Log Analytics工作區標識碼。
範例
範例 1
Get-AzHDInsightMonitoring -Name testcluster
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
叢集上已啟用監視,因為 ClusterMonitoringEnabled 屬性為 true。 記錄流動的監視工作區標識碼是 1d364e89-bb71-4503-aa3d-a23535aea7bd
範例 2
Get-AzHDInsightMonitoring -Name testcluster -ResourceGroupName testrg
{'ClusterMonitoringEnabled':'true', 'workspaceId':'1d364e89-bb71-4503-aa3d-a23535aea7bd'}
叢集上已啟用監視,因為 ClusterMonitoringEnabled 屬性為 true。 記錄流動的監視工作區標識碼是 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 |