Get-AzNetworkCloudRack

Get properties of the provided rack.

Syntax

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

Description

Get properties of the provided rack.

Examples

Example 1: List racks by resource group

Get-AzNetworkCloudRack -ResourceGroupName resourceGroupName -SubscriptionId subscriptionId

Location    Name              SystemDataCreatedAt SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy   SystemDataLastModifiedByType       ResourceGroupName
--------    ----              ------------------- -------------------  ----------------------- ------------------------ ------------------------    ----------------------------      -----------------
eastus      rackName            07/11/2023 16:09:59 user1               User                    07/11/2023 16:20:31     user2                       User                               sim

This command lists all racks by resource group.

Example 2: Get rack

Get-AzNetworkCloudRack -ResourceGroupName resourceGroupName -Name rackName -SubscriptionId subscriptionId

Location    Name              SystemDataCreatedAt SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy   SystemDataLastModifiedByType       ResourceGroupName
--------    ----              ------------------- -------------------  ----------------------- ------------------------ ------------------------    ----------------------------      -----------------
eastus      rackName            07/11/2023 16:09:59 user1               User                    07/11/2023 16:20:31     user2                       User                               sim

This command gets details of a rack.

Example 3: List racks by subscription

Get-AzNetworkCloudRack -SubscriptionId subscriptionId

Location    Name              SystemDataCreatedAt SystemDataCreatedBy  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy   SystemDataLastModifiedByType       ResourceGroupName
--------    ----              ------------------- -------------------  ----------------------- ------------------------ ------------------------    ----------------------------      -----------------
eastus      rackName            07/11/2023 16:09:59 user1               User                    07/11/2023 16:20:31     user2                       User                               sim

This command lists racks by subscription.

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 rack.

Type:String
Aliases:RackName
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

IRack