Skip to content

Latest commit

 

History

History
184 lines (123 loc) · 8.52 KB

File metadata and controls

184 lines (123 loc) · 8.52 KB

Provisioning Azure Databricks

This guide helps an organization to set up set up Azure Databricks for Microsoft Fabric Mirrored Catalog. For more, see Microsoft Fabric Mirrored Catalog From Azure Databricks.


Prerequisites


Step 1: Create Azure Databricks workspace

You can create an Azure Databricks workspace in several ways (Azure Portal, Databricks CLI, ARM/Terraform templates). The fastest method is the Azure Portal — see Microsoft’s guide: Deploy a workspace using the Azure Portal for full details. The steps below walk through the Portal-based creation..

  1. Go to the Azure Portal.

  2. Click Create a resource and search for "Azure Databricks".

  3. Click Create and fill in the required fields:

    • Choose your Subscription and Resource Group (or create a new one).
    • Enter a Workspace Name.
    • Select the Premium pricing tier. create DataBricks workspace
  4. Click Review + Create and then Create.

  5. When deployment is complete, click Go to resource.

  6. Click Launch Workspace and copy the workspace URL for later. databricks connection new


Step 2: Add Users and Admins

  1. In your Databricks workspace, click your user icon (top right) > Settings.
  2. Go to Identity and access > Users.
  3. Click Manage and add users who need access.
  4. To make a user an admin: click the three dots ... next to their name, choose Edit, and turn on Admin access.

databricks workspace user management


Step 3: Enable External Data Access

External data access is required for Fabric to mirror Databricks data. Request your global tenant administrator to help you to set up this.

  1. In Databricks workspace, click the Catalog icon (left menu).
  2. Click the gear icon at the top of the Catalog pane and select Metastore.
  3. On the Details tab, enable External data access.
  4. If you see a message that only a global admin can enable this, ask your Azure admin for help. When complete the admin will see this view:

databricks external data access enabled


Step 4: Find Required Values in Databricks Workspace

You will need the following values for deployment process later. Be sure to record them for future reference.

  • Workspace URL:

    • Use the URL copied in Step 1 → Substep 6.
  • Personal Access Token (PAT):

    • In Databricks workspace, click your profile icon (top-right) and select Settings.
    • Navigate to Developer → Access tokens → Manage.
    • Click Generate new token, add a comment, and set the lifetime.
    • Copy the token (it begins with dapi...) and store it in a secure location. You will not be able to view this token again after closing the dialog.

    Generate Databricks PAT

  • Cluster ID (create a cluster / compute to obtain this): If you do not yet have a cluster, create one before running the deployment scripts (instructions below).

    How to create a cluster:

    1. In your Databricks workspace, click ComputeCreate Compute. Create Compute
    2. Enter a Compute name, choose the runtime version, worker type and node count appropriate for your workloads.
    3. Click Create. Wait until the cluster status displays Running (or Started) — you can verify this by the green dot next to the cluster name. Compute running

    How to get the Cluster ID:

    1. Open your Databricks workspace.
    2. In the left navigation pane, go to Compute.
    3. Select the cluster you want to inspect.
    4. On the cluster details page, click the ... (More Actions) menu in the top-right corner.
    5. Choose View JSON from the dropdown. A JSON window will open with the cluster configuration details. Compute running
    6. Search (Ctrl + F) for "cluster_id".
    7. Copy the value next to "cluster_id" — that’s your Cluster ID. Compute running

    Notes: Creating a cluster requires appropriate Databricks permissions. If you cannot create a cluster, ask your administrator to provision one or supply you with the Cluster ID.

  • Catalog Managed Location:

    • In Databricks workspace, go to Catalogs → Settings.

      Catalog Settings

    • Under External Location, select your location to view its details.

      External Location

    • The managed location is shown as a URL (commonly starting with abfss://).

      Catalog Location

Note: If you cannot find an external location, refer to the Troubleshooting section below.


Step 5: Connect Databricks to Fabric

  1. In your Fabric workspace, click + New item.
  2. Select Folder and name it databricks.
  3. Open the newly created databricks folder to navigate into it.
  4. Within the folder, click + New item again.
  5. Search for "Azure Databricks" and select Mirrored Azure Databricks Catalog.
  6. Choose New connection.
  7. Enter your Databricks workspace URL (copied earlier, e.g., https://adb-<WorkspaceID>.azuredatabricks.net).
  8. Name your connection, select Microsoft Entra ID for authentication, and sign in.
  9. Click Connect.

After setup, you can reuse this connection by choosing Existing connection.


Troubleshooting

1. If a managed location is not created by default in your Azure Databricks workspace

Follow these steps to manually create an external location:

  1. Navigate to External Locations in Databricks:

    • In your Databricks workspace, click Catalog (left menu).
    • Click the gear icon at the top and select External Locations.
    • Click Create Location.
  2. Find the storage path URL:

    • Go to the Azure Portal.
    • Navigate to your Azure Databricks resource group.
    • Locate and click on the Managed Resource Group.
    • In the managed resource group, find the Storage Account (usually named dbstorage<random-string>).
    • Click on the storage account and select Containers from the left menu.
    • Note the Container Name (commonly unity-catalog or similar).
    • Construct the storage path URL using this format:
      abfss://<container-name>@<storage-account-name>.dfs.core.windows.net/<optional-path>
      
    • Example: abfss://unity-catalog@dbstorage123abc.dfs.core.windows.net/managed-location
  3. Create or select a Storage Credential:

    • In the Databricks Create Location dialog, you'll need to select or create a Storage Credential that has access to the storage account.
    • If you need to create a new storage credential, you'll need the Access Connector ID:
      • In the Azure Portal, go to your Azure Databricks resource group.
      • Open the Managed Resource Group.
      • Look for the Access Connector for Azure Databricks resource (named something like <workspace-name>-accessconnector).
      • Click on the Access Connector resource.
      • Copy the Resource ID from the Overview page or Properties section.
    • Use this Access Connector ID when creating the storage credential in Databricks.
  4. Complete the external location setup:

    • Enter a Location Name for your external location.
    • Paste the storage path URL you constructed in step 2.
    • Select the storage credential from step 3.
    • Click Create to finalize the external location.
  5. Verify the managed location:

    • Once created, return to Catalogs → Settings to verify and copy the managed location URL.

Next Steps

For deploying Databricks resources, follow instructions the Deployment Guide for Databricks.