Billing API on azure

Do we have billing API on azure available, which can be used to to monitor or track the azure usage?

Thanks,

Shilpa

August 17th, 2010 11:58am

Hi Shilpa,

 

Currently Azure does not support any billing API.

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2010 12:39pm

There is no API but you can check your daily usage via the Microsoft Online Services Customer Portal: https://mocp.microsoftonline.com/site/default.aspx

Simply sign-in with the live ID that owns the account, click on "view my bills" on the right hand menu. You can see your monthly roll-up or daily totals for all the features you're consuming.

  • Marked as answer by Yi-Lun Luo Monday, August 23, 2010 9:21 AM
August 17th, 2010 1:51pm

Hi Team,

Are the Billing/ Quota related APIs available with the current release?

Thanks

Free Windows Admin Tool Kit Click here and download it now
October 19th, 2012 4:58am

Not yet. We are reviewing this feature.
October 22nd, 2012 8:51pm

Are they available now? I desperately want to be able to provide dashboards for my business about azure usage that can then automatically connect to our financial systems etc - running reports myself every week is extremely tiresome!
Free Windows Admin Tool Kit Click here and download it now
April 7th, 2013 12:31pm

This is the partner I've been working with on this: http://www.hanuinsight.com/
August 27th, 2014 12:55pm

We have recently launched Azure Usage and Azure RateCard APIs - please check out these resources:

Azure Cloud Cover Episode on Azure Billing APIs

https://channel9.msdn.com/Shows/Cloud+Cover/Episode182-Usage-and-RateCard-APIs-with-Moinak-Bandyopadhyay

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 (C# samples)

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

Find your OfferDurableID to call the RateCard API

https://account.windowsazure.com/Subscriptions -> Select subscription -> Bottom right corner

Find all OfferDurable IDs to get rates from RateCard APi

http://azure.microsoft.com/en-us/support/legal/offer-details/

 

MS-AZR- + OfferNumber from the table.

Powershell Commandlet

get-UsageAggregates

 

Switch-AzureMode -Name AzureResourceManager

Add-AzureAccount

Select-AzureSubscription -SubscriptionId 'YOUR-AZURE-SUB-ID'

$aggregate= get-UsageAggregates -ReportedStartTime "6/1/2015" -ReportedEndTime "6/18/2015"

$aggregate

 

 

Nuget package

https://www.nuget.org/packages/Microsoft.Azure.Commerce.UsageAggregates/

CLI

Once you install CLI, follow these steps:

 

Azure login 'YOUR-IDENTITY'

Azure account set 'YOUR-SUBSCRIPTION-NAME'

Azure config mode arm

Azure  usage list --reportedStartTime 5/1/2015 --reportedEndTime 5/4/2015 (You can configure your own datetime)

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

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

Other recent topics Other recent topics