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
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.