Top Gradient

Connect your Azure bill to SELECT (Private Preview)

This feature is currently in Private Preview, and only available to customers of SELECT for Databricks.

When Databricks runs on classic compute, Azure bills you for the virtual machines, managed disks and networking underneath. Once your Azure cost data is connected, SELECT shows that Azure cost next to the DBU cost of each workspace, cluster, SQL warehouse, job and query, so you can see the full cost of running Databricks.

Prerequisites

  • Access to the Azure billing scope you want to connect, with permission to create FOCUS Cost Management exports there
    • An export of your billing account (Enterprise Agreement or Microsoft Customer Agreement) includes every subscription under it, so one connection covers all of your Databricks workspaces
    • A billing profile or a single subscription can be connected instead, which covers only that scope's usage
    • FOCUS exports aren't available to pay-as-you-go subscriptions and non-FOCUS exports aren't currently isn't supported.
  • Permission to create an app registration in Microsoft Entra ID, and to assign roles on the storage account the export writes to
  • Your Databricks workspace already connected to SELECT

Connecting your Azure bill

No tag setup needed: Databricks automatically tags the virtual machines and disks it launches, and Azure includes resource tags in your cost data without any extra setup. SELECT uses those tags to tie Azure cost back to a cluster, SQL warehouse or job. If you use Azure Policy to remove or overwrite tags, make sure Databricks' default tags (such as Vendor, ClusterId, SqlEndpointId and DatabricksInstancePoolId) are left in place.

Instance pools: virtual machines that come from an instance pool only carry the pool's tags (plus your workspace's custom tags), not the cluster's. SELECT handles this by matching each virtual machine to the clusters it served, using Databricks' own node timeline, so pool cost still reaches the right clusters and jobs. Time a virtual machine spent idle in the pool shows up as idle pool cost.

Step 1: Create a FOCUS cost export

  • In the Azure portal, open Cost Management → Exports. Use the Scope picker at the top to choose the billing account, billing profile or subscription to export, then click Create
  • Basics: choose the Cost and usage (FOCUS) template
  • Datasets:
    • Type of data: Cost and usage details (FOCUS)
    • Dataset version: 1.0r2
    • Frequency: Daily export of month-to-date costs
    • Export name: pick a memorable name (e.g. select-focus-cost), and note it down. It's also shown in the Exports list once the export is created
  • Destination:
    • Storage type: Azure blob storage
    • We recommend creating a new storage account for the export (Create new, then pick a subscription, resource group, name and location). Note down the storage account name
    • Container: pick one (e.g. cost-exports), and note it down
    • Directory: pick one (e.g. cost). Azure delivers the export to a folder named after the export under it, so your path prefix for SELECT is both together (e.g. cost/select-focus-cost). Note it down
    • Format: Parquet
    • Compression type: Snappy
    • File partitioning: leave it turned on
    • Overwrite data: turn it on, so each run replaces the previous one instead of adding another copy of the month
  • Click Review + create, then Create

SELECT reads the export over the internet. If the storage account's networking only allows selected virtual networks or private endpoints, SELECT can't reach it. Keep public network access enabled on the storage account. Access to the files is still limited to the app registration you give read access in Step 4.

Azure runs the export once a day. To get the first run sooner, select the export in the Exports list and click Run now. Each run lands in its own folder under the billing month:

1https://<storage-account>.blob.core.windows.net/<container>/<directory>/<export-name>/
2 YYYYMMDD-YYYYMMDD/<run-time>/<run-id>/manifest.json
3 YYYYMMDD-YYYYMMDD/<run-time>/<run-id>/part_0_0001.snappy.parquet

Your path prefix is the folder that holds one YYYYMMDD-YYYYMMDD/ folder per month.

Want older history? A new export starts from the current month. To get earlier months, select the export in the Exports list, click Export selected dates, and run it once for each earlier month. SELECT loads up to 180 days of history.

Step 2: Copy SELECT's federated credential values

SELECT reads your export by signing in to your tenant as an app registration you create, using a federated credential. No client secret or key is created or shared. The federated credential needs three values from SELECT.

  • Navigate to: https://select.dev/app/settings/azure/add
  • Under Authentication (federated credential), copy:
    • Issuer: the identity provider SELECT signs in with
    • Subject Identifier: the identity SELECT signs in as
    • Audience: unique to your organization
  • Keep this page open. You'll come back to it in the last step

If the page says "Your organization doesn't have an audience yet", reach out to your SELECT contact. The Audience appears once it's set.

Step 3: Create an app registration for SELECT

  • In the Azure portal, open Microsoft Entra ID → App registrations → New registration
  • Name: pick a memorable name (e.g. select-cost-reader)
  • Supported account types: Accounts in this organizational directory only (Single tenant)
  • Leave Redirect URI empty, and click Register
  • On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID
  • Open Certificates & secrets → Federated credentials, then click Add credential
  • Federated credential scenario: choose Other issuer, then fill in:
    • Issuer: the Issuer from Step 2
    • Type: Explicit subject identifier
    • Value: the Subject Identifier from Step 2
    • Name: pick a memorable name (e.g. select)
    • Audience: replace the default (api://AzureADTokenExchange) with the Audience from Step 2
  • Click Add

The federated credential only accepts a sign-in that matches all three values, and the Audience is unique to your organization. You don't need to create a client secret or certificate.

Step 4: Give the app registration read access to the export

SELECT needs read-only access to the export files, and nothing else.

  • Open the storage account from Step 1, then Data storage → Containers, and select the export's container
  • Open Access Control (IAM) → Add → Add role assignment
  • Role: select Storage Blob Data Reader, and click Next
  • Members: assign access to User, group, or service principal, click Select members, and select the app registration from Step 3 by its name
  • Click Review + assign

Timing: a new role assignment can take up to 10 minutes to take effect.

Add Azure account to SELECT

  • Back on https://select.dev/app/settings/azure/add, fill out the details you noted in the previous steps:
    • Display Name: any name you'll recognize (e.g. Production Azure billing)
    • Storage Account: the storage account name only, without https:// or .blob.core.windows.net (e.g. acmecostexports)
    • Container: the container from Step 1 (e.g. cost-exports)
    • Path Prefix: your path prefix from Step 1, the export's directory followed by its name (e.g. cost/select-focus-cost)
    • Directory (tenant) ID: from the app registration's Overview page in Step 3
    • Application (client) ID: from the app registration's Overview page in Step 3
  • Click Add. SELECT runs these checks in order and shows the result of each:
    • Sign in to your Azure tenant
    • Reach the export's container
    • Find an export manifest under the path
    • Read the latest export manifest
    • Confirm the export is FOCUS cost in Parquet
  • When all of them pass, the connection is saved and the first sync starts. You are good to go!

Auditing SELECT's access

SELECT signs in as your app registration, so every sign-in appears in Microsoft Entra ID under Sign-in logs → Service principal sign-ins. If you've turned on diagnostic logging for the storage account, its logs show the reads that follow.

To stop SELECT's access at any time, delete the federated credential or the app registration, or remove its role assignment on the container.

What happens next

  • The first sync loads every billing month in the export, up to 180 days back. After that, SELECT syncs once a day, so a new run shows up within about a day. Azure keeps restating the current month, and re-exports the previous month in the first days of a new month, so SELECT reloads both months on every sync
  • One export per billing scope: SELECT doesn't accept a second connection for a billing scope or export location that's already connected, so the same cost isn't counted twice. Where you can, connect your billing account's export, which covers every subscription under it
  • Where you'll see Azure cost:
    • On Databricks pages, next to DBU spend for each warehouse, cluster, job and query, as Cloud spend
    • In Total spend, which is DBU spend plus Cloud spend
    • In Cost Explorer, under the Azure platform
  • Serverless compute shows - for Cloud spend. Databricks runs serverless on its own infrastructure and includes it in the DBU price, so there's no separate Azure charge on your bill
  • Azure cost that doesn't belong to Databricks (other workloads, shared networking, tax) still appears in Cost Explorer under Azure, so the full bill adds up

Troubleshooting

If a check fails when you click Add, SELECT shows the check's name with a message explaining what went wrong, and skips the checks after it. Find the failed check below. Where a check can fail for more than one reason, the heading quotes part of the message.

"Sign in to your Azure tenant" failed

  • Likely cause: the federated credential's Issuer, Subject Identifier or Audience doesn't match SELECT's, or the tenant or client ID is wrong. The message says which
  • Fix: on the app registration's Certificates & secrets → Federated credentials tab, check all three values match the ones shown in SELECT exactly. Re-copy the Directory (tenant) ID and Application (client) ID from the app registration's Overview page.

"Sign in to your Azure tenant" failed, and the message mentions an identity token

  • Likely cause: a problem on SELECT's side, not your setup
  • Fix: reach out to your SELECT contact.

"Reach the export's container" failed: "the storage account couldn't be reached"

  • Likely cause: wrong storage account name, or the storage account's networking blocks SELECT
  • Fix: enter the storage account name only, as shown in the Azure portal. On the storage account's Networking page, check public network access is enabled.

"Reach the export's container" failed: "access denied"

  • Likely cause: the app registration doesn't have Storage Blob Data Reader on the container, or the role assignment hasn't taken effect yet
  • Fix: on the container's Access Control (IAM) → Role assignments tab, check the app registration is listed with Storage Blob Data Reader. Allow up to 10 minutes after assigning it.

"Reach the export's container" failed: "the container wasn't found"

  • Likely cause: wrong container name
  • Fix: check the name against the storage account's Data storage → Containers list.

"Find an export manifest under the path" failed

  • Likely cause: the first export run hasn't arrived yet, or the path prefix is wrong
  • Fix: in Exports, click Run now and wait for the run to complete. In the container, check that <PATH_PREFIX>/ holds a YYYYMMDD-YYYYMMDD/ folder with a manifest.json further down. Enter the path prefix without the container name or a leading /.

"Read the latest export manifest" failed

  • Likely cause: the export was replacing its latest run while SELECT read it
  • Fix: wait a few minutes for the run to finish, then click Add again.

"Confirm the export is FOCUS cost in Parquet" failed

  • Likely cause: the export's settings differ from Step 1, or the path prefix doesn't match the export. The message names the setting
  • Fix: check the export's type of data is Cost and usage details (FOCUS), its dataset version is 1.0r2, and its format is Parquet. If the export's type of data is wrong, create a new export with the settings in Step 1. Check the path prefix ends with the export's name, and the storage account is the one the export writes to.

Adding the account fails with "is already connected"

  • Likely cause: another Azure account in SELECT already reads this export, or another export of the same billing scope. The message names it
  • Fix: keep the existing account, or delete it under Settings → Azure before adding the new one.

The account is connected, but Cloud spend shows - for classic compute

  • Likely cause: the export doesn't cover the subscription your Databricks workspace runs in, or Databricks' default tags were removed from its resources
  • Fix: check the export's scope includes the workspace's subscription, and that no Azure Policy removes or overwrites Databricks' default tags.

Stuck? Reach out to your SELECT contact with the failed check's message. It includes the Azure error code, which is usually all we need.

Get up and running in less than 15 minutes

Connect your Snowflake, Databricks, or BigQuery account and instantly understand your savings potential.

CTA Screen