Entitlements vs Billing

It appears that there is no way of achieving what I want through the portals.  So let me elucidate my requirements.

 

I am trying to work out a process of costing various usages of Azure.  Having done that I will work out what resources I need, and purchase enough.  However I know that such costings are always an estimate and what I need to do is to monitor resources allocated against resources used on an ongoing basis.

 

This might result in purchasing more resources or it might result in deciding Azure is not cost effective compared to some other solution.  Note that if my MSDN benefits are insufficient and I purchase more resources I would not be able to go to the MSDN  benefits page you mention.

 

Clearly there is no way of doing this through either the management or customer portals.  So my question to you is whether there are Azure API’s I can use to acquire the resource and usage information and consolidate this info?

 

I would be surprised if any commercial usage of Azure did not require such information.

 

 

Regards

Andy
April 30th, 2011 8:28am

I remember seeing simialr requests for Azure billing API in the past on this forum and this seems to be not available currently and  I have not heard of any time commitment to make this feature available in future.

I guess, the best thing we could do is to vote for requesting this feature here and bring it to the top of the table.

HTH.

Free Windows Admin Tool Kit Click here and download it now
April 30th, 2011 12:45pm

This API must exist for the billing system to exist.

Andy

April 30th, 2011 6:35pm

that kind of API, (if even existing) is not accessible (yet). Dot. But you can get an daily updated overview on the billing portal, shouldn't be to complex parsing the output for further automated processing.
  • Marked as answer by Wenchao Zeng Monday, May 09, 2011 3:43 AM
Free Windows Admin Tool Kit Click here and download it now
May 1st, 2011 5:29pm

Doesn't help.  Seeing what my current bill is only 0.5 of the requirement.  And anyway bodges like this seem bizarre in the context of the sales pitch for Azure.
May 1st, 2011 6:52pm

Hi andyksmith,

I understand it's a bit frustrating that there is no such public Billing API provided at this moment. We're aware of this request and relevant work is being done. Currently what perpetualKid suggested is the best alternative. You may utilize the following library to quickly build up an application to do automated processing:

http://watin.org/

 

Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2011 2:44am

Folks - there are two Azure APIs available for your use - Azure Usage API and Azure RateCard API:

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)

September 9th, 2015 2:55pm

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

Other recent topics Other recent topics