Move-AzReservationDirectory

Change directory (tenant) of ReservationOrder and all Reservation under it to specified tenant id

Syntax

Move-AzReservationDirectory
    -ReservationOrderId <String>
    [-DestinationTenantId <String>]
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]
Move-AzReservationDirectory
    -ReservationOrderId <String>
    -Body <IChangeDirectoryRequest>
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]
Move-AzReservationDirectory
    -InputObject <IReservationsIdentity>
    -Body <IChangeDirectoryRequest>
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]
Move-AzReservationDirectory
    -InputObject <IReservationsIdentity>
    [-DestinationTenantId <String>]
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Description

Change directory (tenant) of ReservationOrder and all Reservation under it to specified tenant id

Examples

Example 1: Move reservation order from one tenant to another

Move-AzReservationDirectory -ReservationOrderId "7c31a9e8-8490-4002-88cd-3a16b71362a9" -DestinationTenantId "f65fbe9a-14b0-44c6-8c0d-2ef2c4543040"

Reservation                 : {{
                                "id": "e2ce59da-9753-47f6-8576-2a2fab559409",
                                "name": "VM_RI_05-26-2022_16-53",
                                "isSucceeded": true
                              }, {
                                "id": "9a852181-9cec-43a4-852e-8cfd0bec11aa",
                                "name": "VM_RI_05-26-2022_16-53",
                                "isSucceeded": true
                              }, {
                                "id": "6dc205d9-8049-4179-9d60-29eb1d0082b3",
                                "name": "VM_RI_05-26-2022_16-53",
                                "isSucceeded": true
                              }}
ReservationOrderError       : 
ReservationOrderId          : 7c31a9e8-8490-4002-88cd-3a16b71362a9
ReservationOrderIsSucceeded : True
ReservationOrderName        : VM_RI_05-26-2022_16-53

Move reservation order from one tenant to another

Parameters

-Body

Request body for change directory of a reservation. To construct, see NOTES section for BODY properties and create a hash table.

Type:IChangeDirectoryRequest
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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

-DestinationTenantId

Tenant id GUID that reservation order is to be transferred to

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

-ReservationOrderId

Order Id of the reservation

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IChangeDirectoryRequest

IReservationsIdentity

Outputs

IChangeDirectoryResponse

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

BODY <IChangeDirectoryRequest>: Request body for change directory of a reservation.

  • [DestinationTenantId <String>]: Tenant id GUID that reservation order is to be transferred to

INPUTOBJECT <IReservationsIdentity>: Identity Parameter

  • [Id <String>]: Resource identity path
  • [ReservationId <String>]: Id of the reservation item
  • [ReservationOrderId <String>]: Order Id of the reservation
  • [SubscriptionId <String>]: Id of the subscription