Set up an Azure FOCUS cost export
Create the FOCUS cost export in Azure Cost Management that Emnode's Cost & billing reads, and find the storage details the setup asks for.
Last updated
Emnode's Cost & billing reads your Azure spend from a FOCUS cost export: files that Azure Cost Management writes each day to a storage account you own, in FOCUS (opens in a new tab), the open format for cloud billing data. You create the export once, in Cost Management Exports, and Emnode reads it from there.
It takes about ten minutes in the Azure portal, then up to 24 hours for Azure to deliver the first files. You don't have to wait: start Emnode's Azure setup whenever you're ready, give it the export's storage details at Deploy, and finish before the files arrive.
Before you start
Everyone needs the top three. Where you create the export decides what it covers, and storage or an export you already have changes one thing each. Select a number to see what to have ready.
Select a number above, or step through with the arrows.
1Rights to create exports
Someone who can create Cost Management exports where the export will live. On a subscription that’s Owner, Contributor or Cost Management Contributor; on a billing account, a billing role that manages exports. They also need to create a storage account in that subscription, or write to one.
2EA or MCA billing
Microsoft offers the FOCUS dataset for Enterprise Agreement and Microsoft Customer Agreement billing, but not for pay-as-you-go on the Microsoft Online Services Program (MOSP). Check Type under Cost Management + Billing → Properties. If FOCUS isn’t offered
3A storage account
The export can create one as you go. It must be in the subscription you’ll connect to Emnode, such as Production. Have four names ready, which Emnode asks for at Deploy: a resource group (rg-billing), the storage account (contosobilling), a container (cost-exports) and a directory (focus).
4Billing account
An export on your billing account (your Enterprise Agreement enrolment, or your Microsoft Customer Agreement billing account or billing profile) covers every subscription billed to it, so one export is enough. Set the guide to this path
5One subscription
An export on a subscription covers that subscription’s costs only. Use the subscription you’ll connect to Emnode. Set the guide to this path
6A storage account you already have
It works if it’s in the subscription you connect to Emnode. Emnode reads the files from outside your Azure network, so its networking must allow public access. Give the export a directory no other export uses. If access is denied
7An export you already have
It works if it’s Cost and usage details (FOCUS) - Preview, daily, and writes to a storage account in the subscription you connect, in a directory of its own. Emnode is checked against dataset version 1.0r2, the default. Check its settings
8Someone else runs your Azure
Send them a link to this page. When they’re done, they send back four things: the storage account, its resource group, the container and the directory. You don’t need Azure access yourself.
Step by step
Choose what the export covers, and the steps show only what applies to you. They follow the tabs of the Cost Management export form, so you can match each one to the screen.
Your setup
What should the export cover?
Your EA enrolment or MCA billing account: one export covers every subscription.
The subscription you connect to Emnode, and its costs only.
About 10 minutes in the Azure portal, then up to 24 hours for the first files. One export covers every subscription on your bill.
About 10 minutes in the Azure portal, then up to 24 hours for the first files. The export covers that subscription only.
Step 1: Open Exports
In the Azure portalIn Cost Management, choose what the export covers, and start a new export.
- Sign in to the Azure portal and search for Cost Management.
- In its menu, click Change scope, choose your billing account, such as your Enterprise Agreement enrolment, or with a Microsoft Customer Agreement your billing account or billing profile, and click Select.
- In its menu, click Change scope, choose the subscription you'll connect to Emnode, such as
Production, and click Select. - Open Reporting + analytics and choose Exports.
- Click + Create in the toolbar.
New export opens on its Basics tab.
On a billing account you need a billing role that can manage exports, such as an Enterprise Agreement's enterprise administrator or a Microsoft Customer Agreement's billing account owner or contributor.
On a subscription you need Owner, Contributor or Cost Management Contributor. Cost Management Reader can only view exports.
Step 2: Basics
In the Azure portalOn the Basics tab, start from a blank export, so you set every field yourself.
- Click Create your own export.
The Datasets tab opens, with the Add export panel already open.
Step 3: Datasets
In the Azure portalOn the Datasets tab, add one export of FOCUS cost data and give it a prefix.
- In the Add export panel, set Type of data to Cost and usage details (FOCUS) - Preview.
- Enter an Export name, such as
focus. - Check Dataset version is 1.0r2, the default and the version Emnode is checked against.
- Set Frequency to Daily export of month-to-date costs, and click Add.
- Enter an Export prefix, such as
finops. Azure requires one and adds it to the front of the name, so the export becomesfinops-focus, which also names its folder. - Click Next.
Your export is listed as
finops-focus, and the Destination tab opens.Don't see Cost and usage details (FOCUS) - Preview? Microsoft doesn't offer it for pay-as-you-go billing on the Microsoft Online Services Program (MOSP).
Step 4: Destination
In the Azure portalOn the Destination tab, choose where the files go and how they're written.
- Leave Storage type on Azure blob storage.
- Under Destination and storage, choose Create new. Or keep Use existing for a storage account you already have in the subscription you'll connect to Emnode.
- Set Subscription to that subscription, such as
Production. Emnode can only read a storage account in it. - Choose a Resource group, or click Create new under it and name one, such as
rg-billing. - Enter an Account name, such as
contosobilling, and pick a Location, such as (UK) UK South. - Enter a Container, such as
cost-exports, and a Directory, such asfocus. - Set Format to Parquet and Compression type to Snappy.
- Leave Overwrite data ticked and File partitioning on.
- Click Next.
The Review + create tab opens.
Give the export a directory of its own. Emnode won't add a month that two exports deliver to the same directory.
Step 5: Review
In the Azure portalOn the Review + create tab, check the settings and create the export.
- Check the summary: Cost and usage details (FOCUS) - Preview, Daily export of month-to-date costs, 1.0r2, your storage account, container and directory, Parquet and Snappy.
- Click Create.
You see Export created - finops-focus, and the export is listed as Active. Azure delivers the first files within 24 hours.
Step 6: Link to Emnode
Emnode and Azure portalFind the export's storage details, then enter them in Emnode's Azure setup.
In the Azure portalFind the details
- Under Exports, click your export's name, such as
finops-focus. - To get the first files sooner, click Run now. Microsoft says a run's data is usually ready within 4 hours of it starting.
- Under Essentials, note the Storage account, Storage container and Storage directory, such as
contosobilling,cost-exportsandfocus. - Click the storage account's name, and note its Resource group on its Overview page, such as
rg-billing.
In EmnodeIn Emnode
- In Emnode's Azure setup, at Deploy, under Where does your FOCUS export write?, enter the Storage account, Its resource group and Container.
- Enter the Storage directory in Directory (optional), such as
focus. Don't add the export's name: Emnode finds that itself.
When you deploy, Emnode's identity gets read access to that one container. Until the first files arrive, the connection test says there's nothing there yet, and you can still finish the setup.
Already connected to Emnode? Add the details as in Point cost data at a new export.
- Under Exports, click your export's name, such as
The settings Emnode expects
The step guide sets all of these. Use the table to check an export you already have.
| Setting | Choose | Why |
|---|---|---|
| Type of data | Cost and usage details (FOCUS) - Preview | Emnode reads FOCUS only. The actual and amortized cost datasets use different columns. |
| Dataset version | 1.0r2The default | The version Emnode is checked against. |
| Export prefix | Anything short, such as finops | Azure requires it and joins it to the export's name, such as finops-focus. Emnode finds the export whatever it's called. |
| Frequency | Daily export of month-to-date costs | Azure refreshes the current month every day, so your costs stay current. |
| Storage accountOn the Destination tab | One in the subscription you connect to Emnode | Emnode's setup grants its identity read access to the container there, and nowhere else. |
| Container and Directory | Used by this export only, such as cost-exports and focus | Emnode reads one directory. A month that two exports deliver there isn't added. |
| Format and Compression type | Parquet with SnappyCSV, with or without Gzip, also works | The smallest files. Emnode reads any of Microsoft's formats for this dataset. |
| Overwrite data | Ticked, the default | Each daily run replaces the month's files, so your storage holds one current copy of each month. |
If something goes wrong
| What you see | What to do |
|---|---|
| You can't choose your scope, or you can't create an export there | Exports belong to a scope, so first check the scope you chose with Change scope. On a subscription you need Owner, Contributor or Cost Management Contributor; Reader and Cost Management Reader can only view exports. On a billing account or billing profile, you need a billing role that can manage exports: Microsoft's guide to scopes (opens in a new tab) lists them. |
| Cost and usage details (FOCUS) - Preview isn't in the Type of data list | Microsoft offers the FOCUS dataset for Enterprise Agreement and Microsoft Customer Agreement billing, but not for pay-as-you-go subscriptions on the Microsoft Online Services Program (MOSP). To check yours, open Cost Management + Billing, then Properties, and look at Type. Emnode reads Azure costs only from a FOCUS export, so if your billing is MOSP, contact Emnode support. |
| Emnode's test says The export container has no files under that path yet. | Azure hasn't delivered the first files yet, which can take up to 24 hours. You can still finish Emnode's setup: cost collection starts when they arrive. To speed things up, open the export under Exports and click Run now. If it has already run, check Container and Directory (optional) in Emnode match the export's Storage container and Storage directory. |
| Emnode's test says That storage account wasn't found. or That container wasn't found on the storage account. | Check the names against the export's Essentials under Exports, and that the storage account is in the subscription you connect to Emnode. Correct them at Deploy, deploy again so the read access follows, then test again. |
Emnode's Deploy to Azure deployment fails at the step named finops-dashboard-export-grant | That step gives Emnode's identity read access to the export's container, and it looks for the storage account in the subscription you're deploying to. Check the storage account is in that subscription, and that Its resource group, Storage account and Container match the export's page. Correct them at Deploy, then click Deploy to Azure again. |
| Emnode's test says Access to the export container was denied., and it still fails after a few minutes | A new role can take a few minutes to take effect, so first wait and test again. If you entered the export's details after deploying, deploy again so the read access is included. If it still fails, check the storage account's Networking: Emnode reads the files from outside your Azure network, so public network access must be enabled from all networks. |
| Emnode's test says the files under that path don't look like a cost export (no Parquet, gzip or CSV data) | The directory holds something other than the export's files. Check Container and Directory (optional) in Emnode against the export's Storage container and Storage directory. |
| Connections says We found files at that location, but none look like the expected export. Check the container and folder path — waiting won’t resolve this one. | Emnode looks for your export's name directly inside the directory you gave it. Set Directory (optional) to the export's Storage directory only, such as focus, not focus/finops-focus. To change it, click Review on Cost & billing in Connections, correct it and click Save export details, then click Check access and apply. |
| Access verified, but no cost data has arrived yet. This is longer than expected — check that the export is enabled in Azure and that its storage account, container and folder path match what you entered here. | Open the export under Exports and check its Run history for a failed run. Check its Type of data is Cost and usage details (FOCUS) - Preview, and that no other export writes to the same directory: Emnode won't add a month that two exports deliver there. If the details all match, contact Emnode support. |
Frequently asked questions
Which scope should I create it on?
The widest one you can. An export on your billing account covers every subscription on that bill, so Emnode shows all their costs from one export. An export on a subscription covers that subscription only. Either way, its storage account must be in the subscription you connect to Emnode.
Do I need an export for each subscription?
No. Emnode reads one export, from your main subscription. Create it on your billing account and every subscription's costs arrive through it. Adding subscriptions covers what else Emnode reads from each one.
Does the export include past months?
No. A daily export starts with the current month. To fill in earlier months, rerun it with Export selected dates, as in Backfilling your Azure data. Emnode picks up every month that lands in the export's folder, automatically.
What does it cost?
Microsoft doesn't charge for the export itself. You pay standard Azure Storage rates for the files, and with Overwrite data on, the storage account holds one copy of each month.
Can I use an export I already have?
Yes, if it matches the settings Emnode expects: Cost and usage details (FOCUS) - Preview, daily, in a storage account in the subscription you connect, in a directory no other export uses. CSV works as well as Parquet. Enter its details as in Link to Emnode.
Which dataset version should I choose?
1.0r2, the default. It follows FOCUS 1.0, and it's the version Emnode is checked against. Azure also offers 1.2-preview, 1.0 and 1.0-preview(v1).
Does Emnode need access to Cost Management?
No. Emnode's identity reads only the files in the one container the export writes to, with the built-in Storage Blob Data Reader role on that container. It has no access to Cost Management or to anything else in the storage account.
Why FOCUS rather than Azure's own cost details?
FOCUS is an open standard for billing data, so Emnode reads your Azure and AWS costs the same way, with the same meaning for each figure.
Further reading
- FOCUSWhat is FOCUS? (opens in a new tab)The open specification for cloud billing data that the export follows.
- FOCUSFOCUS 1.0 columns (opens in a new tab)What each column in the export means, such as BilledCost and EffectiveCost.
- MicrosoftCreate and manage Cost Management exports (opens in a new tab)Microsoft's reference for every option when you create an export, and how the files are laid out.
- MicrosoftFOCUS cost and usage details file schema (opens in a new tab)The FOCUS dataset's versions, what changed in 1.0r2, and the columns each one carries.
- MicrosoftUnderstand and work with Cost Management scopes (opens in a new tab)Which roles can create exports on a subscription, a billing account or a billing profile.
- MicrosoftCheck the type of your billing account (opens in a new tab)Whether your Azure billing is an Enterprise Agreement, a Microsoft Customer Agreement or MOSP.