Azure billing works on an interval of every 12 hours. We pull the detailed usage and the detailed summary report. There is little difference between the two bill types but the summary is needed to report on Azure credits and is why we use the summary report in CloudHealth.
There are three different types of Azure licensing types. The first type is Pay As You Go (PAYG) and is the equivalent to a standalone AWS account. Pay As You Go subscriptions require only a Service Principal to be configured. We pull the bill from the PAYG rate card and charge them base Microsoft prices (which is the on-demand equivalent in AWS).
The Second type is an Enterprise Agreement or EA. EA's are contract commits to Microsoft to enable certain pricing breaks and discounts on a per case basis. We use the API to pull the usage bill from Microsofts EA API. They almost always have a set amount of currency committed to Microsoft.
The Third type is CSP or Cloud Service Provider. CSP enables partners to have end-to-end ownership of the customer lifecycle and relationship for Microsoft Azure. We obtain the usage bill from Microsofts CSP API.
Licensing and Terminology for Configuration:
- Part of the Enterprise Agreement
- Primary source of billing in EA configurations
- Is accessed in a separate portal and is not configured when configuring PAYG
Azure Service Principal
- Credentials for the CH to see into the Azure environment. (Think IAM Role in AWS)
- Primary source of API access to resource Metadata within CH
- Can be the billing data source for PAYG
- Microsoft’s partner center
- Gathers list of customers and imports them into CloudHealth via the CSP API
- Is contained in separate portal
For more information on Azure billing, see: How Azure Customer Bills are Processed