API for Billing
Is there a billing API that can be used to track the azure usage?
March 12th, 2012 8:50pm

Not at this time. You have to log into  https://mocp.microsoftonline.com with your Live ID to see whats going on from time to time. This thread  has good explanation on how to decipher the bill... 

Paddy Srinivasan
www.opstera.com 
Windows Azure Monitoring, Management & Smart Scaling 

  • Proposed as answer by Vitor Faria Tomaz Wednesday, March 14, 2012 11:15 AM
  • Unproposed as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
  • Marked as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2012 9:23pm

Not at this time. You have to log into  https://mocp.microsoftonline.com with your Live ID to see whats going on from time to time. This thread  has good explanation on how to decipher the bill... 

Paddy Srinivasan
www.opstera.com 
Windows Azure Monitoring, Management & Smart Scaling 

  • Proposed as answer by Vitor Faria Tomaz Wednesday, March 14, 2012 11:15 AM
  • Unproposed as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
  • Marked as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
March 12th, 2012 9:23pm

Not at this time. You have to log into  https://mocp.microsoftonline.com with your Live ID to see whats going on from time to time. This thread  has good explanation on how to decipher the bill... 

Paddy Srinivasan
www.opstera.com 
Windows Azure Monitoring, Management & Smart Scaling 

  • Proposed as answer by Vitor Faria Tomaz Wednesday, March 14, 2012 11:15 AM
  • Unproposed as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
  • Marked as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2012 9:23pm

Not at this time. You have to log into  https://mocp.microsoftonline.com with your Live ID to see whats going on from time to time. This thread  has good explanation on how to decipher the bill... 

Paddy Srinivasan
www.opstera.com 
Windows Azure Monitoring, Management & Smart Scaling 

  • Proposed as answer by Vitor Faria Tomaz Wednesday, March 14, 2012 11:15 AM
  • Unproposed as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
  • Marked as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
March 12th, 2012 9:23pm

Not at this time. You have to log into  https://mocp.microsoftonline.com with your Live ID to see whats going on from time to time. This thread  has good explanation on how to decipher the bill... 

Paddy Srinivasan
www.opstera.com 
Windows Azure Monitoring, Management & Smart Scaling 

  • Proposed as answer by Vitor Faria Tomaz Wednesday, March 14, 2012 11:15 AM
  • Unproposed as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
  • Marked as answer by RucheeG Wednesday, March 14, 2012 8:45 PM
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2012 9:23pm

Thanks - disappointed that there is no API!
March 13th, 2012 5:50pm

Ruchee (and everyone else) please upvote this response if you are interested in an API. I am investigating this right now from the Microsoft side.
Free Windows Admin Tool Kit Click here and download it now
April 6th, 2012 6:04pm

Thanks Bilal! We are really interested in this functionality - any idea when can we expect this API?
April 25th, 2012 9:58pm

Ruchee, I can't promise a date but it's high on our list of "most asked for" features
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2012 11:24pm

Hi Bilal,

Lot of good stuff in June 7th release - any updates on the billing side?

Thanks,

Ruchi

June 19th, 2012 8:43pm

From the billing side, we now support Azure purchases in 48 new countries. Plus, we added the ability to download your usage history over a longer period of time. More coming :)

Free Windows Admin Tool Kit Click here and download it now
June 20th, 2012 4:45pm

Hi RucheeG,

We have released two Azure Billing APIs, that can help you retrieve Azure consumption details and the list of resources sold along with their associated rates.

Here is a set of helpful pointers that you can get started with:

High-level
  article describing the IT Financial Management scenario with Azure Billing
  APIs

https://azure.microsoft.com/en-us/documentation/articles/billing-usage-rate-card-overview/
 

ScottGu's
  blog post describing the Azure Billing APIs

https://weblogs.asp.net/scottgu/new-azure-billing-apis-available

Partner
  Solution 1: Cloudyn

https://azure.microsoft.com/en-us/documentation/articles/billing-usage-rate-card-partner-solution-cloudyn/
 

Partner
  Solution 2: Cloud Cruiser

https://azure.microsoft.com/en-us/documentation/articles/billing-usage-rate-card-partner-solution-cloudcruiser/
 

Azure
  BillingCodeSamples GitHub Repo

https://github.com/Azure/BillingCodeSamples
 

Usage
  REST API Reference on MSDN

https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c
 

RateCard
  REST API Reference on MSDN

https://msdn.microsoft.com/library/azure/1ea5b323-54bb-423d-916f-190de96c6a3c
 

please shoot me an email at mobandyo@microsoft.com if there is anything else that we can help with.

July 8th, 2015 3:29pm

Hello, 

     I was able to get the Usage API working, but am getting invalid expression query for the Billing API. I have followed instructions from the Microsoft site. The query I am using is as follows:

"https://management.azure.com/subscriptions/$subscriptionId/providers/Microsoft.Commerce/RateCard?api-version=2015-06-01-preview&`$filter=OfferDurableId eq MS-AZR-0023P' and Currency eq USD and Locale eq en-US and RegionInfo eq US"

I am using powershell to construct the REST API stuff as referenced from: http://blogs.technet.com/b/keithmayer/archive/2015/06/28/export-azure-subscription-usage-with-new-billing-api-and-powershell.aspx 


Free Windows Admin Tool Kit Click here and download it now
July 9th, 2015 4:42pm

Hi Moinak,
Kindly please let me know if the token generation which is used for authorization on the new Billing api can be done in Java.
i dont see for Active directory with native client applications there are any samples available over the internet kindly please let me know with any samples for generating the authorization using Java for consuming the new Billing API.

Thanks in Advance,
Athipathy

July 10th, 2015 6:27am

@Athipathy- Can you try the AD samples here:

https://github.com/AzureAD/azure-activedirectory-library-for-java

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 2:53pm

@Sirry - there seems to be an extra ' before filter.

this is a valid query: https://management.azure.com/subscriptions/{subscription-Id}/providers/Microsoft.Commerce/RateCard?api-version=2015-06-01-preview&$filter=OfferDurableId eq MS-AZR-0003p and Currency eq USD and Locale eq en-US and RegionInfo eq US

September 9th, 2015 2:54pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics