共用方式為


Get-AzNetworkCloudBareMetalMachine

取得所提供裸機機器的屬性。

語法

Get-AzNetworkCloudBareMetalMachine
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzNetworkCloudBareMetalMachine
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzNetworkCloudBareMetalMachine
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzNetworkCloudBareMetalMachine
   -InputObject <INetworkCloudIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得所提供裸機機器的屬性。

範例

範例 1:依訂用帳戶列出裸機機器

Get-AzNetworkCloudBareMetalMachine -SubscriptionId subscriptionId

Location  Name             SystemDataCreatedAt   SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt      SystemDataLastModifiedBy
--------  ----             -------------------   -------------------  ----------------------- ------------------------      ------------
westus3  rack1compute01    07/19/2023 15:44:02   <identity>           User                    07/19/2023 15:46:45           <identity>
westus3  rack1compute02    07/19/2023 15:44:02   <identity>           User                    07/19/2023 15:46:45           <identity>
westus3  rack1compute03    07/19/2023 15:44:02   <identity>           User                    07/19/2023 15:46:45           <identity>
westus3  rack1control01    07/19/2023 15:44:02   <identity>           User                    07/19/2023 15:46:45           <identity>
westus3  rack1control02    07/19/2023 15:44:02   <identity>           User                    07/19/2023 15:46:45           <identity>

此命令會依訂用帳戶列出裸機電腦。

範例 2:取得裸機計算機

Get-AzNetworkCloudBareMetalMachine -Name rack1control02 -ResourceGroupName resourceGroupName

Location Name           SystemDataCreatedAt SystemDataCreatedBy    SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy    SystemDataLastModifiedByType ResourceGroupName
-------- ----           ------------------- -------------------    ----------------------- ------------------------ ------------------------    ---------------------------- -----------------
eastus   rack1control02 08/12/2023 23:14:00  <identity>            User                     08/17/2023 13:36:42      <identity>                  User                         resourceGroupName

此命令會取得裸機電腦的詳細數據。

範例 3:依資源群組列出裸機計算機

Get-AzNetworkCloudBareMetalMachine -ResourceGroupName resourceGroupName -SubscriptionId subscriptionId

Location  Name                    SystemDataCreatedAt   SystemDataCreatedBy    SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy
--------       ----                         -------------------                -------------------                  -----------------------                   ------------------------                 ------------
westus3  rack1compute01 07/19/2023 15:44:02   <identity>                         User                                          07/19/2023 15:46:45           <identity>

此命令會依資源群組列出裸機計算機。

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

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

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

-Name

裸機計算機的名稱。

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

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

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

-SubscriptionId

目標訂用帳戶的標識碼。 此值必須是 UUID。

類型:String[]
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

INetworkCloudIdentity

輸出

IBareMetalMachine