Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Connect to SQL Server ...
Finance forum

Connect to SQL Server on Azure VM

(0) ShareShare
ReportReport
Posted on by 144

Hello,

we are trying to connect to the SQL Server on a Dynamics 365 for Finance and Operations 8.1 Virtual Machine. The VM was deployed online on azure over LCS.

We tried to connect to the Server from several other servers in different networks by ODBC (with ODBC Driver for SQL Server Version 12.00.5000, with SQL Server Native Client 11.0 and with SQL Server SQLSRV32.DLL Version 10.00.17134.01) and with SQL Management Studio. Error: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections"

We followed the instructions on this doc: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sql/virtual-machines-windows-sql-connect

That means we:

1. Enabled the TCP/IP protocol in the SQL Server 2016 Configuration and made sure the sql server listens on port 1433

2. Configured a firewall rule for inbound TCP port 1433

3. Enabled SQL Server Authentication in the SSMS and allowed remote connections

4. Configured the network security group on the Azure portal of the VM to allow inbound traffic on port 1433

Has anyone tried to connect to a D365FO-VM-SQL-Server before and found a solution for this?

Thank you for any help,

Tino

Categories:
  • Suggested answer
    Tino Profile Picture
    Tino 144 on at
    RE: Connect to SQL Server on Azure VM

    We have found a solution to this.

    There needs to be an endpoint to allocate the incoming request to the sql port on the vm.

    Open the azure portal, go to the virtual machine, then to settings -> networking

    Open the network interface that is connected to the vm

    On the network interface, go to settings -> properties and open the load balancer

    On the load balancer, go to settings -> inbound nat rules

    Add a new inbound rule for MS SQL and port 1433 (or another one, depending on which port the sql server listens)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans