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?
Not able to get Azure Billing Account Id
1.8k Views Asked by DAK At
2
There are 2 best solutions below
10
Thiago Custodio
On
I believe you're using the wrong API. To get Billing info you must provide billing account name:
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}?api-version=2019-10-01-preview
https://learn.microsoft.com/en-us/rest/api/billing/2019-10-01-preview/billingaccounts/get
PS: you can use the "try it" and test if it will return the information you need.
You can also query usage API and use one of the available dimensions to get cost related info:
POST https://management.azure.com/{scope}/providers/Microsoft.CostManagement/query?api-version=2019-11-01
https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in AZURE-ACTIVE-DIRECTORY
- MultipleTokensMatched exception when using default TokenCache
- How can I share Azure Active Directory authentication between server side and client script?
- Azure AD Change Password with patch call
- Azure Active Directory Login: Web App Permissions, User Consent not triggered
- ADALJS Error description:AADSTS65001: No permission to access user information is configured for 'clientId' application, or it is expired or revoked
- app is re-initializing the first time ADAL "protected" URL is accessed via $http
- Validate access token for WEB API protected by Azure AD
- Azure AD Graph API: Is it possible to enumerate all groups associated with an application role?
- Is is possible to use Azure AD as a SAML compliant Identity Provider?
- Microsoft Graph API Accessing basic info of a user that is outside tenancy
- RoundCube OAuth with Azure Active Directory
- Deploy Azure AD WebAPI to IIS, with Windows Authentication enabled, skips Azure AD Authentication
- How to change Is Multiple Resource Refresh Token to true in Azure AD authentication?
- Azure, login to separate accounts with one email
- How to setup nginx to authenticate users through Azure AD?
Related Questions in BILLING
- Windows Azure. Worker role billing
- Editing Checkout Page - WooCommerce
- Test purchases not showing up in Google Wallet Merchant
- Google app engine per-user billing and quotas
- Google app engine quota is expired, how to provision new instances on emergency basis
- Can I set a hard limit on my AWS spend?
- Will an alert created on Google Cloud Platform (on section Budget & Alerts) restrict my spending if it goes over the specified amount?
- POS price updation and stock managemnt
- Azure EA Subscription - Billing Report
- Restaurant Billing Program Function
- Android in app billing
- Twilio total call duration does not match with billing minutes
- How to display a list of bill?
- How to use SandBox testing provided by google in android in app purchases?
- Whmcs Code Modification
Related Questions in AZURE-BILLING-API
- Azure Usage And Billing Portal DataGenStatus always pending
- Are the Azure usage and rate card APIs supported for US GOV EA subscriptions?
- how to find ServiceName in Azure Cloud billing export
- how to develop Azure CSP billing Api in azure functions using .net core
- Azure cost analysis for a particular subscription using Python SDK
- Error message when creating query against Resource Manager, in Azure Monitor Workbook
- Azure - Usage Consumption API - Incomplete Dates
- Azure Consumption Usage API - Filter Not Working
- Only Data Transfer Out on App Service Azure
- Getting data out of the Azure Cost Centre
- How to find Uniqueness in Azure Usage Records from Billing APIs
- Azure Credit Balance
- Not able to get Azure Billing Account Id
- How to get Billing details including usage details and tax
- Not able to Access Billing info using Azure CLI
Related Questions in COST-MANAGEMENT
- MySQL Cost by Category throughout time
- what is my increment percentage from 0 to 20?
- AWS Cost Explorer - stopping s3 reports
- Google Sheet - Calculate a cost
- How do I set a cost limit in Google Developers Console
- Does Checking Firebase Custom Claims in Flutter every 10 Minutes Cost A Lot of Money for 10K Users?
- Adding filter to azurerm_subscription_cost_management_view
- Why i am being charged for azure container apps despite being under free tier
- GCP Billing Data Bigquery
- Is the Google OAuth Service for OAuth 2.0 free?
- Google cloud sql - Storage size reset
- Does the cost of writing N records into a DynamoDB table is the same, irrespective of the write duration?
- With @run_time in BigQuery's scheduled Query script - BigQuery's feature: "the script will process ... when run" is MESSED UP
- Azure admin - 'No access to this subscription' for Analyze costs
- Azure Cost Management API is not returning the Blob location
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

This api will return a value if account belongs to Modern billing