Charge back Azure saving plan costs
Enterprise Agreement and Microsoft Customer Agreement billing readers can view amortized cost data for savings plans. They can use the cost data to charge back the monetary value for a subscription, resource group, resource, or a tag to their partners. In amortized data, the effective price is the prorated hourly savings plan cost. The cost is the total cost of savings plan usage by the resource on that day.
Users with an individual subscription can get the amortized cost data from their usage file. When a resource gets a savings plan discount, the AdditionalInfo section in the usage file contains the savings plan details. For more information, see View and download your Azure usage and charges.
View savings plan usage data for show back and charge back
- Sign in to the Azure portal.
- Navigate to Cost Management + Billing.
- Select Cost analysis from the left navigation menu.
- Under Actual Cost, select the Amortized Cost metric.
- To see which resources were used by a savings plan, apply a filter for Pricing Model and then select SavingsPlan.
- Set the Granularity to Monthly or Daily.
- Set the chart type to Table.
- Set the Group by option to Resource.
Get the data for show back and charge back
- Sign in to the Azure portal.
- Navigate to Cost Management + Billing.
- Select Export from the left navigation menu.
- Select Add.
- Select Amortized cost as the metric and set up your export.
The EffectivePrice for the usage that gets savings plan discount is the prorated cost of the savings plan, instead of being zero. It helps you know the monetary value of savings plan consumption by a subscription, resource group or a resource. It can help you charge back for the savings plan utilization internally. The dataset also has unused savings plan benefits.
Get Azure consumption and savings plan usage data using API
You can get the data using the API or download it from Azure portal.
You call the Usage Details API to get the new data. For more information about terminology, see Usage terms.
Here's an example call to the Usage Details API:
https://management.chinacloudapi.cn/providers/Microsoft.Billing/billingAccounts/{enrollmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodId}/providers/Microsoft.Consumption/usagedetails?metric={metric}&api-version=2019-05-01&$filter={filter}
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 common savings plan problems.
Type of API data | API call action |
---|---|
All Charges (usage and purchases) | Request for an ActualCost report. |
Usage that got savings plan discount | Request for an ActualCost report. Once you've ingested all of the usage, look for records with ChargeType = 'Usage' and PricingModel = 'SavingsPlan'. |
Usage that didn't get savings plan discount | Request for an ActualCost report. Once you've ingested all of the usage, filter for usage records with PricingModel = 'OnDemand'. |
Amortized charges (usage and purchases) | Request for an AmortizedCost report. |
Unused savings plan report | Request for an AmortizedCost report. Once you've ingested all of the usage, filter for usage records with ChargeType = 'UnusedSavingsPlan' and PricingModel ='SavingsPlan'. |
Savings plan purchases | Request for an AmortizedCost report. Once you've ingested all of the usage, filter for usage records with ChargeType = 'Purchase' and PricingModel = 'SavingsPlan'. |
Refunds | Request for an AmortizedCost report. Once you've ingested all of the usage, filter for usage records with ChargeType = 'Refund'. |
Download the usage CSV file with new data
If you're an EA admin, you can download the CSV file that contains new usage data from Azure portal.
In the Azure portal, navigate to Cost management + billing.
- Select the scope.
- For EA, your scope is the enrollment.
- For MCA, your scope is the billing account.
- Select Usage + charges.
- Select Download.
- In Usage Details, select Amortized usage data.
The CSV files that you download contain actual costs and amortized costs.
Need help? Contact us.
If you have Azure savings plan for compute questions, contact your account team, or create a support request. Temporarily, Microsoft will only provide Azure savings plan for compute expert support requests in English.
Next steps
To learn more about Azure savings plan usage data, see the following articles: