Do we have billing API on azure available, which can be used to to monitor or track the azure usage?
Thanks,
Shilpa
- Moved by Brian AurichMicrosoft employee Saturday, October 02, 2010 4:56 AM migration (From:Windows Azure - Archive)
Technology Tips and News
Do we have billing API on azure available, which can be used to to monitor or track the azure usage?
Thanks,
Shilpa
Hi Shilpa,
Currently Azure does not support any billing API.
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.
Hi Team,
Are the Billing/ Quota related APIs available with the current release?
Thanks
We have recently launched Azure Usage and Azure RateCard APIs - please check out these resources:
|
Azure Cloud Cover Episode on Azure Billing APIs |
|
|
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 |
|
|
Partner Solution 2: Cloud Cruiser |
|
|
Azure BillingCodeSamples GitHub Repo (C# samples) |
|
|
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) |