Skip to main content
emnode
Browse the docs

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.

Everyone needsExport rights1EA or MCA billing2Storage account3Your choicesWhat it meansBilling accountEvery subscription4One subscriptionThat subscription only5Existing storageMain subscription only6Existing exportCheck its settings7Someone else runs your Azure?Send them this page8

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.

About 10 minutes in the Azure portal, then up to 24 hours for the first files. One export covers every subscription on your bill.

  1. Step 1: Open Exports

    In the Azure portal

    In Cost Management, choose what the export covers, and start a new export.

    1. Sign in to the Azure portal and search for Cost Management.
    2. 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.
    3. Open Reporting + analytics and choose Exports.
    4. 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.

    Problems with this step?
  2. Step 2: Basics

    In the Azure portal

    On the Basics tab, start from a blank export, so you set every field yourself.

    1. Click Create your own export.

    The Datasets tab opens, with the Add export panel already open.

  3. Step 3: Datasets

    In the Azure portal

    On the Datasets tab, add one export of FOCUS cost data and give it a prefix.

    1. In the Add export panel, set Type of data to Cost and usage details (FOCUS) - Preview.
    2. Enter an Export name, such as focus.
    3. Check Dataset version is 1.0r2, the default and the version Emnode is checked against.
    4. Set Frequency to Daily export of month-to-date costs, and click Add.
    5. Enter an Export prefix, such as finops. Azure requires one and adds it to the front of the name, so the export becomes finops-focus, which also names its folder.
    6. 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).

    Problems with this step?
  4. Step 4: Destination

    In the Azure portal

    On the Destination tab, choose where the files go and how they're written.

    1. Leave Storage type on Azure blob storage.
    2. 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.
    3. Set Subscription to that subscription, such as Production. Emnode can only read a storage account in it.
    4. Choose a Resource group, or click Create new under it and name one, such as rg-billing.
    5. Enter an Account name, such as contosobilling, and pick a Location, such as (UK) UK South.
    6. Enter a Container, such as cost-exports, and a Directory, such as focus.
    7. Set Format to Parquet and Compression type to Snappy.
    8. Leave Overwrite data ticked and File partitioning on.
    9. 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.

    Problems with this step?
  5. Step 5: Review

    In the Azure portal

    On the Review + create tab, check the settings and create the export.

    1. 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.
    2. Click Create.

    You see Export created - finops-focus, and the export is listed as Active. Azure delivers the first files within 24 hours.

    Problems with this step?
  6. Step 6: Link to Emnode

    Emnode and Azure portal

    Find the export's storage details, then enter them in Emnode's Azure setup.

    In the Azure portalFind the details

    1. Under Exports, click your export's name, such as finops-focus.
    2. To get the first files sooner, click Run now. Microsoft says a run's data is usually ready within 4 hours of it starting.
    3. Under Essentials, note the Storage account, Storage container and Storage directory, such as contosobilling, cost-exports and focus.
    4. Click the storage account's name, and note its Resource group on its Overview page, such as rg-billing.

    In EmnodeIn Emnode

    1. In Emnode's Azure setup, at Deploy, under Where does your FOCUS export write?, enter the Storage account, Its resource group and Container.
    2. 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.

    Problems with this step?

The settings Emnode expects

The step guide sets all of these. Use the table to check an export you already have.

SettingChooseWhy
Type of dataCost and usage details (FOCUS) - PreviewEmnode reads FOCUS only. The actual and amortized cost datasets use different columns.
Dataset version1.0r2The defaultThe version Emnode is checked against.
Export prefixAnything short, such as finopsAzure requires it and joins it to the export's name, such as finops-focus. Emnode finds the export whatever it's called.
FrequencyDaily export of month-to-date costsAzure refreshes the current month every day, so your costs stay current.
Storage accountOn the Destination tabOne in the subscription you connect to EmnodeEmnode's setup grants its identity read access to the container there, and nowhere else.
Container and DirectoryUsed by this export only, such as cost-exports and focusEmnode reads one directory. A month that two exports deliver there isn't added.
Format and Compression typeParquet with SnappyCSV, with or without Gzip, also worksThe smallest files. Emnode reads any of Microsoft's formats for this dataset.
Overwrite dataTicked, the defaultEach daily run replaces the month's files, so your storage holds one current copy of each month.

If something goes wrong

What you seeWhat to do
You can't choose your scope, or you can't create an export thereExports 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 listMicrosoft 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-grantThat 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 minutesA 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.

Spot something wrong on this page?