Databricks: Set Up Metastore & Map Azure Storage Account with Access Connector, Enable Unity Catalog

This guide walks you through setting up a Unity Catalog metastore in Azure Databricks, connecting it securely to an Azure storage account using the Access Connector, validating the setup, and enabling Unity Catalog for your Databricks workspace.


Step 1: Create a Storage Account and Container for Metastore

  1. Navigate to Azure Portal and create an Azure Data Lake Storage Gen2 account (must be in the same region as your Databricks workspace).
  2. Add a container for metastore-level storage. For example: mycontainer in mydatalakestorage.
  3. Note down the ADLS Gen2 URI: textabfss://mycontainer@mydatalakestorage.dfs.core.windows.net/unity-metastore This will be the root path for managed tables and volumes.

Step 2: Create Access Connector (Managed Identity) for Azure Databricks

  1. In Azure Portal:
    • Click “Create a resource” → Search for “Access Connector for Azure Databricks”.
    • Click Create.
    • Choose Subscription, Resource Group, Region, and enter a connector name (e.g., unity-access-connector).
    • On the Managed Identity tab, select System-assigned managed identity (recommended).
    • Click Review + Create.
  2. Grant Storage Access:
    • Assign the managed identity Storage Blob Data Contributor or higher role on the storage account or precise container.
    • This enables Databricks to write/read data.
  3. Note the resource ID: text/subscriptions/<sub_id>/resourceGroups/<rg>/providers/Microsoft.Databricks/accessConnectors/<name>

Step 3: Create the Metastore in Databricks and Link Storage

  1. Log in to the Databricks Account Console (), as Account Admin.
  2. Go to Catalog.
  3. Click “Create Metastore.”
  4. Fill the form:
    • Name for the metastore
    • Region (match storage, workspace)
    • ADLS Gen2 path: mycontainer@mydatalakestorage.dfs.core.windows.net/unity-metastore
    • Access Connector ID: Paste the resource ID from previous step
  5. Click “Create.”

Step 4: Link Workspaces to the Metastore & Enable Unity Catalog

  1. After metastore creation, select workspaces to assign to the metastore.
    • Alternatively, return to Account Console → Catalog → Metastore → Workspaces tab → “Assign to workspace”.
  2. Confirm assignment: The workspace is Unity Catalog enabled.

Step 5: Validation Steps

  • Workspace Validation:
    • In Databricks Workspace UI, navigate to Data. Confirm you see Unity Catalog concepts (Catalogs, Schemas).
  • Storage Validation:
    • Access data via Unity Catalog and verify files/folders are created in the designated ADLS Gen2 storage account/container.
  • Security Validation:
    • Ensure data access controls and audits appear in the Catalog Explorer.
  • Metastore Validation:
    • Run a simple create table command in Databricks and check physical storage and permission enforcement.

Step 6: Setup Unity Catalog Objects

  1. Create Catalogs, Schemas, and Tables using SQL in the workspace: sqlCREATE CATALOG my_catalog; CREATE SCHEMA my_catalog.my_schema; CREATE TABLE my_catalog.my_schema.my_table (id INT, name STRING);
    • Data will be stored in the mapped container, managed by Unity Catalog.
  2. Create External Locations if needed:
    • For additional storage, register external locations for external tables.

Key Notes & Troubleshooting

  • Global Admin permissions may be required for setup; SCIM connector recommended for user/group sync.
  • You must co-locate storage, connector, metastore, and workspaces in the same region.
  • Managed identities via Access Connector are preferred over service principals for security and simplicity.

By following these steps, you will secure, govern, and validate storage and workspace integration with Unity Catalog in Azure Databricks, ready for enterprise-scale Lakehouse governance.

Related Posts

Professional Certified FinOps Engineer improves financial performance visibility systems

Introduction In the modern landscape of cloud infrastructure, technical expertise alone is no longer sufficient to drive enterprise success. The Certified FinOps Engineer program has emerged as…

Read More

Complete Cloud Financial Management Guide for Certified FinOps Manager

Introduction The Certified FinOps Manager program is designed to bridge the widening gap between cloud engineering and financial accountability. As cloud environments become more complex, organizations require…

Read More

Industry Ready FinOps Knowledge Through Certified FinOps Architect Program

Introduction The Certified FinOps Architect certification is designed to help professionals bridge the gap between cloud financial management and operational efficiency. This guide is tailored for working…

Read More

Advance Your Data Management Career with CDOM – Certified DataOps Manager

The CDOM – Certified DataOps Manager is a breakthrough certification designed for professionals who want to master the intersection of data engineering and operational agility. This guide…

Read More

Future focused learning with CDOA – Certified DataOps Architect certification

Introduction The CDOA – Certified DataOps Architect is a professional designed to bridge the gap between data engineering and operational excellence. This guide is written for engineers…

Read More

Level Up Your Data Engineering Skills with CDOE – Certified DataOps Engineer

Introduction The CDOE – Certified DataOps Engineer program is designed for engineers seeking to bridge the gap between data engineering and operational excellence. This comprehensive guide is…

Read More

Leave a Reply