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>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Move-AzReservationDirectory
-ReservationOrderId <String>
-Body <IChangeDirectoryRequest>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Move-AzReservationDirectory
-InputObject <IReservationsIdentity>
[-DestinationTenantId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Move-AzReservationDirectory
-InputObject <IReservationsIdentity>
-Body <IChangeDirectoryRequest>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<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 "00001111-aaaa-2222-bbbb-3333cccc4444" -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 : 00001111-aaaa-2222-bbbb-3333cccc4444
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
Outputs
Azure PowerShell