Move-AzReservationDirectory
將 ReservationOrder
目錄(租使用者)及其下的所有 Reservation
變更為指定的租用戶標識碼
語法
Move-AzReservationDirectory
-ReservationOrderId <String>
[-DestinationTenantId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Move-AzReservationDirectory
-ReservationOrderId <String>
-JsonString <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Move-AzReservationDirectory
-ReservationOrderId <String>
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Move-AzReservationDirectory
-InputObject <IReservationsIdentity>
[-DestinationTenantId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
將 ReservationOrder
目錄(租使用者)及其下的所有 Reservation
變更為指定的租用戶標識碼
範例
範例 1:將保留訂單從一個租使用者移至另一個租使用者
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
將保留訂單從一個租使用者移至另一個租使用者
參數
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DestinationTenantId
要轉移保留訂單的租用戶標識碼 GUID
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity 參數
類型: | IReservationsIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-JsonFilePath
提供給 Change作的 Json 檔的路徑
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-JsonString
提供給 Change作的 Json 字串
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ReservationOrderId
保留的訂單標識碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 指令未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |