Connecting to Azure SQL from Azure Databricks with firewalls

Ryan_Chynoweth
Databricks Employee
Databricks Employee

We are trying to connect to an Azure SQL Server from Azure Databricks using JDBC, but have faced issues because our firewall blocks everything. We decided to whitelist IPs from the SQL Server side and add a public subnet to make the connection work.

Is this a good practice? Is it secure? Is there a better way?