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
1
vote
0 answers

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.
1
vote
2 answers

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 budget, and can create alerts when you have spent…
PaulVrugt
  • 1,682
  • 2
  • 17
  • 40
1
vote
1 answer

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 Number 1 works well but I need an API, not a…
Rodney
  • 5,417
  • 7
  • 54
  • 98
1
vote
0 answers

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 report by Tags except the Application Insights…
user42012
  • 722
  • 12
  • 33
1
vote
1 answer

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 in my storage account as a Blob every…
SD4
  • 439
  • 10
  • 27
1
vote
1 answer

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 for a given period, API…
bozx
  • 53
  • 4
1
vote
2 answers

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 as…
Eric Chen
  • 53
  • 1
  • 8
1
vote
2 answers

Subscription Not Getting Billing Data

Calls to https://s2.billing.ext.azure.com/api/Billing/Subscription/GetSpecsCosts?api-version=2019-01-14 on the portal blade are succedding but with null pricing costs in the response. The problem seems to be with this one particular subscription. Is…
1
vote
3 answers

Receive notifications when a user increase the SQL database size

We would like to receive notifications once the user change SQL Server size from S9 to S12 (increase). Is this possible natively or can we develop custom webhooks to receive notifications?
Jautomator
  • 149
  • 1
  • 9
1
vote
1 answer

Offer id MS-AZR-0017P is not supported

I have to get the last bills from my azure account via CLI or python SDK. In both cases, I have a message telling me that my subscription type is not supported: CLI : # az billing invoice show UnsupportedSubscriptionType - Offer id MS-AZR-0017P is…
1
vote
3 answers

Azure: get current balance of single resource through REST API

I am looking to get the real-time current amount spent by a given resource (not the whole subscription or a resource group) during the current period on MS Azure through Azure's REST API (e.g.: We have spent X$ so far this month on this resource). …
CedricLaberge
  • 592
  • 2
  • 7
  • 22
1
vote
1 answer

Issue with 'continuationtoken' with Get-UsageAggregates PowerShell cmdlet

I am following the blog, to fetch usage details for my subscription. https://blogs.technet.microsoft.com/keithmayer/2015/06/30/export-azure-subscription-usage-to-csv-with-new-billing-api-and-powershell/ "Export Azure Usage via PowerShell using…
Manjunath Rao
  • 1,397
  • 4
  • 26
  • 42
1
vote
1 answer

Retrieving last month cost of an Azure subscription using Python SDK

I am trying to retrieve the total cost of a subscription for a given month (let's say last month). I tried using ComputeManagementClient but I always end up with a whole list of usage details, even when I use a filter in the following way :…
Jul_DW
  • 1,036
  • 6
  • 20
1
vote
1 answer

Only Data Transfer Out on App Service Azure

I have a weird problem on my azure, as I am being billed for outgoing cost. (It is not that much actually). As I choose the free plan, for all my app services. The only cost that adds up are the Data Transfer Out Cost. After some research I found…
liejoes1
  • 157
  • 1
  • 14
1
vote
1 answer

Possible to monitor Cost/billing by Products in Azure Api Management?

I was wondering if there is a way to monitor Costs and billing through products for API-Management (APIM)? The thing is now I have two APIM's - one used for test environments and another for production environment. I know this is a bit unnecessary,…
H4p7ic
  • 1,669
  • 2
  • 32
  • 61