Discrepancy Between Azure API and Portal Cost Data at Different Times

Kommu, Ramesh 20 Reputation points
2024-11-07T06:18:20.1033333+00:00

Hi Azure Community,

I’m using the Azure API to fetch the previous day's cost data, and I collect this data at 8 AM the following day. When I compare the API data with the Azure portal cost at 8 AM, the values match perfectly. However, when I check the Azure portal cost again at 10 AM, the portal's cost is higher than the API data.

Has anyone encountered a similar issue? Can anyone explain why the cost data in the Azure portal might increase or change after the initial 8 AM check? Is this related to billing updates, processing delays, or perhaps data reconciliation between the API and portal?

I would appreciate any insights or suggestions on how to resolve or understand this discrepancy.

Thanks in advance!

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,714 questions
0 comments No comments
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 46,371 Reputation points Microsoft Employee
    2024-11-07T12:09:55.81+00:00

    @Kommu, Ramesh Greetings!

    The discrepancy between the Azure portal and the API cost data at different times of the day is most likely due to the asynchronous processing of billing and usage data. Azure Cost Management typically reconciles and finalizes costs throughout the day, which can lead to slight changes in the cost figures displayed on the portal after you fetch them from the API. This is a common situation, the current open month cost data is always an approximate and it is advisable customer makes t-3 days to access the cost data then it would be more stable as compared to checking just previous days data.

    Hope this answers your question. Please feel free to reply if you have any further questions.


    If the response helped, do "Accept Answer" and up-vote it

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.