Azure Reserved Instances — Ingestion and Cost Allocations
Microsoft Azure released Reserved Instances (RIs) in late 2017. The costs associated with these RIs can be considerable and will need to be accounted for when considering your Azure spend.
Applies to: Cloud Cost Management on TBM Studio 12.5+.
Overview
Currently, RI charges are not reflected in the Azure EA bill and need to be ingested separately and then allocated to the appropriate resources (VMs) such that the effective costs of those VMs are appropriately calculated.
This guide provides the steps necessary to ingest your organization’s RI charges and accurately allocate those charges to the appropriate resources in your Azure EA bill.
Implications in Adaption:
- Access Reserved Instance charges — RI costs are not reflected in the Azure EA bill and will need to be brought into Apptio via a Datalink (Classic) REST connector.
- Amortization and allocation of Reserved Instance costs — RI costs will need to be amortized over the term of the RI and then allocated to the resources in the bill that benefit from those RI purchases.
Obtain Azure EA authentication credentials
This connector will use the Azure EA enrollment number and API Access Key. Both can be obtained via your Azure EA Portal. For more instructions, see Complete Azure configuration dependencies.
Procedure
- Navigate to DataLink.
- In your default agent, click New Connector.
- Select a REST Service connector.
- Name the connector.
-
In the REST URL field, enter the following API URL, replacing the
enrollment ID
with your Azure EA enrollment ID:https://consumption.azure.com/v3/enrollments/{enrollment id}/reservationcharges
. - Leave the Requires Authentication field blank.
- Check the Has Headers checkbox.
-
In Headers Key field, enter
Authorization
. -
In Headers Value field, enter
bearer
(with a space at the end), then paste in your Azure EA API Access Key. - Select the Has Query Arguments checkbox.
-
In the first Query Arguments Key field, enter
startDate
and, in the corresponding Value field, enter the beginning date of the time frame over which your RIs were purchased. Make this date early enough to cover the start date of any active RIs. - Add a new query argument.
-
In the new Key/Value line, enter
endDate
in the Key field and enter the last day of the current month. You cannot enter a value beyond that date. This means that you will need to update theendDate
value prior to running the connector in subsequent months. (Apptio is working on an improved solution that will allow this to be run on a periodic basis without manual intervention.) - Select the Time Period for which this connector is to be run, either Previous or Current Month.
- Ensure that the JSON Passthrough checkbox is checked.
- Enter your Apptio Destination details.
- Enable Notifications.
- Schedule the connector as necessary.
Append the RI Charges dataset to the Apptio Master Data
Procedure
Configure allocation keys
Procedure
- Click the Reserved Instances object in the Project Explorer, then click Check Out.
- Click Add Allocation, then name the allocation “Reserved Instances Azure”.
-
Add the following filter on the From step:
Reserved Instances Master Data.Source Equals Purchased
- On the Allocate step, click the Cloud Invoice and Fixed RI Cost models.
- On the Using step, click Weighted Value.
- On the To step, click Cloud Service Provider.
- On the Distributing step, select Weight By and Weight by a Table column. Use the Cloud Service Provider Master Data.Usage Qty for the weighting column.
- Select Data Relationship. For the Source Column, use Reserved Instances Master Data.Reserved Instance ID”.
- For the Destination column, use Cloud Service Provider Master Data. Reservation Order ID.
- Click OK and check in the changes.
Update visibility and add provider on the Reserved Instances report
Procedure
Verify that Azure RI costs are flowing
Procedure
- On the model, click Reserved Instances > Cloud Invoice. Validate that the driver
into Reserved Instances included Azure Costs. In addition, validate that the
Reserved Instances Azure allocation has the correct costs. The Reserved Instances object is built to include both cash-based and amortized costs to allow reporting on both. Therefore, if you are viewing a month where the Azure RI was purchased, the expected allocation is that the Reserved Instances object will include both the entire purchased amount and the amortized amount. However, only the amortized amount is allocated to Cloud Service Provider so that the correct values are displayed on the reports. Therefore, there will be fallout in the allocation between RIs and Cloud Service Provider.
- On the Reserved Instances report, validate that Azure RIs are appearing with the correct values.