web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Two VM with Dynamics 365 BC Instance on each one

(0) ShareShare
ReportReport
Posted on by 12

We created two VM on Azure first once connected to Azure SQL Database using Encrypted Connection and working fine with two databased Application Database and Company Database.

Now Second VM we installed everything but we are not able to connect  we used export import key for the encrypted connection but still we are not able to connect.

  • Suggested answer
    raelhefn Profile Picture
    Microsoft Employee on at
  • Mohammed Marhoon Profile Picture
    12 on at

    Hi Raelhefn,

    Appreciate your time, and information shared with me.

    our BC up and running on the first VM, and accessible from public, the only issue the second VM we are creating for load balancing BC already installed, but we can not connect to Azure SQL Database due to the encrypted connection key not matching even we export it from first VM and import it on second VM.

  • Suggested answer
    raelhefn Profile Picture
    Microsoft Employee on at
  • Mohammed Marhoon Profile Picture
    12 on at

    Hi Raelhefn,

    Appreciate your all valuable information you do share, as i explain  we know all this configuration.

    Our issue we exported the key from the VM1 which its working, and import it on VM2 which the BC running. however on VM1

    stopped due getting the following error:

    The NAV application could not be mounted for database 'Business Central App (17-0)' on database server XXXXXX.DATABASE.WINDOWS.NET' due to the following error: The Microsoft Dynamics 365 Business Central Server instance cannot connect to the application database because it is using a different password encryption key than the one currently used on the database.

    vise versa if we re-do it on VM1 its working, but on VM2 stopped

  • Mohammed Marhoon Profile Picture
    12 on at

    Hi Raelhefn,

    We solve the issue thank you so much for your effort.

    What I did to solve the issue:

    1) Clear the DatabaseName setting in the Business Central Server instance configuration file

    Set-NAVServerConfiguration –ServerInstance BC170 –element appSettings –KeyName 'DatabaseName' –KeyValue ''

    2) Start the Business Central Server instance

    Start-NAVServerInstance –ServerInstance BC170

    3) Copy the Key from the Instance Working, and Past it in the Instance not working

    C:\ProgramData\Microsoft\Microsoft Dynamics NAV\170\Server\Keys\

    4) Mount the application database on the Business Central Server instance

    Mount-NAVApplication –ServerInstance BC170 –DatabaseServer XXXXXXXX.database.windows.net –DatabaseName 'XXXXXX' -DatabaseCredentials (Get-Credential)

    5) Restart the Business Central Server instance

  • raelhefn Profile Picture
    Microsoft Employee on at

    Hi Mohamed,

    Good News.

    Thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 665 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 418 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans