Set up the Databricks Connector for Google Sheets

To use the Databricks Connector for Google Sheets, you must first connect to your Azure Databricks workspace and select a SQL warehouse. This page describes how to set up the initial connection and how to switch to a different workspace.

Prerequisites

Connect to Azure Databricks workspace

After installing the Databricks Connector for Google Sheets, import data from Azure Databricks into Google Sheets by connecting to an Azure Databricks workspace:

  1. In the Google Sheets menu bar, click Extensions > Databricks Connector > Launch sidebar to open the connector.

    Launch Databricks Connector in Google Sheets

  2. In the Login dialog, enter your Azure Databricks workspace URL, including the ?o=<workspace-id> parameter. For information about finding your workspace URL and workspace ID, see Get identifiers for workspace objects.

    • Per-workspace URL: https://adb-<workspace-id>.<random-number>.azuredatabricks.net/?o=<workspace-id>
    • Custom URL: https://<custom-url>.azuredatabricks.net/?o=<workspace-id>
  3. Click Sign in.

  4. A dialog prompts you to sign in or shows your login status.

  5. After logging in, select which SQL warehouse to use. In the Databricks Connector sidebar, under the New import tab, choose a Databricks SQL warehouse by clicking the circle in the upper right of the connector sidebar and selecting your preferred Databricks SQL warehouse. The connector starts the chosen SQL warehouse.

    Switch DBSQL warehouse in Google Sheets connector

Change Azure Databricks workspace

To change the Azure Databricks workspace you are connected to:

  1. Select Extensions > Databricks Connector > Change workspace.
  2. Enter the new workspace URL, including the ?o=<workspace-id> parameter, and authenticate to the workspace.

The Databricks Connector for Google Sheets works with workspaces that use front-end Private Link. The connector runs in Google's infrastructure, so it can't connect over Private Link. Instead, an account admin adds a context-based ingress rule that lets only the connector reach the workspace API. The rule doesn't change how your policy handles other traffic, and each request runs with the permissions of the signed-in user.

You must be an account admin to complete these steps. Create the ingress policy before you enable public access, so that the workspace doesn't accept unrestricted public traffic at any point.

Create an ingress policy for the connector

A context-based ingress policy controls which requests can reach your workspace, based on the identity, request type, and network source of each request. See Context-based ingress control.

  1. In the account console, open or create the workspace network policy for your workspace. See Access network policies. Account-level network policies don't support this source.
  2. On the Ingress tab, under Public network access, make sure Allow access from all public IPs is cleared. Public requests are then denied unless they match an allow rule.
  3. Add an Allow rule with the following settings:
    • Identity: All users and service principals, or Selected identities to limit who can use the connector.
    • Source: Partner Platforms > Databricks Connector for Google Sheets. This source is available in allow rules only, not deny rules, and has no region selection. See Allow partner platforms in context-based ingress policies.
    • Destination: Workspace API with the all-apis scope and Read + write permission. The connector doesn't need the Workspace UI destination.
  4. Save the policy and attach it to your workspace. See Attach a policy to workspaces. Policy changes typically take 10 to 15 minutes to take effect.

Enable public access on the workspace

When public access is disabled, all public requests, including requests from the connector, are blocked before the ingress policy is evaluated. Enabling public access doesn't open the workspace to all public traffic. The ingress policy from the previous step still evaluates each public request and allows only requests that match an allow rule. Your existing private endpoints don't change.

In the Azure portal, open the workspace and click Settings > Networking. On the Network access tab, set Allow Public Network Access to Enabled. See Verify VNet-injected workspace with public access enabled.

After the policy takes effect, confirm that the workspace still blocks other public traffic and that the connector can reach it:

  1. Disconnect from your VPN or any other network that routes to your private endpoints, so that your browser connects over the public internet.
  2. Open your workspace URL. Unless another allow rule in the policy covers your network, access is denied.
  3. In Google Sheets, open the Databricks Connector sidebar and run a query. The connector returns results.

If the connector can't reach your workspace, the 403 error that the add-on returns includes Request does not meet the requirements of the workspace's ingress network policy. To review denied requests, query the system.access.inbound_network system table, which records inbound requests that an ingress policy denies. Records are typically available within one hour. See Inbound network access events system table schema.

Next steps