Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-AzCapacityReservationGroup

Gets the properties of Capacity Reservation Groups

Syntax

DefaultParameterSet (Default)

Get-AzCapacityReservationGroup
 [-ResourceGroupName <String>]
 [-Name <String>]
 [-InstanceView]
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

ResourceIDParameterSet

Get-AzCapacityReservationGroup
 -ResourceId <String>
 [-InstanceView]
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

ResourceIdsOnlyParameterSet

Get-AzCapacityReservationGroup
 [-ResourceIdsOnly <String>]
 [-InstanceView]
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

Description

The Get-AzCapacityReservationGroup cmdlet gets the properties of Capacity Reservation resources from a Capacity Reservation Group

Examples

Example 1

Get-AzCapacityReservationGroup -ResourceGroupName $rgname -Name "CRGroup1" -InstanceView

This will retrieve the Capacity Reservation Group named "CRGroup1" with its instance view information.

Example 2

Get-AzCapacityReservationGroup -ResourceGroupName $rgname

This will retrieve all the Capacity Reservation Groups' information from resource group.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-InstanceView

Get the Instance View of the Capacity Reservation Group.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

Specifies the name of the capacity reservation group.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False
Aliases:CapacityReservationGroupName

Parameter sets

-ResourceGroupName

Specifies the name of a resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False

Parameter sets

-ResourceId

Resource ID for the capacity reservation group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceIdsOnly

Resource ID's Only for your capacity reservation group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

SwitchParameter

Outputs

PSCapacityReservationGroup


Feedback

Was this page helpful?