共用方式為


Get-AzHDInsightHost

列出 HDInsight 叢集的主機。

語法

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

Description

Get-AzHDInsightHost Cmdlet 會列出 HDInsight 叢集的主機。

範例

範例 1

# Cluster info
$clusterName = "your-hadoop-001"
Get-AzHDInsightHost -ClusterName $clusterName

此命令列出具有叢集名稱的叢集主機。

範例 2

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

此命令列出具有管線的叢集主機。

參數

-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

輸入

AzureHDInsightCluster

輸出

AzureHDInsightHostInfo