We are trying to connect from Azure Databricks to an Azure SQL Database on Private Endpoint. This works when the SQL DB has Public Endpoint enabled.
We have some success connecting from ADF via Databricks using Managed Integration Runtime but directly connecting from Databricks using Python Code via JDBC tends to fail with an error below. I went thru various documentation but tend to go back to start.
Please help :)
com.microsoft.sqlserver.jdbc.SQLServerException: Reason: An instance-specific error occurred while establishing a connection to SQL Server. Connection was denied since Deny Public Network Access is set to Yes (https://docs.microsoft.com/azure/azure-sql/database/connectivity-settings#deny-public-network-access). To connect to this server, use the Private Endpoint from inside your virtual network (https://docs.microsoft.com/azure/sql-database/sql-database-private-endpoint-overview#how-to-set-up-private-link-for-azure-sql-database). ClientConnectionId:371496b0-8ac1-4808-9868-ff5cc7dc2914
