共用方式為


New-AzNetworkCloudControlPlaneNodeConfigurationObject

建立 ControlPlaneNodeConfiguration 的記憶體內部物件。

語法

New-AzNetworkCloudControlPlaneNodeConfigurationObject
   -Count <Int64>
   -VMSkuName <String>
   [-AdministratorConfigurationAdminUsername <String>]
   [-AdministratorConfigurationSshPublicKey <ISshPublicKey[]>]
   [-AvailabilityZone <String[]>]
   [<CommonParameters>]

Description

建立 ControlPlaneNodeConfiguration 的記憶體內部物件。

範例

範例 1:建立 ControlPlaneNodeConfiguration 的記憶體內部物件。

$sshPublicKey=@{
    keyData= "ssh-rsa"
}
New-AzNetworkCloudControlPlaneNodeConfigurationObject -Count 1 -VMSkuName vmSkuName -AdministratorConfigurationAdminUsername userName -AdministratorConfigurationSshPublicKey $sshPublicKey -AvailabilityZone @("1","2","3")

AvailabilityZone Count VMSkuName
---------------- ----- ---------
{1, 2, 3}        1     vmSkuName

建立 ControlPlaneNodeConfiguration 的記憶體內部物件。

參數

-AdministratorConfigurationAdminUsername

將套用至執行 Kubernetes 節點之作業系統之系統管理員的用戶名稱。 如果未提供,服務將會選擇用戶名稱。

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

-AdministratorConfigurationSshPublicKey

執行 Kubernetes 叢集中節點之作業系統的 SSH 組態。 在某些情況下,可能需要公鑰規格才能產生工作環境。 若要建構,請參閱 ADMINISTRATORCONFIGURATIONSSHPUBLICKEY 屬性的 NOTES 一節,並建立哈希表。

類型:ISshPublicKey[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-AvailabilityZone

要用於布建控制平面中節點的網路雲端叢集可用性區域清單。 如果未指定,則會使用所有可用性區域。

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

-Count

使用此組態的虛擬機數目。

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

-VMSkuName

建立期間提供的 VM SKU 名稱。

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

輸出

ControlPlaneNodeConfiguration