New-AzNetworkCloudRackDefinitionObject
建立RackDefinition的記憶體內部物件。
語法
New-AzNetworkCloudRackDefinitionObject
-NetworkRackId <String>
-RackSerialNumber <String>
-RackSkuId <String>
[-AvailabilityZone <String>]
[-BareMetalMachineConfigurationData <IBareMetalMachineConfigurationData[]>]
[-RackLocation <String>]
[-StorageApplianceConfigurationData <IStorageApplianceConfigurationData[]>]
[<CommonParameters>]
Description
建立RackDefinition的記憶體內部物件。
範例
範例 1:建立 RackDefinition 的記憶體內部物件。
$password = ConvertTo-SecureString -String "****" -AsPlainText -Force
$bmmConfigurationData = New-AzNetworkCloudBareMetalMachineConfigurationDataObject -BmcCredentialsPassword $password -BmcCredentialsUsername "username" -BmcMacAddress "00:BB:CC:DD:EE:FF" -BootMacAddress "00:BB:CC:DD:EE:FF" -RackSlot 1 -SerialNumber "serialNumber" -MachineDetail "machineDetail" -MachineName "machineName"
$saConfigurationData = New-AzNetworkCloudStorageApplianceConfigurationDataObject -AdminCredentialsPassword $password -AdminCredentialsUsername "username" -RackSlot 1 -SerialNumber "serialNumber" -StorageApplianceName "storageApplianceName"
$object = New-AzNetworkCloudRackDefinitionObject -NetworkRackId "/subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/vNet/subnets/Subnet" -RackSerialNumber "aa5678" -RackSkuId "/subscriptions/subscriptionId/providers/Microsoft.NetworkCloud/rackSkus/VNearEdge1_Compute_DellR750_16C2M" -AvailabilityZone "1" -BareMetalMachineConfigurationData $bmmConfigurationData -RackLocation "Foo Datacenter, Floor 3, Aisle 9, Rack 2" -StorageApplianceConfigurationData $saConfigurationData
Write-Host ($object | Format-List | Out-String)
AvailabilityZone : 1
BareMetalMachineConfigurationData : {{
"bmcCredentials": {
"password": "redacted",
"username": "username"
},
"bmcMacAddress": "00:BB:CC:DD:EE:FF",
"bootMacAddress": "00:BB:CC:DD:EE:FF",
"machineDetails": "machineDetail",
"machineName": "machineName",
"rackSlot": 1,
"serialNumber": "serialNumber"
}}
NetworkRackId : /subscriptions/subscription/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/vNet/subnets/Subnet
RackLocation : Foo Datacenter, Floor 3, Aisle 9, Rack 2
RackSerialNumber : aa5678
RackSkuId : /subscriptions/subscriptionId/providers/Microsoft.NetworkCloud/rackSkus/VNearEdge1_Compute_DellR750_16C2M
StorageApplianceConfigurationData : {{
"adminCredentials": {
"password": "redacted",
"username": "username"
},
"rackSlot": 1,
"serialNumber": "serialNumber",
"storageApplianceName": "storageApplianceName"
}}
建立RackDefinition的記憶體內部物件。
參數
-AvailabilityZone
建立時用於此機架的區域名稱。 可用性區域用於工作負載放置。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-BareMetalMachineConfigurationData
裸機計算機組態的未排序列表。 若要建構,請參閱 BAREMETALMACHINECONFIGURATIONDATA 屬性的 NOTES 一節,並建立哈希表。
類型: | IBareMetalMachineConfigurationData[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-NetworkRackId
符合此機架定義的網路機架資源標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-RackLocation
機架位置的自由格式描述。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-RackSerialNumber
網路雲端叢集中機架的唯一標識符。 如有需要,可能會提供序號以外的替代唯一英數位元值。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-RackSkuId
要新增之機架的 SKU 資源識別碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-StorageApplianceConfigurationData
此機架的存放裝置設定資料清單。 若要建構,請參閱 STORAGEAPPLIANCECONFIGURATIONDATA 屬性的 NOTES 區段,並建立哈希表。
類型: | IStorageApplianceConfigurationData[] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |