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
0
votes
1 answer

Azure Python Billing API

I am trying to generate a report using python for Azure billing API. i am getting the response from WEBAPI in csv format. with follwoing code: import requests import pandas as pd url= …
vin123
  • 3
  • 6
0
votes
2 answers

Azure Billing Usage API not returning additional properties

I am following this link to get my usage details for azure account. As per the official documentation, by using $expand=properties/additional properties should return additional properties (such as consumed service, cost center etc) in result set.…
Vineet Kumar
  • 176
  • 2
  • 11
0
votes
0 answers

Azure Billing API in python

I am trying to calculate the Azure usage cost in python by getting response from url API with importing urllib3. But I am not getting full data in the response. Partial data is coming. My requirement is to get this data day wise and have to send a…
vin123
  • 3
  • 6
0
votes
1 answer

Azure Pricing Estimate Using Rate Card API?

Is there a way to calculate the estimated monthly cost for an Azure virtual machine using the Rate Card API? I've downloaded all of the Rate Card API data and I'm comparing it to the online Azure pricing calculator…
user1380769
  • 277
  • 1
  • 4
  • 16
0
votes
0 answers

API for registering your app to Azure

I am trying to write an app that, upon receiving the credentials of an Azure user, will be able to show him various pieces of information using the Azure billing apis. However, the following git sample that shows how to use one of those apis, lists…
felisimo
  • 198
  • 14
0
votes
1 answer

Correct parameters for RateCard API

I am trying to fetch the RateCards for my Azure subscription, however I am unable to figure out the correct (combination of) parameters for my call to the API. I keep getting the following message: { "Message": "Invalid query specified. Please…
weeknie
  • 160
  • 7
0
votes
0 answers

Azure RM Subscription - Cost Analysis REST API

When we navigate to Subscriptions -> Cost Analysis we can see Cost details of resources and also we can apply filter and view our total cost . Is there any REST API available to get these info ? I just need usage price used by resources with "xyz"…
0
votes
1 answer

How to get VM details from Azure Rate-API metadata

i am trying to get exhaustive list of all Azure Services available in sub and its pricing using RATE API. I wanted to confirm if the RATE API will return VM details like, size, core, RAM etc. "D1: 1 cores, 3.5 GB RAM, 50 GB disk" Currently the EA…
0
votes
2 answers

Freeze Cloud Services for no billing

We have few cloud services with both VMs and web worker roles in it. Is there a way to "freeze" or stop them to not be billed but if we want to start them again? I saw some answers but most of them are outdated. Thank you in advance!
0
votes
0 answers

Azure Partner Center Sdk Get Granular Historical Billing Information

This page describes the SubscriptionDailyUsage Resource, which is obsolete, and suggests using the Utilization resource (which offers very granular utilization data) and marrying it to an IAzureRateCard which offers real time azure pricing. I've…
Miniver Cheevy
  • 1,667
  • 2
  • 14
  • 20
0
votes
0 answers

Calculate Azure Costing using Azure Billing APIs

I am able to get the ResourceUsage and RateCard API using Rest Client (Postman) as well as Power BI. I want to further calculate Azure costing using the APIs output. I went through the URL Show azure cost analysis data using Azure billing API/SDK…
zee
  • 51
  • 1
  • 7
0
votes
1 answer

How do I convert json string to key\value pairs?

I want to take all the key-value pairs after the \"tags\" under "instanceData" and make them key-value pairs under "properties". I have this... { "id": "/subscriptions/1234abcd-ab12-12ab-12ab-abcdfghi1234/Daily_BRSDT_20161214_0000", "name":…
daGooch
  • 1
  • 1
  • 1
  • 2
0
votes
1 answer

Azure Billing API usage in C#

I was working on a billing sample code from GitHub After changing all the relevant information in app.config and running the sample I am getting 404 error. I am getting the token generated and checking the URL on fiddler is giving me status code of…
Hungry
  • 39
  • 12
0
votes
1 answer

Azure resource usage api says “bad request” with minutes part in the reported start and end datetimes

I am facing one issue while calling the Azure usage api. In the usage API, we need to provide the reported start date-time and reported end date-time. In these date-times if I provide the minutes part like: 2017-02-09T03%3a30%3a00Z Then it fails…
0
votes
1 answer

Azure Billing for Classic machines Using Powershell

Is there a way to get the billing information for classic machines using powershell. I know we can use Get-UsageAggregates for Resoruce Manager. But i want to know for Classic setup
Venkatakrishnan
  • 776
  • 11
  • 26