An Excel add-in for accessing Azure functions like usage aggregation reports (consumption) and rate card for standard Azure accounts, Enterprise Agreement (EA) accounts, and Cloud Solution Provider (CSP) accounts.
The add-in can be installed from the following location (ClickOnce installer updated by a CI build): http://billingtools.azurewebsites.net/excel/install/setup.exe
- Add-in Installation Prerequisites
- How to Utilize the Different Add-in Features
- Development Prerequisites
- Reference Information
- Windows 10 (might work on Windows 8.1 or Windows 7 but not tested)
- Excel 2016 (might work with Excel 2013 but not tested)
After you install the add-in, launch Excel and click on the Azure tab to view the add-in's ribbon.
The add-in can be used for fetching an authentication token that can be specified as part of the "Bearer" token passed to ARM API calls in the Authorization HTTP request header.
This functionality requires specifying the Tenant Id of the account and choosing between a Standard or a Cloud Solution Provider (CSP) account.
How To Get Your AAD Tenant ID:
The following page provides several ways you can find out what your Tenant ID (GUID) is.
The add-in can be updated so that the latest version of the ClickOnce installer is installed. The installation process takes less than a minute.
After the add-in is updated, close Excel and then relaunch it to take advantage of any new features or updates.
The add-in provides functionality that allows calling the billing APIs for getting usage (consumption report) and ratecards or price sheets for standard Azure accounts as well as Enterprise Agreement (EA) and Cloud Solution Provider (CSP) accounts.
- Select "Usage Report" from the Report Type dropdown.
- Select "Standard" from the Subscription Type dropdown.
- Specify the Tenant Id and the Subscription Id.
- Customize the Start and End Dates for the report (date format is: yyyy-mm-dd).
- Specify the Aggregation Granularity (Daily or Hourly).
- Optionally specify an AAD Application Id (or Client Id) and Application Key (or secret) to use instead of interactive authentication.
- Select the Environment (Commercial, GovCloud, China, or Germany).
- Optionally check the "Include Raw Payload" to see the raw JSON payload that the billing APIs return.
- Select "RateCard/PriceSheet" from the Report Type dropdown.
- Select "Standard" from the Subscription Type dropdown.
- Specify the Tenant Id and the Subscription Id.
- Optionally specify an AAD Application Id (or Client Id) and Application Key (or secret) to use instead of interactive authentication.
- Select the Offer Type. The default offer type is "Pay-As-You-Go".
- Specify the currency code, locale, and region for the RateCard.
- Select the Environment (Commercial, GovCloud, China, or Germany).
- Optionally check the "Include Raw Payload" to see the raw JSON payload that the billing APIs return.
- Select "Usage Report" from the Report Type dropdown.
- Select "Cloud Solution Provider" from the Subscription Type dropdown.
- Specify the Tenant Id and the Subscription Id.
- Customize the Start and End Dates for the report (date format is: yyyy-mm-dd).
- Specify the Aggregation Granularity (Daily or Hourly).
- Optionally specify an AAD Application Id (or Client Id) and Application Key (or secret) to use instead of interactive authentication.
- Select the Environment (Commercial, GovCloud, China, or Germany).
- Optionally check the "Include Raw Payload" to see the raw JSON payload that the billing APIs return.
- Select "RateCard/PriceSheet" from the Report Type dropdown.
- Select "Cloud Solution Provider" from the Subscription Type dropdown.
- Specify the Tenant Id and the Subscription Id.
- Optionally specify an AAD Application Id (or Client Id) and Application Key (or secret) to use instead of interactive authentication.
- Specify the currency code, locale, and region for the RateCard.
- Select the Environment (Commercial, GovCloud, China, or Germany).
- Optionally check the "Include Raw Payload" to see the raw JSON payload that the billing APIs return.
- Select "Usage Report" from the Report Type dropdown.
- Select "Enterprise Agreement" from the Subscription Type dropdown.
- Specify the Tenant Id.
- Customize the Start and End Dates for the report (date format is: yyyy-mm-dd).
- Specify the EA Enrollment Number and the EA API Key obtained from the EA Portal.
- Optionally specify the EA Billing Period (format: yyyy-mm). The default is the latest EA period.
- Select the Environment (Commercial, GovCloud, China, or Germany).
- Optionally check the "Include Raw Payload" to see the raw JSON payload that the billing APIs return.
- Select "RateCard/PriceSheet" from the Report Type dropdown.
- Select "Enterprise Agreement" from the Subscription Type dropdown.
- Specify the Tenant Id and the Subscription Id.
- Specify the EA Enrollment Number and the EA API Key obtained from the EA Portal.
- Optionally specify the EA Billing Period (format: yyyy-mm). The default is the latest EA period.
- Select the Environment (Commercial, GovCloud, China, or Germany).
- Optionally check the "Include Raw Payload" to see the raw JSON payload that the billing APIs return.
- Visual Studio 2015 or 2017
- Download VS Community: https://www.visualstudio.com/vs/community/
- Office Developer Tools for Visual Studio installed
- Usage: https://msdn.microsoft.com/en-us/library/azure/mt219003.aspx
- Ratecard: https://msdn.microsoft.com/en-us/library/azure/mt219005.aspx
- Invoice Download: https://docs.microsoft.com/en-us/rest/api/billing/
- Usage: https://docs.microsoft.com/en-us/azure/billing/billing-enterprise-api-usage-detail
- Price Sheet: https://docs.microsoft.com/en-us/azure/billing/billing-enterprise-api-pricesheet
- Balance & Summary: https://docs.microsoft.com/en-us/azure/billing/billing-enterprise-api-balance-summary
- Marketplace Store Charge: https://docs.microsoft.com/en-us/azure/billing/billing-enterprise-api-marketplace-storecharge
- Enabling API Access:
In order to be able to access the EA billing APIs programmatically, you must go to the EA portal, https://ea.azure.com, and generate an API key, as described on the following page: https://docs.microsoft.com/en-us/azure/billing/billing-enterprise-api
- Usage: https://msdn.microsoft.com/en-us/library/partnercenter/mt791774.aspx
- Ratecard: https://msdn.microsoft.com/en-us/library/partnercenter/mt774619.aspx
- Invoice: https://msdn.microsoft.com/en-us/library/partnercenter/mt712733.aspx
- Enabling API Access:
In order to be able to access the CSP billing APIs programmatically, you must go to the Partner Center portal and enable API access, as described on the following page: https://msdn.microsoft.com/library/partnercenter/mt709136.aspx. Please note that bullet item #2 under "Enable API access" on that page incorrectly states: "From the Dashboard menu, select Account Settings, then API." Instead, it should say: "From the Dashboard menu, select Account settings, then App Management."