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: 

Dynamic IP address in databricks

Tiwarisk
New Contributor III

Everytime I am running a script in databricks which fetches data from a sql server(different Azure resource group) I am getting this error.

com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open server 'proddatabase' requested by the login. Client with IP address '20.57.54.71' is not allowed to access the server. To enable access, use the Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect. ClientConnectionId:86ac86b7-9f9e-44cf-9b07-9172fb511aaf.

I have whitelisted the databricks vnet on the sql server but and given all the RBAC but still getting this.

Tiwarisk_0-1732001112472.png

 

6 REPLIES 6

ameet9257
New Contributor III

Hi @Tiwarisk 

Have you whitelisted the entire address range or just one IP of VNET on the SQL Server? 

Amit Prajapati

Tiwarisk
New Contributor III

Yes I whitelisted ip range.

Tiwarisk
New Contributor III

The strange thing is that the ip in error is not even in the range of vnet ips.

ameet9257
New Contributor III

@Tiwarisk 

Ideally, this should not happen because I also use a similar setup with Private VNET. So whenever the databricks cluster is getting up it gets the IPs within the VNET.  

Please confirm if you have whitelisted the Private VNET IPs instead of the public ones. 

 

 

Amit Prajapati

Tiwarisk
New Contributor III

I did the public one

ameet9257
New Contributor III

@Tiwarisk ,

If your Databricks is under the secure VNET then whitelist the Private VNET address range.

 

Amit Prajapati

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