I have a Google Cloud VM running Windows Server 2016 Datacenter with SQL Server 2017 installed.
I am using SSMS 2017 as my client, both locally and remotely.
I can RDP to the VM.
I can ping the IP of the VM.
I disabled the firewall on the VM.
I set the database to allow SQL Server authentication.
The SQLBrowser service is running in the server.
There are firewall settings on the Google Dashboard and I opened ports 1433, 1434 TCP and UDP on the project, nothing changed.
I can connect to the SQL Server instance with the same credentials using the same client running locally on the VM.
When I run PortQry it tells me ports 1434 and 1433 are FILTERED even though the firewall is disabled. That confuses me, maybe I don't understand the output of PortQry.
I get this error when I use the server\instance to connect remotely:
If I just use the server name I get this error:
Here is the firewall setting:
On your GCP Console, click on the Navigation Menu and Scroll down to Storage section and finally click SQL. You'll get a dialog box, go ahead and select Create Instance. Go ahead and input your desired Instance ID, Root Password and Zone.
SQL Server running on Google Cloud works with all of your familiar tools like SSMS and Visual Studio. Connect your existing workloads to the best of what Google Cloud has to offer.
I have the same problem with you. You should use the same Networks tags of your VM machine in the Firewall rules settings. Your VM machine tags Firewall rules Before, I set the targets to "Apply to all" and it didn't work. A little awkward!
I had same issue and I overcome with following settings with following GCP Firewall rules.
There is no need to disable firewall in GCP VM instance, better keep it on. To access your instance using SQL server management studio within your GCP VM's external IP address, you also need to add it in GCP network firewall rules too.
rulename1, Ingress, Apply to all, IP ranges: gcp external IP here, all, Allow, 900, default (For GCP VMs External IP Address)
rulename2, Ingress, Apply to all, IP ranges: your remote IP here, tcp:1433, Allow, 900, default (For Remote Server or Development Server IP Address)
There is no need to allow Edge traversal at all.
Hope this will help someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With