取得 Enterprise 合約並 Microsoft 客戶合約保留成本和使用量Get Enterprise Agreement and Microsoft Customer Agreement reservation costs and usage

保留成本和使用量的增強資料適用于 Enterprise 合約 (EA) 以及 Microsoft 客戶合約 (MCA) 成本管理中的使用量。Enhanced data for reservation costs and usage is available for Enterprise Agreement (EA) and Microsoft Customer Agreement (MCA) usage in Cost management. 本文可協助您:This article helps you:

  • 取得保留購買資料Get reservation purchase data
  • 知道哪個訂用帳戶、資源群組或資源使用了保留Know which subscription, resource group or resource used the reservation
  • 針對保留使用量進行退款Chargeback for reservation utilization
  • 計算保留節省成本Calculate reservation savings
  • 取得保留的低使用量資料Get reservation under-utilization data
  • 攤銷保留成本Amortize reservation costs

Marketplace 費用會合併在使用量資料中。Marketplace charges are consolidated in usage data. 您可以從單一資料來源檢視第一方使用量、Marketplace 使用量和購買的費用。You view charges for first party usage, marketplace usage, and purchases from a single data source.

Azure 使用量資料中的保留費用Reservation charges in Azure usage data

資料分成兩個不同的資料集:「實際成本」 和「分攤成本」 。Data is divided into two separate data sets: Actual Cost and Amortized Cost. 這兩個資料集有何不同:How these two datasets differ:

實際成本 - 提供資料來調節您的每月帳單。Actual Cost - Provides data to reconcile with your monthly bill. 此資料具有保留購買成本和保留套用詳細資料。This data has reservation purchase costs and reservation application details. 透過這項資料,您可以知道哪個訂用帳戶或資源群組或資源在特定一天內收到保留折扣。With this data, you can know which subscription or resource group or resource received the reservation discount in a particular day. 收到保留折扣之使用量的 EffectivePrice 為零。The EffectivePrice for the usage that receives the reservation discount is zero.

分攤成本 - 此資料集與實際成本資料集相似,不同之處在於取得保留折扣之使用量的 EffectivePrice 是按比例計算的保留成本 (而不為零)。Amortized Cost - This dataset is similar to the Actual Cost dataset except that - the EffectivePrice for the usage that gets reservation discount is the prorated cost of the reservation (instead of being zero). 這可協助您知道訂用帳戶、資源群組或資源的保留使用量貨幣值,並可協助您在內部收取保留使用率的費用。This helps you know the monetary value of reservation consumption by a subscription, resource group or a resource, and can help you charge back for the reservation utilization internally. 此資料集也有未使用的保留時數。The dataset also has unused reservation hours. 此資料集沒有保留購買記錄。The dataset does not have reservation purchase records.

兩個資料集的比較:Comparison of two data sets:

資料Data 實際成本資料集Actual Cost data set 分攤成本資料集Amortized Cost data set
保留購買Reservation purchases 可在此檢視中取得。Available in this view.

若要取得此資料,請以 ChargeType = "Purchase" 篩選。To get this data filter on ChargeType = "Purchase".

請參閱 ReservationID 或 ReservationName,以得知費用適用的保留。Refer to ReservationID or ReservationName to know which reservation the charge is for.
不適用於此檢視。Not applicable to this view.

分攤資料中不會提供購買成本。Purchase costs aren't provided in amortized data.
EffectivePriceEffectivePrice 對於取得保留折扣的使用量,此值為零。The value is zero for usage that gets reservation discount. 此值為具有保留折扣之使用量的每小時依比例計算的保留成本。The value is per-hour prorated cost of the reservation for usage that has the reservation discount.
未使用的保留 (提供一天內保留未使用的時數和浪費的貨幣值)Unused reservation (Provides the number of hours the reservation wasn't used in a day and the monetary value of the waste) 不適用於此檢視。Not applicable in this view. 可在此檢視中取得。Available in this view.

若要取得此資料,請以 ChargeType = "UnusedReservation" 篩選。To get this data, filter on ChargeType = "UnusedReservation".

請參閱 ReservationID 或 ReservationName,以得知哪項保留未充分利用。Refer to ReservationID or ReservationName to know which reservation was underutilized. 這就是當天浪費多少保留。This is how much of the reservation was wasted in for the day.
UnitPrice (價位表中的資源價格)UnitPrice(Price of the resource from your price sheet) 可用Available 可用Available

Azure 使用量資料中的其他可用資訊已變更:Other information available in Azure usage data has changed:

  • 產品和計量資訊 - Azure 不會如同先前一樣,以 ReservationId 和 ReservationName 取代原先取用的計量。Product and Meter information - Azure doesn't replace the originally consumed meter with the ReservationId and ReservationName, as it did previously.
  • ReservationId 和 ReservationName - 它們是自己在資料中的欄位。ReservationId and ReservationName - They are their own fields in the data. 先前,它只能在 AdditionalInfo 下取得。Previously, it used to be available only under AdditionalInfo.
  • ProductOrderId - 保留訂單識別碼 (新增為其自己的欄位)。ProductOrderId - The reservation order ID, added as its own field.
  • ProductOrderName - 所購買保留的產品名稱。ProductOrderName - The product name of the purchased reservation.
  • 期限 - 12 個月或 36 個月。Term - 12 months or 36 months.
  • RINormalizationRatio - 可在 AdditionalInfo 下取得。RINormalizationRatio - Available under AdditionalInfo. 這是將保留套用至使用量記錄的比率。This is the ratio where the reservation is applied to the usage record. 如果已對您的保留啟用執行個體大小彈性,該功能即可套用至其他大小。If instance size flexibility is enabled on for your reservation, then it can apply to other sizes. 此值會顯示對使用量記錄套用的保留比率。The value shows the ratio that the reservation was applied to for the usage record.

請參閱欄位定義See field definition

使用 API 取得 Azure 使用量和保留使用量資料Get Azure consumption and reservation usage data using API

您可以使用 API 來取得資料,或從 Azure 入口網站下載資料。You can get the data using the API or download it from Azure portal.

您可以呼叫使用量詳細資料 API來取得新資料。You call the Usage Details API to get the new data. 如需術語的詳細資訊,請參閱使用量詞彙For details about terminology, see usage terms.

以下是對使用量詳細資料 API 的呼叫範例:Here's an example call to the Usage Details API:

https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{enrollmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodId}/providers/Microsoft.Consumption/usagedetails?metric={metric}&api-version=2019-05-01&$filter={filter}

如需有關 {enrollmentId} 和 {billingPeriodId} 的詳細資訊,請參閱使用量詳細資料 – 清單 API 一文。For more information about {enrollmentId} and {billingPeriodId}, see the Usage Details – List API article.

下表中關於計量和篩選的資訊有助於解決常見的保留問題。Information in the following table about metric and filter can help solve for common reservation problems.

API 資料的類型Type of API data API 呼叫動作API call action
所有費用 (使用量和購買)All Charges (usage and purchases) 以 ActualCost 取代 {metric}Replace {metric} with ActualCost
獲得保留折扣的使用量Usage that got reservation discount 以 ActualCost 取代 {metric}Replace {metric} with ActualCost

將 {filter} 取代為:properties/reservationId%20ne%20Replace {filter} with: properties/reservationId%20ne%20
未取得保留折扣的使用量Usage that didn't get reservation discount 以 ActualCost 取代 {metric}Replace {metric} with ActualCost

將 {filter} 取代為:properties/reservationId%20eq%20Replace {filter} with: properties/reservationId%20eq%20
分攤費用 (使用量和購買)Amortized charges (usage and purchases) 以 AmortizedCost 取代 {metric}Replace {metric} with AmortizedCost
未使用的保留報表Unused reservation report 以 AmortizedCost 取代 {metric}Replace {metric} with AmortizedCost

將 {filter} 取代為:properties/ChargeType%20eq%20'UnusedReservation'Replace {filter} with: properties/ChargeType%20eq%20'UnusedReservation'
保留購買Reservation purchases 以 ActualCost 取代 {metric}Replace {metric} with ActualCost

將 {filter} 取代為:properties/ChargeType%20eq%20'Purchase'Replace {filter} with: properties/ChargeType%20eq%20'Purchase'
退費Refunds 以 ActualCost 取代 {metric}Replace {metric} with ActualCost

將 {filter} 取代為:properties/ChargeType%20eq%20'Refund'Replace {filter} with: properties/ChargeType%20eq%20'Refund'

下載含有新資料的使用量 CSV 檔案Download the usage CSV file with new data

如果您是 EA 系統管理員,您可以從 Azure 入口網站下載包含新使用量資料的 CSV 檔案。If you're an EA admin, you can download the CSV file that contains new usage data from Azure portal. 這項資料無法從 EA 入口網站 (ea.azure.com) 取得,您必須從 Azure 入口網站 (portal.azure.com) 下載使用量檔案,才能看到新的資料。This data isn't available from the EA portal (ea.azure.com), you must download the usage file from Azure portal (portal.azure.com) to see the new data.

在 Azure 入口網站中,瀏覽至成本管理 + 帳單In the Azure portal, navigate to Cost management + billing.

  1. 選取計費帳戶。Select the billing account.
  2. 按一下 [使用量 + 費用] 。Click Usage + charges.
  3. 按一下 [下載] 。Click Download.
    顯示如何在 Azure 入口網站中下載 CSV 使用量資料檔案的範例Example showing where to Download the CSV usage data file in the Azure portal
  4. 在 [下載使用量 +費用] 的 [使用量詳細資料第 2 版] 底下,選取 [所有費用 (使用量和購買)] ,然後按 [下載]。In Download Usage + Charges , under Usage Details Version 2 , select All Charges (usage and purchases) and then click download. 針對 [分攤費用 (使用量和購買)] 重複執行。Repeat for Amortized charges (usage and purchases).

一般成本和使用量工作Common cost and usage tasks

下列各節是大部分人用來檢視其保留成本和使用量資料的一般工作。The following sections are common tasks that most people use to view their reservation cost and usage data.

取得保留購買成本Get reservation purchase costs

在實際成本資料中可取得保留購買成本。Reservation purchase costs are available in Actual Cost data. 針對 ChargeType = Purchase 篩選。Filter for ChargeType = Purchase. 請參閱 ProductOrderID,以判斷購買的保留訂單。Refer to ProductOrderID to determine which reservation order the purchase is for.

取得未充分利用的保留數量和成本Get underutilized reservation quantity and costs

取得分攤成本資料,並對 ChargeType = UnusedReservation 進行篩選。Get Amortized Cost data and filter for ChargeType = UnusedReservation. 您可取得每日未使用的保留數量和成本。You get the daily unused reservation quantity and the cost. 您可以分別使用 ReservationIdProductOrderId 欄位來篩選保留或保留訂單的資料。You can filter the data for a reservation or reservation order using ReservationId and ProductOrderId fields, respectively. 如果保留已 100% 利用,則記錄的數量為 0。If a reservation was 100% utilized, the record has a quantity of 0.

攤銷保留成本Amortize reservation costs

取得分攤成本資料,並使用 ProductOrderID 來篩選保留訂單,以取得保留的每日分攤成本。Get Amortized Cost data and filter for a reservation order using ProductOrderID to get daily amortized costs for a reservation.

保留的退款Chargeback for a reservation

您可以依訂用帳戶、資源群組或標記,將保留使用退款給其他組織。You can chargeback reservation use to other organizations by subscription, resource groups, or tags. 分攤成本資料提供下列資料類型的保留使用率貨幣值:Amortized cost data provides monetary value of a reservation's utilization at the following data types:

  • 資源 (例如 VM)Resources (such as a VM)
  • 資源群組Resource group
  • 標籤Tags
  • 訂用帳戶Subscription

取得退款的混合費率Get the blended rate for chargeback

若要判斷混合費率,請取得分攤成本資料並彙整總成本。To determine the blended rate, get the amortized costs data and aggregate the total cost. 針對 VM,您可以使用來自 AdditionalInfo JSON 資料的 MeterName 或 ServiceType 資訊。For VMs, you can use either MeterName or ServiceType information from AdditionalInfo JSON data. 將總成本除以用來取得混合費率的數量。Divide the total cost by the quantity used to get the blended rate.

稽核最佳保留使用以取得執行個體大小彈性Audit optimum reservation use for instance size flexibility

將數量乘以 AdditionalInfo 中的 RINormalizationRatioMultiple the quantity with the RINormalizationRatio, from AdditionalInfo. 結果會指出有多少小時的保留使用套用至使用量記錄。The results indicate how many hours of reservation use was applied to the usage record.

判斷保留節省成本Determine reservation savings

取得分攤成本資料並篩選保留執行個體的資料。Get the Amortized costs data and filter the data for a reserved instance. 然後:Then:

  1. 取得預估的隨用隨付成本。Get estimated pay-as-you-go costs. 如果保留折扣並未套用至使用量,將 UnitPrice 乘以 Quantity 值,以取得預估的隨用隨付成本。Multiply the UnitPrice value with Quantity values to get estimated pay-as-you-go costs, if the reservation discount didn't apply to the usage.
  2. 取得保留成本。Get the reservation costs. Cost 值加總,以取得您針對保留執行個體支付的貨幣值。Sum the Cost values to get the monetary value of what you paid for the reserved instance. 其中包含保留的已使用和未使用成本。It includes the used and unused costs of the reservation.
  3. 從預估的隨用隨付成本中減去保留成本,以取得預估節省的成本。Subtract reservation costs from estimated pay-as-you-go costs to get the estimated savings.

請記住,如果您有使用量過低的保留,ChargeType 的 UnusedReservation 項目會成為考量因素。Keep in mind that if you have an underutilized reservation, the UnusedReservation entry for ChargeType becomes a factor to consider. 擁有完全使用的保留時,可節省最多成本。When you have a fully utilized reservation, you receive the maximum savings possible. 任何 UnusedReservation 數量都會降低可節省的成本。Any UnusedReservation quantity reduces savings.

成本分析中的保留購買和分攤Reservation purchases and amortization in cost analysis

成本分析中可取得保留成本。Reservation costs are available in cost analysis. 根據預設,成本分析會顯示 [實際成本],這就是您帳單上顯示成本的方式。By default, cost analysis shows Actual cost, which is how costs will be shown on your bill. 若要檢視已細分並與使用權益的資源相關聯的保留購買,請切換為 [分攤成本]:To view reservation purchases broken down and associated with the resources which used the benefit, switch to Amortized cost:

顯示在成本分析中何處選取分攤成本的範例

依費用類型分組,以查看使用量、購買和退費的細目;或依保留分組以取得保留和隨選成本的細目。Group by charge type to see a break down of usage, purchases, and refunds; or by reservation for a breakdown of reservation and on-demand costs. 請記住,當您查看實際成本時,您會看到的唯一保留成本就是購買,但成本將會分攤給在查看分攤成本時使用權益的個別資源。Remember the only reservation costs you will see when looking at actual cost are purchases, but costs will be allocated to the individual resources which used the benefit when looking at amortized cost. 在查看分攤成本時,您也會看到新的 UnusedReservation 費用類型。You will also see a new UnusedReservation charge type when looking at amortized cost.

需要協助嗎?Need help? 與我們連絡Contact us

如果您有問題或需要協助,請建立支援要求If you have questions or need help, create a support request.

後續步驟Next steps

若要深入了解 Azure 保留項目,請參閱下列文章:To learn more about Azure Reservations, see the following articles: