Invoke-AzReservationCalculateRefund
如果沒有原則錯誤,則計算傳回 Reservations
的價格。\n
Syntax
Invoke-AzReservationCalculateRefund
-ReservationOrderId <String>
[-Id <String>]
[-ReservationToReturnQuantity <Int32>]
[-ReservationToReturnReservationId <String>]
[-Scope <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-AzReservationCalculateRefund
-ReservationOrderId <String>
-Body <ICalculateRefundRequest>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-AzReservationCalculateRefund
-InputObject <IReservationsIdentity>
[-Id <String>]
[-ReservationToReturnQuantity <Int32>]
[-ReservationToReturnReservationId <String>]
[-Scope <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-AzReservationCalculateRefund
-InputObject <IReservationsIdentity>
-Body <ICalculateRefundRequest>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
如果沒有原則錯誤,則計算傳回 Reservations
的價格。\n
範例
範例 1:計算傳回保留的價格
$orderId = "50000000-aaaa-bbbb-cccc-100000000003"
$fullyQualifiedId = "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000003/reservations/30000000-aaaa-bbbb-cccc-100000000003"
$fullyQualifiedOrderId = "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000003"
Invoke-AzReservationCalculateRefund -ReservationOrderId $orderId -ReservationToReturnQuantity 1 -ReservationToReturnReservationId $fullyQualifiedId -Id $fullyQualifiedOrderId -Scope "Reservation"
BillingInformationBillingCurrencyProratedAmount : {
"currencyCode": "USD",
"amount": 25.05
}
BillingInformationBillingCurrencyRemainingCommitmentAmount : {
"currencyCode": "USD",
"amount": 18.06
}
BillingInformationBillingCurrencyTotalPaidAmount : {
"currencyCode": "USD",
"amount": 25.8
}
BillingInformationBillingPlan : Monthly
BillingInformationCompletedTransaction : 5
BillingInformationTotalTransaction : 12
BillingRefundAmount : {
"currencyCode": "USD",
"amount": 0.75
}
ConsumedRefundsTotal : {
"currencyCode": "USD",
"amount": 365.43
}
Id : /providers/Microsoft.Capacity/reservationOrders/4336d060-da34-4228-91b0-feab5b2a1e1d/reservations/5e012942-5692-41c0-bc71-86303e11104d
MaxRefundLimit : {
"currencyCode": "USD",
"amount": 50000
}
PolicyError : {}
PricingRefundAmount : {
"currencyCode": "USD",
"amount": 0.75
}
Quantity : 1
ResourceGroupName :
SessionId : b0a96155-5f75-4138-b01f-443130f5516e
計算保留退款金額。 回應中的 SessionId 是 Cmdlet Invoke-AzReservationReturn 的必要輸入參數
參數
-Body
要求包含計算退款所需的資訊。 若要建構,請參閱 BODY 屬性的 NOTES 區段並建立哈希表。
類型: | ICalculateRefundRequest |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
執行 Cmdlet 之前先提示您確認。
類型: | SwitchParameter |
Aliases: | cf |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
傳回保留訂單的完整標識碼
類型: | String |
Aliases: | ReservationId |
Position: | Named |
預設值: | None |
必要: | 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.
類型: | IReservationsIdentity |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ReservationOrderId
保留的訂單標識碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ReservationToReturnQuantity
要傳回的數量。 必須大於零。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ReservationToReturnReservationId
傳回保留的完整標識碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Scope
退款範圍,例如保留
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。
類型: | SwitchParameter |
Aliases: | wi |
Position: | Named |
預設值: | None |
必要: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應