cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can we use "Access Connector for Azure Databricks" to access Azure SQL Server?

GCera
New Contributor II

Is it possible to avoid using Service Principal (and managing their secrets) via the Python MSAL library and, instead, use the "Access Connector for Azure Databricks" to access Azure SQL Server (just like we do for connecting to Azure Data Lake Storage)?

The end goal is twofold:

  1. use spark.read.jdbc() to retrieve data from tables
  2. use pyodbc to execute INSERT/UPDATE queries
2 REPLIES 2

Wojciech_BUK
Valued Contributor III

You can't use databricks Access Connector or Managed Identity. 

There is option to use managed Identity but I don't believe it is very secure.

In managed resource group you can find Managed Identity ( one per workspace) that is being attached to Clusters ( VM) , you can try to grant access for this identity to your DB and get token in code , then pass it to spark read jdbc.

I have heard that with Unity federation both Oauth + data write will be possible infuture but not who knows when it will happpen ๐Ÿ˜ž

 

GCera
New Contributor II

Unfortunately, I guess the answer is no (as for today, see @Wojciech_BUK reply).

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group