Get-AzReservationHistory
List of all the revisions for the Reservation.
Syntax
Default (Default)
Get-AzReservationHistory
-ReservationId <String>
-ReservationOrderId <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
List of all the revisions for the Reservation.
Examples
Example 1: Get the revision of a reservation
Get-AzReservationHistory -ReservationId 2ef560a7-f469-4b62-87b7-5312d588ce2a -ReservationOrderId 2b9b9372-24e1-4a07-a354-2078fe347cf9
Location ReservationOrderId/ReservationId Sku State BenefitStartTime ExpiryDate LastUpdatedDateTime SkuDescription
-------- -------------------------------- --- ----- ---------------- ---------- ------------------- --------------
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/9 Standard_B1ls Succeeded 6/24/2022 10:06:39 PM 6/24/2023 12:00:00 AM 6/24/2022 10:06:43 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/8 Standard_B1ls Succeeded 6/24/2022 10:06:39 PM 6/24/2023 12:00:00 AM 6/24/2022 10:06:43 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/7 Standard_B1ls ConfirmedBilling 6/24/2022 10:06:17 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/6 Standard_B1ls PendingBilling 6/24/2022 10:04:04 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/5 Standard_B1ls ConfirmedCapacity 6/24/2022 10:03:44 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/4 Standard_B1ls PendingCapacity 6/24/2022 10:03:34 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/3 Standard_B1ls Creating 6/24/2022 10:03:17 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/2 Standard_B1ls Creating 6/24/2022 10:03:04 PM Reserved VM Instance, Standard_B1ls, US West,…
westus 2b9b9372-24e1-4a07-a354-2078fe347cf9/2ef560a7-f469-4b62-87b7-5312d588ce2a/1 Standard_B1ls Creating 6/24/2022 10:02:52 PM Reserved VM Instance, Standard_B1ls, US West,…
Get the revision of a reservation. Some data might be truncated due to the width of powershell view, appending this to the end of the command to show the truncated data: | ft -Wrap
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
| Type: | PSObject |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzureRMContext, AzureCredential |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ReservationId
Id of the reservation item
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ReservationOrderId
Order Id of the reservation
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
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.