Different Currency

Aayushi Solanki 41 Reputation points
2022-03-16T05:53:00.227+00:00

Want to get cost details in different currencies like AUD, EUR, CAD & GBP, So how to achieve this using azure cost management API.
Below is the request body from which able to fetch cost in INR & USD. But how to get above currencies.
{
"type": "Usage",
"timeframe":"Custom",
"timeperiod": {
"from": "2021-12-01",
"to": "2021-12-14"
},
"dataset": {
"granularity": "Monthly",
"aggregation": {
"totalCostUSD": {
"name": "CostUSD",
"function": "Sum"
}
},
"grouping": [
{
"type": "Tagkey"

  }
]

}
}

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

2 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 22,251 Reputation points MVP
    2022-03-16T07:41:11.46+00:00

    Hi,
    Azure Cost Management shows only data in the currency for which your billing account is. You can see screenshots from billing account and subscription showing the currency. In general Azure prices are in USD and converted to the currency of the billing scope. Check FAQ here thus you see your local currency and USD. You could get the usage data and convert it to amount in the currency you want by using retail prices API. but keep in mind that the API will give you the current prices. The retail prices could be different depending on the month and exchange rates.

    Update: please select SadiqhAhmed-MSFT answer as he replied first. Leaving my reply as it contains some additional information.
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    183615-image.png
    183589-image.png

    1 person found this answer helpful.
    0 comments No comments

  2. SadiqhAhmed-MSFT 41,716 Reputation points Microsoft Employee
    2022-03-16T07:40:40.387+00:00

    @Aayushi Solanki Thank you for your post!

    You are looking for cost details in different currencies. Currently for EA the pricing currency and billing currency is in local/billing currency – The api only returns in the pricing/billing currency. Answered a similar question here - https://learn.microsoft.com/en-us/answers/questions/612568/how-to-get-filter-unsages-detail-api-data-by-usd-c.html

    Hope this answers your questions. Please reply if you have further questions or if I've misunderstood your question.

    ----------------------------------------------------------------------------------------------------------------------

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

    0 comments No comments