I am working in the Synapse Workspace and trying to connect to AWS RDS from the Synapse Notebook.
Whenever I try to connect, it throws the below timeout error -
The TCP/IP connection to the host my-host, port 1433 has failed.
Error: "connect timed out.
Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port.
Make sure that TCP connections to the port are not blocked by a firewall.
To check whether I can ping the host from the Synapse Notebook - I tried the below code -
import subprocess
temp = subprocess.Popen(
['ping', '-c 1', 'my-host'], stdout = subprocess.PIPE)
output = str(temp.communicate())
print(output)
and this throws
ping statistics ---\n1 packets transmitted, 0 received, 100% packet loss
I get that this is the timeout error and the notebook cannot reach the server. What is surprising is, if I try to connect to the same AWS RDS Server by creating a linked service from the Synapse pipeline, it connects successfully.
On my source AWS RDS, do I need to open the firewall for Synapse notebooks specifically? Is there any endpoint that I should mention in my notebook?
Also, Isn't it handled at the resource group level?
Any help is appreciated.
Thank you,
Sanket Kelkar