azure-billing-api

What business logic is the Azure Cost Export applying?

走远了吗. 提交于 2021-02-05 11:30:49
问题 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 file dump. Number 2 seems to be made for powering the Cost Management UI with high-speed dimension querying Number 3 seeems to be in Preview but legacy (!) Which brings me to number 4. I compared this query with the output from the CSV Cost Export file

Show azure cost analysis data using Azure billing API/SDK

孤街浪徒 提交于 2019-12-25 12:00:14
问题 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 anybody has any experience/idea on this ,please help. After going through replies ,I have gone through the Azure Billing Rest API and I am now able to call the Usage Aggrgate and RateCard related Rest APIs. Following are the results of those REST

How to use Management certificate based authentication for making REST API calls to Azure?

戏子无情 提交于 2019-12-24 17:30:31
问题 I am trying to get the usage and rate card information from Microsoft Azure using a java application and I came to understand that I can use the Management certificate to authenticate for making calls to Microsoft Azure. I got the Management Certificate from the .publishsettings file I got from here However, in AuthenticationContext , I don't see any method that utilizes this certificate to get the access token required for making usage and rate API calls. I tried referring to this answer,

How to get resource name from Azure Resource GUID?

吃可爱长大的小学妹 提交于 2019-12-21 07:09:55
问题 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 has eaten the max amount. But I want to know which Azure resource (e.g.VM or SQL DB etc) or which accout user (Login ID of the user who has created that resource) is eating this amount. One more thing, I found this sudden cost cutting thing for both

Cannot turn on “Multi-Tenant” for Azure AD Authentication

删除回忆录丶 提交于 2019-12-18 19:05:54
问题 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 error: The App ID URI is not available. The App ID URI must be from a verified domain within your organization's directory. How can I change my Application to have the same domain as my Azure AD? (*.onmicrosoft.com). Am I doing something wrong here? 回答1:

Billing calculation of rates

霸气de小男生 提交于 2019-12-12 17:23:55
问题 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 rates: {"0":20, "100":15, "200":10} If I have a quantity of 175 is the amount 100*20 + 75*15 or 175*15 ? Why specify an included quantity? Example: rates:{"0":23} with included quantitiy 10 could be expressed as rates: {"0":0, "10":23} 回答1: example

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

流过昼夜 提交于 2019-12-12 03:35:15
问题 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": "Daily_BRSDT_20161214_0000", "type": "Microsoft.Commerce/UsageAggregate", "properties": { "subscriptionId": "1234abcd-ab12-12ab-12ab-abcdfghi1234", "usageStartTime": "2017-03-08T00:00:00+00:00", "usageEndTime": "2017-03-09T00:00:00+00:00", "meterName

How to get 'credit available' and 'days remain' using Azure Billing API?

早过忘川 提交于 2019-12-12 01:37:56
问题 Is it possible to get the two indicators of the old management portal using the Azure Billing or RateCard API like shown below? thank you! 回答1: So there're two things you're looking for: Subscription Billing Period : As of today, it is not possible to fetch the billing period of a Subscription programmatically. Remaining Credits : Remaining credits is not directly available via the API however it is possible to calculate this. For this first, you would need to find the total credits available

Partner Center rest api 401 error

杀马特。学长 韩版系。学妹 提交于 2019-12-11 08:08:00
问题 I tried to use partnercenter api to get the billing details. But API call return 401 error code. the details provided on partnercpi are correct one and its working fine If I give it as input for Subscription API. URL : https://api.partnercenter.microsoft.com/v1/customers/<Customer-tenant-ID>/subscriptions/<Subscription-ID>/usagerecords/resources Can you suggest what can be the reason for the error. Reference link : https://msftstack.wordpress.com/2016/01/05/azure-resource-manager

Cannot turn on “Multi-Tenant” for Azure AD Authentication

扶醉桌前 提交于 2019-11-30 17:56:00
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 error: The App ID URI is not available. The App ID URI must be from a verified domain within your organization's directory. How can I change my Application to have the same domain as my Azure AD? (*.onmicrosoft.com). Am I doing something wrong here? The message is pretty descriptive. First you have to take a verified domain which is linked to your Azure AD.