Forum Discussion

harikrishnansp1986's avatar
harikrishnansp1986
Copper Contributor
Dec 07, 2023

How to connect a sql database hosted in Azure VM from from on-premise server. Please advice

How to connect a SQL database hosted in Azure VM from from a on-premise server. Please advice

2 Replies

  • As mentioned there is no difference with any other SQL Server hosted on-prem. You have to check if TCP Port 1433 is open.

    You can use Powershell and DBATools and try below from your client computer

    Test-DbaConnection -SqlInstance <SQL Server Name>

    Regards
    Javier
  • olafhelper's avatar
    olafhelper
    Bronze Contributor
    There is absolute no difference in the way to connect to on-premise vs VM in the cloud; why do you think so?
    You just have to take care that an existing FireWall allows the access.

Resources