Get-AzNetworkCloudBareMetalMachine

Get properties of the provided bare metal machine.

Syntax

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

Get properties of the provided bare metal machine.

Examples

Example 1: List bare metal machines by subscription

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>

This command lists bare metal machines by subscription.

Example 2: Get bare metal machine

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

This command gets details of a bare metal machine.

Example 3: List bare metal machines by resource group

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>

This command lists bare metal machines by resource group.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

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

Type:INetworkCloudIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The name of the bare metal machine.

Type:String
Aliases:BareMetalMachineName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The ID of the target subscription. The value must be an UUID.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

INetworkCloudIdentity

Outputs

IBareMetalMachine