Skip to content
OptimeterOpen in Optimeter

Connect Azure OpenAI / Azure AI Foundry to Optimeter

These are the ways to get the cost of Azure OpenAI / Azure AI Foundry into Optimeter, best first. They are the same steps the guide in the app shows.

Export the FOCUS file and upload it

Applies to Own agreement with Microsoft (EA or MCA), Bought through a partner (CSP)

Azure's own cost file in the FOCUS format, as it is. Done every month, about ten minutes plus waiting for the export. Available with an EA or MCA agreement, also bought through a partner (CSP), but not with pay-as-you-go. According to Microsoft's documentation, Owner, Contributor or Reader on the subscription plus write permission on the storage account is enough; the least role needed is not confirmed. Through a partner the amounts show as list prices. Optimeter reads only the rows for AI services in the file. The vendor's pages are in English; the buttons' names are therefore in English.

7 steps, about 9 min. Every month. Role at the vendor: Owner, Contributor, Reader

  1. Open Cost Management

    At the provider

    Open the Azure portal, search for Cost Management and choose the scope: the billing account or the subscription.

    Open (opens in a new tab)
  2. Create an export

    At the provider

    Click Exports in the menu on the left and then + Create.

  3. Choose the FOCUS template

    At the provider

    Choose the template Cost and usage (FOCUS) and click Next. Choose One-time export and the first and last day of the previous month.

  4. Choose where the file goes

    At the provider

    Choose storage account, container and directory. Format: CSV. Compression: None or Gzip; Optimeter takes both. Click Review + create.

  5. Run the export

    At the provider

    Open the export and click Run now. It can take up to four hours; Run history shows when the run is done.

  6. Download the file

    At the provider

    Open the storage account, Containers, your container and the month's folder. Select the file ending in .csv or .csv.gz and click Download.

  7. Upload the file

    In Optimeter

    Upload the file in Optimeter. Optimeter shows what would be saved before anything is saved. Azure OpenAI is listed under Cognitive Services in the file.

Common mistakes

The FOCUS template is missing.
Pay-as-you-go subscriptions have no FOCUS export. Use Optimeter's template instead.
The file ends in .parquet.
Change the export's format to CSV and run it again.
The folder has several files and a manifest.json.
Azure splits large exports. Upload each .csv file, not manifest.json.
FOCUS cannot be chosen.
A management group does not support FOCUS. Choose the billing account or the subscription as the scope.

Upload in Optimeter's format

When the FOCUS export is not possible, for example with pay-as-you-go: fill in Optimeter's template with the cost from Cost analysis and upload it, once a month. If you buy through a partner (CSP): take the amounts from the partner's invoice, so that it is your actual price. If you have only Copilot Chat or Copilot Studio: filter Cost analysis on the resource Power Platform account with the billing plan's name.

3 steps, about 12 min. Every month.

  1. Download the template

    In Optimeter

    Download the template and read the column guide: one line per column with an example value. The source is azure_openai.

  2. Fill in the cost

    At the provider

    Get the cost per day for Azure OpenAI from Cost analysis and fill in one row per day and deployment.

  3. Upload the file

    In Optimeter

    Upload the file. Optimeter shows what would be saved before anything is saved.

Common mistakes

The file has other columns than the template.
Start from the template and do not change the column headers.

Coming

These ways are in the guide but cannot be used yet.