Get-AzureRmReservationHistory
Get Reservation
revision history.
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Syntax
Get-AzureRmReservationHistory
-ReservationOrderId <Guid>
-ReservationId <Guid>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmReservationHistory
-Reservation <PSReservation>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
List of all the revisions for the Reservation
.
Examples
Example 1
PS C:\> Get-AzureRmReservationHistory -ReservationOrderId "1111aaaa-b1b2-c0c2-d0d2-00000fffff" -ReservationId "00000000-ffff-ffff-0000-00000fffff"
Get the revision history of the specific reservation
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Reservation
Pipe object parameter for Reservation
s
Type: | Microsoft.Azure.Commands.Reservations.Models.PSReservation |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ReservationId
ReservationId of the Reservation
of which history is to be shown
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ReservationOrderId
ReservationOrderId for the ReservationOrder
that contains the Reservation
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Microsoft.Azure.Commands.Reservations.Models.PSReservation
Parameters: Reservation (ByValue)
Outputs
Microsoft.Azure.Commands.Reservations.Models.PSReservationPage