API for cost exports in Focus format

Vipul Kelkar 0 Reputation points
2025-01-24T09:20:44.0333333+00:00

From the cost management documentation for FOCUS data sets

"To access data older than 13 months, you can use the REST API.

  • Cost and usage (Actual), Cost and usage (Amortized), and Cost and usage (FOCUS): Up to seven years of data."

I understand from this that we can access data older than 13 months up to 7 years through REST API. Can you point to the API documentation which can be used to access data older than 13 months ?

The documentation also says,

You can retrieve up to 13 months of historical data through the Azure portal for all datasets, except for reservation recommendations

However, when I try to configure FOCUS data export for older than 1 month, I get the below error in the portal. Is there some other way to export data for more than 1 month ?

User's image

I have referred to the question here already but the answer doesn't seem to align with the documentation. Can someone please provide an insight into accessing FOCUS and other datasets for older than last 1 month.

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

1 answer

Sort by: Most helpful
  1. Pranay Reddy Madireddy 1,600 Reputation points Microsoft Vendor
    2025-02-06T10:12:17.2433333+00:00

    Hi @Vipul Kelkar

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:
    API for cost exports in Focus format

    Solution:
    I am able to create export through API, however I do not see an option in the documentation to specify FOCUS format in the API request.

    I was able to successfully create an export for 'Actual' usage data based on the documentation.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

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.