Connecting to local database on Azure VM Using DBforge to try and connect to a local MSSQL database on an Azure Ubuntu 18 VM, I am getting this error:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify
that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open
a connection to SQL Server)


I have:


Enabled SSH on the inbound rules.
I can SSH into the Azure VM using PuTTY
I have tried both the host name (xx.eastus.cloudapp.azure.com) and the public IP address (13.82.xx.xx) to try and connect, both give this error.
I can connect to the website running on the VM by using the host name, and going to the public IP address shows the Apache landing page.
The website is running 100%, and I can log in, so the database instance is running.
I followed the advice here, and I confirm my server is listening on port 1433. (Log entry: Server is listening on [ 'any' &lt;ipv4&gt; 1433].)
Port 1433 is not blocked by a firewall. I have disabled the Azure firewall for testing purposes.
Various other answers suggest I must go into services.msc etc., but this is a Linux VM, so those won't work either.


I am getting the same error using SSMS, and none of the answers here seem to work for my specific case. All of them speak about connecting to an Azure SQL database, which this is not.

Any idea what else I can try?
Turns out I have neglected to set up a subnet in Azure portal. I am connected now.