How to generate Bearer Token for Azure Databricks with private networking?

Smriti, Smriti 65 Reputation points
2024-01-08T14:39:26.4966667+00:00

I want to deploy Some python notebooks in Azure Databricks Workspace.

The ADB workspace has two private endpoints (Ui and auth), and its public network access is disabled.

I have a self-hosted ubuntu agent for running the pipeline in which i have configured azure.databricks.cicd.tools module for ADB.

I have created a PowerShell script, to generate a bearer token using ADB enterprise application. User's image

Here is the script below:

User's image

When public network access in enabled, then bearer token is getting generated successfully. But when i disable the public access and use private endpoint, it is not generating the bearer token.

Please provide some solutions to this

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2024-01-08T19:45:28.5666667+00:00

    Hello Smriti, Smriti,

    When you are using Self hosted ubuntu agent, can you please confirm if your agent has access to the private endpoint?

    If it doesn't have access, please configure your agent to use a Vnet and a private endpoint for databricks. Then this will allows your self hosted aganet to communicate with databricks privately.

    Once you have configured your agent to use Vnet and private endpoint, please modify your PS script to use the private endpoint instead of the public url.

    I hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.