Questions tagged [azure-billing-api]

Use this tag for questions related to Azure Billing APIs, which is used to pull usage and resource data into your preferred data analysis tools. The Azure Resource Usage and RateCard APIs can help you accurately predict and manage your costs. The APIs are implemented as a Resource Provider and part of the family of APIs exposed by the Azure Resource Manager.

Useful Links:

  1. MSDN
  2. Documentation
  3. Code samples - Github
120 questions
20
votes
2 answers

How to get resource name from Azure Resource GUID?

I have 2 azure subsription. Today,I found that suddently 2000 Rs. didcuted from my one of the subsription. When I have started insvestigating for the resource which has consumed maximun unit, I found on preview portal that perticular Resource Guid…
Swapnil Mahajan
  • 251
  • 1
  • 2
  • 7
18
votes
1 answer

Cannot turn on "Multi-Tenant" for Azure AD Authentication

I've gone through several guides and spent several hours, but I can not seem to get Azure AD authentication working in my simple app. I am trying to turn on "Application is multi-tenant" in my Azure Active Directory, and I get the following…
Vikram
  • 6,865
  • 9
  • 50
  • 61
7
votes
2 answers

How to Calulate ACU required by my Web APP

I have a Web APP in Azure PAAS service App Service. App service plan uses a unit named as "ACU". Is there any way by which i can calculate the number of ACU required by my web app. As i have to do billing calculations so i need to prove that…
Gaurav Moolani
  • 342
  • 1
  • 3
  • 12
7
votes
1 answer

Azure Billing Usage API returns 401 Unauthorized

I am using Azure REST API for fetching Billing Usage and Ratecard details. To acquire Token using AcquireToken() Method, initially I used only Client Id which then asks for User Credentials in login window. However, I am looking for Non-Interactive…
Tejas
  • 83
  • 11
6
votes
2 answers

Not able to get Azure Billing Account Id

I need to get Usage Details at Billing Account Scope for that firstly I used this API but It returns an empty value. I used the Bearer Access token for hitting this API.Is anything other than this am I missed? Postman Request attached as screenshot
6
votes
5 answers

Azure billing data API

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. Billing data for individual virtual machine. Usages data for individual…
Vinay Rajput
  • 362
  • 1
  • 4
  • 13
5
votes
2 answers

Integrate grafana and Azure billing

I need to integrate Azure billing with Grafana Is this possible? How can I do it? I have searched but i dont find any solution
exitista
  • 563
  • 2
  • 10
  • 21
5
votes
1 answer

What to do when Meter ID is not correct in usage data from Azure Billing Usage API

I am getting wrong Meter ID from Azure Usage Billing API. The exact response entry which is wrong is shown below. Note that it is text "1core" instead of a Guid. Therefore I can't find it's rate from the Rate Card API data. I also noticed that many…
Aman Sharma
  • 1,930
  • 1
  • 17
  • 31
5
votes
3 answers

How to get Azure offer details using the API?

I was trying to query the usage and billing API that Azure recently recently and saw that I can use the following API to get the rate…
jobin
  • 2,600
  • 7
  • 32
  • 59
4
votes
3 answers

Show azure cost analysis data using Azure billing API/SDK

In Azure portal ,if one subscription is selected ,the cost analysis can be viewed like the following screenshot I want to programmatically fetch the information the like the one displayed above may be using using some python SDK API/REST API. If…
Soumen
  • 121
  • 1
  • 3
  • 14
4
votes
0 answers

Data request for Azure Resource usage api failed

Using Resource usage Api to calculate resource consumption cost. Sometimes exception occurred as "The data requested has not yet been processed. Please try again in 5 minutes" Code used: string usageUrl = String.Format("{0}/{1}/{2}/{3}",…
s p
  • 789
  • 1
  • 6
  • 23
4
votes
3 answers

Azure Credit Balance

I'm new to Azure API's and am trying to create a simple interface to grab the remaining credits on a handful of azure accounts that I manage. I started doing this using vbs as that's the only language I'm really familiar with. I ran into several…
Zehnpai
  • 51
  • 1
  • 3
3
votes
3 answers

Billing calculation of rates

Azure Rate Card API returns a MeterRates field (see documentation). Azure UsageAggregate gives a quantity (see documentation). According to the azure support page. This is the forum to ask questions. So, how are meter rates applied? Example meter…
Steve Brownell
  • 1,310
  • 1
  • 12
  • 18
3
votes
1 answer

Azure billing API : Resource RateCard & Resource Usage

I need to monitor our Azure spending for each of our client environments (one subscription, multiple resource group). In my research, I’ve found 2 API that I can use : Resource RateCard (https://msdn.microsoft.com/fr-fr/library/azure/mt219005)…
Lez4
  • 55
  • 1
  • 5
2
votes
2 answers

Azure cost analysis for a particular subscription using Python SDK

So I'm trying to automate fetching the current cost and cost forecast (Like it is shown under cost analysis for a particular subscription) for a particular subscription using python SDK but I haven't been able to find a single API that does this…
1
2 3 4 5 6 7 8