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.
Thanks
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.
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With