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
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)Create an export
At the provider
Click Exports in the menu on the left and then + Create.
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.
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.
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.
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.
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.
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.
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.
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.
Connect Azure with read access to the costs
Optimeter reads the cost of Azure OpenAI straight from Cost Management, every day. Done once and needs Owner or User Access Administrator on the subscription, or the matching administrator of the billing account. The first cost normally shows after 8 hours, at the longest after 72 hours (pay-as-you-go). If you buy Azure through a partner (CSP), the cost shows only once the partner has switched on cost visibility for you, and the amounts are then list prices, not the partner's price. If you have only Copilot Chat with pay-as-you-go billing or Copilot Studio, it is billed to the Azure subscription the billing plan points to, as the resource Power Platform account; the same connection reads it. The vendor's pages are in English; the buttons' names are therefore in English.
Optimeter cannot read this yet.
Upload the Power Platform report
The report from the Power Platform admin center shows Copilot credits per agent, feature, channel and model for an environment, not amounts. The amount comes from Azure, with the connection or Optimeter's template. Done every month. The path opens when the report's columns are confirmed with a real file. Power Platform Administrator or Global Administrator manage the capacity; the least role needed for the download is not confirmed. Copilot Studio costs are moving to the Microsoft 365 admin center, and there the path can look different. The vendor's pages are in English; the buttons' names are therefore in English.
Opens when the format has been checked against the vendor's file.