編輯

共用方式為


Get-AzReservationOrderId

Get applicable Reservations that are applied to this subscription or a resource group under this subscription.

Syntax

Get-AzReservationOrderId
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzReservationOrderId
   -InputObject <IReservationsIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Get applicable Reservations that are applied to this subscription or a resource group under this subscription.

Examples

Example 1: Get list of applicable ReservationOrder Ids.

Get-AzReservationOrderId -SubscriptionId 'aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e'

Id                         : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/microsoft.capacity/AppliedReservations/default
Name                       : default
ReservationOrderIdNextLink : 
ReservationOrderIdValue    : {/providers/Microsoft.Capacity/reservationorders/7c6192be-7543-40c3-93e1-3d7f0b15203f, 
                             /providers/Microsoft.Capacity/reservationorders/aa6c95fe-f25b-4f2e-864f-3860ef5d5bd0, 
                             /providers/Microsoft.Capacity/reservationorders/d9e3935c-288e-4ef5-81a0-55201c1a6a67, 
                             /providers/Microsoft.Capacity/reservationorders/b60911ea-d990-4795-818a-b7396abdb13b…}
ResourceGroupName          : 
Type                       : Microsoft.Capacity/AppliedReservations

Get Ids of applicable ReservationOrders that can be applied to this 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:IReservationsIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SubscriptionId

Id of the subscription

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

Inputs

IReservationsIdentity

Outputs

IAppliedReservations