Freigeben über


Invoke-AzReservationCalculateRefund

Berechnen Sie den Preis für die Reservations Rückgabe, wenn keine Richtlinienfehler vorhanden sind.\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>]

Beschreibung

Berechnen Sie den Preis für die Reservations Rückgabe, wenn keine Richtlinienfehler vorhanden sind.\n

Beispiele

Beispiel 1: Berechnen des Preises für die Rückgabe von Reservierungen

$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

Reservierungsrückerstattungsbetrag berechnen. Die SessionId in der Antwort ist ein erforderlicher Eingabeparameter für das Cmdlet Invoke-AzReservationReturn

Parameter

-Body

Anforderung mit Informationen, die für die Berechnung der Rückerstattung erforderlich sind. Informationen zum Erstellen finden Sie im Abschnitt "NOTES" für BODY-Eigenschaften und erstellen eine Hashtabelle.

Typ:ICalculateRefundRequest
Position:Named
Standardwert:None
Erforderlich:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.

Typ:SwitchParameter
Aliases:cf
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Der Parameter DefaultProfile ist nicht funktionsfähig. Verwenden Sie den Parameter "SubscriptionId", wenn sie verfügbar ist, wenn Sie das Cmdlet für ein anderes Abonnement ausführen.

Typ:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Vollqualifizierter Bezeichner der zurückzugebenden Reservierungsbestellung

Typ:String
Aliases:ReservationId
Position:Named
Standardwert:None
Erforderlich: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.

Typ:IReservationsIdentity
Position:Named
Standardwert:None
Erforderlich:True
Accept pipeline input:True
Accept wildcard characters:False

-ReservationOrderId

Bestell-ID der Reservierung

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Accept pipeline input:False
Accept wildcard characters:False

-ReservationToReturnQuantity

Menge, die zurückgegeben werden soll. Muss größer sein als Null.

Typ:Int32
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-ReservationToReturnReservationId

Vollqualifizierter Bezeichner der zurückgesendeten Reservierung

Typ:String
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-Scope

Umfang der Rückerstattung, z. B. Reservierung

Typ:String
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Typ:SwitchParameter
Aliases:wi
Position:Named
Standardwert:None
Erforderlich:False
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

ICalculateRefundRequest

IReservationsIdentity

Ausgaben

ICalculateRefundResponse