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.

azure-billing-api
Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Azure losing CREDITSSS

I am using Microsoft student plan for azure for a project at my college. I have already deleted the resource group as well as some Network Reacher resource group. I am having a presentation after a ...
Don Penguini's user avatar
0 votes
2 answers
82 views

Shutting down azure functions app if cost threshold is passed

I am trying to set up a mechanism to shut down my Azure Functions app if a cost alert gets thrown. I have created an automation account, a powershell runbook, and an action group. I went into Cost + ...
afriedman111's user avatar
  • 2,161
0 votes
0 answers
133 views

Azure price sheet api not returning the savings plan price details

I am using the below api to get Azure custom discounted prices:- GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default?api-version=2023-...
nik's user avatar
  • 134
0 votes
1 answer
103 views

get-azconsumptiondetails won't work for some resources

I'm using get-azconsumptionusagedetails in Powershell to get consumption of all of the resources for azure sponsorship acc, but for some of the resources it won't show anything (no error either), even ...
amino555's user avatar
0 votes
1 answer
163 views

Azure Billing API Issue

I am using the Azure Invoice API which has asks for the following parameters https://management.azure.com/providers/Microsoft.Billing/billingAccounts/**{billingAccountName}**/billingProfiles/**{...
MEHRAB VERMA's user avatar
0 votes
0 answers
58 views

Issue Retrieving Transactions with Microsoft.Azure.Management.Billing for Multiple Subscriptions

I'm facing an issue while trying to retrieve transactions using Microsoft.Azure.Management.Billing for a particular account. This account has multiple subscriptions attached to it. On the other hand, ...
Lakmal's user avatar
  • 859
0 votes
1 answer
269 views

Azure cost management API does not respect the desired date filters

I am writing a program in .NET to retrieve the usage cost of a subscription. The structure of the HTTP request is this: https://management.azure.com/subscriptions/(here_goes_the_subscription_number)/...
Carlos Zamora's user avatar
0 votes
1 answer
616 views

How to resolve 'RBACAccessDenied' error when using Azure API to query billing account costs?

I'm new here and I have a question about this access problem. I create an app from my Azure AD, this app I used for read the costs of billings account, I use this API query usage: https://learn....
Lucas Duran's user avatar
0 votes
2 answers
120 views

Azure Consumption API Parameters

This is a segment of Azure consumption API result for my azure account. I am stuck in the understanding of "usageQuantity": 0.000000100582838 parameter(whether it's a CPU ultilization or ...
Chauhan240's user avatar
1 vote
1 answer
764 views

az rest command to get Usage Details for previous months/dates. (Microsoft.Consumption)

I have the following URL which is used to get the UsageDetails from Microsoft. consumption az rest --method GET --url 'https://management.azure.com/subscriptions/{subscription}/providers/Microsoft....
Yashas .M's user avatar
0 votes
1 answer
518 views

How to get monthly cost data from Azure using Python SDK?

I'm trying to get monthly cost data from Azure using Azure SDK for Python, but Microsoft Documentation seems very confusing and outdated, without examples. I need to create a monthly evolution chart ...
Yuri's user avatar
  • 13
0 votes
2 answers
391 views

How to trigger a single logic app for send different emails as per Azure Budget Action Group conditions

I have created an Azure Budget which is mapped to an Action group. I have created a Logic App to send different emails with different email structures on different budget threshold example 50% , 75% ...
Sahil Wadehra's user avatar
0 votes
1 answer
122 views

Azure Form Recognizer Billing

I have .Net 6 API deployed on Azure with one method Recognize. This method calls Azure Form Recognizer endpoint with invoice PDF and its returning structured object. With this object, I do something ...
Milan Blažek's user avatar
1 vote
2 answers
727 views

azure amortized cost usagestart and usageend date error while passing it as variable

I am trying to pull azure amortized cost at subscription level but when I pass usage_start_date and usage_end_date in hardcoded way I am able to pull data : Example : "https://management.azure....
kakaji's user avatar
  • 181
-2 votes
1 answer
827 views

Is it possible to have two different billing Currences under single tenant?

I have a 4 subscriptions with billing currency of USD. and recently purchased a free trial subscription with INR as a billing currency. How Azure allowed this? Is this supported in Azure having ...
DAK's user avatar
  • 344
1 vote
1 answer
837 views

How to identify where the below azure transactions are coming from? How to estimate the cost associated with it?

We have a azure blob storage container which is NFS mounted on linux Virtual Machines. This container has blobs in Hot tier, Cool tier and Archive tier. I see a lot of transactions (per day) in Azure ...
user1550623's user avatar
-1 votes
1 answer
150 views

Azure Service Principle Creation failing while configuring Harness Cost management report

I am configuring Harness Cost Management report for my Azure Dev subscription and getting the below error while creating the service principle. When using this permission, the backing application of ...
Rajasekhar M's user avatar
2 votes
2 answers
1k views

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 ...
Enoptix's user avatar
  • 23
-2 votes
1 answer
336 views

Use soon to expire Azure credits

I have a question regarding the free azure credits. I registered on 11/19/2021 and used around 80$ (60EUR) of services during December and my credits are going to expire on the 12/19/2021. I want to ...
Imperial A's user avatar
0 votes
1 answer
476 views

Unable to get Azure scopes for azure cost consumption apis

I need to consume azure consumption apis for a php project. But i'm completely messed up with scopes. Steps i followed : Registered an application and got application id. Created client secret curl -...
Sourabh Bhutani's user avatar
1 vote
0 answers
267 views

How to get invoice details for modern CSP (CSP Azure Plan)

I want to show cost management details so for that i need to get invoice details for Modern CSP (Azure Plan). So can someone tell me is there any API or .Net SDK available to get details.
DnyaneshSurya's user avatar
2 votes
1 answer
414 views

get azure subscription belongs to what type for example Pay As you Go, MCA, EA, CSP

I tried to fetch azure subscription belongs to what type for example Pay As you Go, MCA, EA, CSP by using REST API But I am not able to find the appropriate API for this case. I used Consumption Usage ...
DAK's user avatar
  • 344
0 votes
0 answers
380 views

Azure cost analysis and invoices - exchange rates

when I use the Consumption usage details API I am getting usage cost details day wise. I saw that azure uses USD for billing and show invoices in the customer's local currency link so that How ...
DAK's user avatar
  • 344
2 votes
2 answers
2k views

In the azure consumption usage details api, what is the difference between the metric types actualcost, usagecost, and amortizedcost?

I went through this document but not able to get exact difference https://learn.microsoft.com/en-us/azure/cost-management-billing/reservations/understand-reserved-instance-usage-ea
DAK's user avatar
  • 344
0 votes
1 answer
203 views

Getting data out of the Azure Cost Centre

Looking for a method to export data outside of the Azure Cost Centre into a storage account. This can't be done because of network restrictions on a storage account (i.e. firewall rules with selected ...
user13696433's user avatar
0 votes
1 answer
123 views

Azure Logic Apps connectors for Azure Billing and reservations

I tried to search in the standard connectors if there was something related to the Billing and Reservations APIs but nothing is there. Do I need to create a customer connector?
mdurini's user avatar
1 vote
2 answers
816 views

alert on azure cost before budget has been reached

Background: I've been searching for a way to properly monitor and create alerting on Azure cost for a resource group. All current monitoring and alerting seem to be related to budgets. You can set a ...
PaulVrugt's user avatar
  • 1,812
0 votes
0 answers
649 views

How to link Azure Resource sku api data to Azure consumption pricesheet api meter data?

Background: I'm trying to build an app for internal use to display prices for Azure Virtual Machines based on certain criteria, e.g. I want to specify that I require a VM with 4GB of ram, and then ...
dpravo's user avatar
  • 13
-2 votes
1 answer
1k views

How to get the Cost of Azure Managed Disk based on the VM Size using powershell or API?

I am looking for a PowerShell cmdlet or API, which can give me the cost of the Managed Disk as we can see from the Azure Portal
Krishna Avinash Chunduru's user avatar
1 vote
1 answer
177 views

What business logic is the Azure Cost Export applying?

I want to get the most up to date actual costs in Azure. There seem to be 4 ways of doing this with different results: Export Costs to Storage Account Cost Management API Billing API Consumption API ...
Rodney's user avatar
  • 5,507
1 vote
0 answers
1k views

Azure Application Insights Tags not showing up in Cost Analysis

We have Azure Application Insights deployed on our environment and we have put 2 tags to every resource App-Name and Env-Name. All resources are tagged and appearing when we pull the Cost Analysis ...
user42012's user avatar
  • 772
1 vote
1 answer
508 views

Get total cost from Azure billing Invoice CSV file

I have added a schedule export for my Azure Resource Group Billing invoice on a monthly basis. The invoice generated will consist of the billing details of the Last Month and will store the .CSV file ...
SD4's user avatar
  • 459
0 votes
1 answer
713 views

Schedule-Export Billing Invoice of Azure Resource-Group cost analysis monthly

I want to automatically get the Billing Invoice details of my Azure Resource-group on a monthly basis using the Schedule Export feature in Azure Cost-Management. I'm able to create a monthly export. ...
SD4's user avatar
  • 459
0 votes
1 answer
230 views

how to develop Azure CSP billing Api in azure functions using .net core

I am trying to develop an API for azure billing for CSP in azure functions using .net core 3 any guidance will be appreciated. how do I call a billing API from the azure function?
shawn kritic's user avatar
0 votes
1 answer
182 views

how to find ServiceName in Azure Cloud billing export

In Azure Cost analysis console, we have the option to filter by Service Name. The same Column is NOT there in the billing CSV export I’m getting from Azure. Does anyone know how to filter Service name ...
Gupta G L's user avatar
2 votes
2 answers
1k views

Azure Consumption Usage API - Filter Not Working

I have an issue trying to filter usages for Azure Consumption, as specified in the official documentation, based on: properties/resourceName eq '{resourceName} The complete URI is: $...
bozx's user avatar
  • 53
1 vote
1 answer
156 views

Azure - Usage Consumption API - Incomplete Dates

I am trying to get the consumption usage details for a subscription in a given billing period but I am not getting complete results as if I would be getting by using PowerShell: To get usage details ...
bozx's user avatar
  • 53
2 votes
1 answer
1k views

Error message when creating query against Resource Manager, in Azure Monitor Workbook

I'm trying to add a query into a Workbook in Azure Monitor that queries for the month-to-date usage costs for my Azure subscription. When I construct the query and run it, I receive the following ...
user avatar
0 votes
1 answer
201 views

Daily billing status for CSP plan

we are using a subscription bought from an CSP. and we want to know daily billing and consumption . But CSP vendor says that we have to buy a 3rd party application to get daily billing consumption. Is ...
Gaurav Moolani's user avatar
8 votes
2 answers
17k views

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 ...
Gaurav Moolani's user avatar
3 votes
2 answers
3k views

azure billing REST API

I'm trying to get Azure Billing data of my subscription data by using Powershell. mainly checked the Doc from MSDN https://learn.microsoft.com/ja-jp/rest/api/consumption/usagedetails/list and a sample ...
Eric Chen's user avatar
0 votes
2 answers
377 views

Not able to Access Billing info using Azure CLI

I created a service principal using rbac and using the subscription id and I was able to login and all CLI calls with Azure using this sp and this login (creating SP az ad sp create-for-rbac -n "...
Manjunath M Gowda's user avatar
0 votes
1 answer
168 views

How to get Billing details including usage details and tax

I want to get Billing Details including Usage details and tax info ( cost including tax ). I used GET https://management.azure.com/{scope}/providers/Microsoft.Consumption/usageDetails?api-version=...
DAK's user avatar
  • 344
6 votes
2 answers
2k views

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 ...
DAK's user avatar
  • 344
0 votes
1 answer
656 views

Alert rule pricing confusion

I have created an alert rule using a custom log query. Whenever the threshold is met, an alert is sent out using the alert action. In the image, it shows that the monthly cost $1.50. As per the Azure ...
user00192331231's user avatar
0 votes
1 answer
2k views

Check total space used in azure storage accounts in my subscription

Because I have been charge a lot of money by storage, and I have so many storage account. I want to know how can I check how much my total storage usage in my subscription ? I have check this this ...
howie's user avatar
  • 2,645
2 votes
1 answer
113 views

Superimposing cost analysis for two different Azure subscriptions

Subscription cost analysis is useful but is there any way we can superimpose (produce comparative graph) of two subscription for which I am the owner?
Dhiraj's user avatar
  • 3,540
2 votes
1 answer
1k views

How to limit the usage of budget in azure

I have a resource group named XYZ on which I want to apply a budget and when the budget is used, I want the resource group to be frozen, i.e. no more transactions can be done from the resource group. ...
akshay's user avatar
  • 41
3 votes
2 answers
1k views

How to send Azure costs and usage data to log analytics workspace or directly to azure metrics?

I need to build a dashboard which will visuallize the usage and cost of many azure subscriptions. accounts, departments. My plan was: Send the data that is 'behind' the Azure Cost Analysis view, to ...
Shahar Do's user avatar
5 votes
2 answers
5k views

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's user avatar
  • 583