Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure billing data API

I had created some virtual machine on Azure. Is there any APIs, PowerShell scripts or any other way to get the following information in my ASP.NET application report page.

  1. Billing data for individual virtual machine.
  2. Usages data for individual virtual machine.

Thanks

like image 860
Vinay Rajput Avatar asked Nov 08 '13 07:11

Vinay Rajput


People also ask

What is Azure billing API?

The Azure Billing APIs allow you to view and manage your billing details programmatically. Operation groups listed below do not support all billing accounts. Supported billing accounts are specified in the table. To identify your billing account type, see Billing accounts and scopes.

Does Azure have an API?

Azure API Management is a hybrid, multicloud management platform for APIs across all environments. As a platform-as-a-service, API Management supports the complete API lifecycle.

How is billing done in Azure?

In the Azure portal, type subscriptions in the search box and then select Subscriptions. In the list of subscriptions, select the subscription. Under Billing, select Invoices. In the list of invoices, look for the one that you want to download then select the download symbol.

Where can I find my Azure billing?

Sign in to the Azure portal. Search on Cost Management + Billing. If you have access to just one billing scope, select Properties from the left-hand side. The Billing account type on the properties page determines the type of your account.


2 Answers

Azure now provides a way for customers to retrieve their usage and pricing details using the new Azure billing APIs: https://weblogs.asp.net/scottgu/new-azure-billing-apis-available

like image 147
Moinak Bandyopadhyay Avatar answered Oct 20 '22 15:10

Moinak Bandyopadhyay


Windows Azure does not provide an API for billing/cost metering at the moment. Amazon provides CloudWatch for this.

Windows Azure Pack (for on-premises/SP cloud using Hyper-V) does have an API for cost metering.

The API is one of the most requested features by customers. See this link http://feedback.windowsazure.com/forums/170030-billing/suggestions/1143971-billing-usage-api#comments

I guess Microsoft is working on an API. So at the moment your only option is downloading the CSV. Microsoft recently added a feature which allows to receive email alerts when the monthly costs or total costs reach a customer set threshold.

like image 34
user2968368 Avatar answered Oct 20 '22 15:10

user2968368