共用方式為


Get-AzHDInsightAzureMonitor

取得指定 HDInsight 叢集的 Azure 監視器狀態。

語法

Get-AzHDInsightAzureMonitor
   [[-ResourceGroupName] <String>]
   [-ClusterName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzHDInsightAzureMonitor
   [-ResourceId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzHDInsightAzureMonitor
   [-InputObject] <AzureHDInsightCluster>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzHDInsightAzureMonitor Cmdlet 會取得指定 HDInsight 叢集的 Azure 監視器狀態。

範例

範例 1

# Cluster info
$clusterName = "your-hadoop-001"
$resourceGroupName = "Group"
Get-AzHDInsightAzureMonitor -ClusterName $clusterName -ResourceGroupName $resourceGroupName

此 Cmdlet 會取得指定 HDInsight 叢集的 Azure 監視器狀態。

範例 2

# Cluster info
$clusterName = "your-hadoop-001"
$cluster=Get-AzHDInsightCluster -ClusterName $clusterName
$cluster | Get-AzHDInsightAzureMonitor

此 Cmdlet 會使用管線取得 Azure 監視器。

參數

-ClusterName

取得或設定叢集的名稱。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

取得或設定輸入物件。

類型:AzureHDInsightCluster
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

取得或設定資源群組的名稱。

類型:String
Position:0
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceId

取得或設定資源標識碼。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

AzureHDInsightCluster

輸出

AzureHDInsightMonitoring