API for cost exports in Focus format

Amit Dokwal 0 Reputation points
2024-12-02T13:53:32.2533333+00:00

https://learn.microsoft.com/en-us/answers/tags/118/azure-cost-management

As per the link we can export cost data upto 7 years for in FOCUS

Could you confirm the above statement, as I could not find any API to export data in FOCUS format.

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

Accepted answer
  1. Pranay Reddy Madireddy 885 Reputation points Microsoft Vendor
    2024-12-02T17:37:03.46+00:00

    Hi Amit Dokwal

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    The statement that cost data can be exported in FOCUS format for up to 7 years is incorrect. Azure Cost Management allows cost data export for analysis, but it doesn’t mention a FOCUS format or a 7-year limit.

    In Azure Cost Management, you can export cost data as a CSV file to a storage account for analysis. Tools and APIs are available to help with exporting and managing this data.

    Azure Cost Management + Billing APIs: These APIs allow you to query cost and usage data for your Azure resources.

    Azure Portal: You can create and schedule exports of your cost data directly from the Azure portal.

    To set up exports in Azure, go to Cost Management + Billing, click Exports, and create a new export. Choose how often (daily, weekly, or monthly) and where to store the CSV files.

    If you need cost data for long-term analysis, you’ll need to store and archive the exported files yourself, as Azure keeps detailed usage data for only 13 months.

    For reference, please review this documentation: -
    https://learn.microsoft.com/bs-latn-ba/azure/cost-management-billing/costs/ingest-azure-usage-at-scale
    https://learn.microsoft.com/en-us/rest/api/cost-management/exports/create-or-update?view=rest-cost-management-2023-07-01-preview&tabs=http%22
    https://learn.microsoft.com/en-us/azure/cost-management-billing/dataset-schema/cost-usage-details-focus

    If you have any further queries, do let us know.


    If the answer is helpful, please click "Accept Answer" and "Upvote it".

    You 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.