11-18-2024 11:25 PM
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.
11-18-2024 11:56 PM
Hi @Tiwarisk
Have you whitelisted the entire address range or just one IP of VNET on the SQL Server?
11-19-2024 12:26 AM
Yes I whitelisted ip range.
11-19-2024 12:27 AM
The strange thing is that the ip in error is not even in the range of vnet ips.
11-19-2024 02:13 AM
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.
11-19-2024 02:55 AM
I did the public one
11-19-2024 03:45 AM
If your Databricks is under the secure VNET then whitelist the Private VNET address range.
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