Skip to main content

Notifications

Announcements

No record found.

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 207

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.

  • raelhefn Profile Picture
    raelhefn on at
    RE: Two VM with Dynamics 365 BC Instance on each one

    Hi Mohamed,

    Good News.

    Thank you.

  • Mohammed Marhoon Profile Picture
    Mohammed Marhoon 207 on at
    RE: Two VM with Dynamics 365 BC Instance on each one

    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

  • Mohammed Marhoon Profile Picture
    Mohammed Marhoon 207 on at
    RE: Two VM with Dynamics 365 BC Instance on each one

    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

  • Suggested answer
    raelhefn Profile Picture
    raelhefn on at
    RE: Two VM with Dynamics 365 BC Instance on each one

    Hi Mohamed,

    refer to this blog post for how to set up an encryption key and configure SQL Authentication on the database.

    chrisdsilvablog.wordpress.com/.../

    For more detail information please refer to :

    docs.microsoft.com/.../managing-encryption-keys-for-sql-server-authentication

    docs.microsoft.com/.../configuring-microsoft-dynamics-nav-server

    docs.microsoft.com/.../troubleshoot-common-errors-issues

    docs.microsoft.com/.../configure-sql-server-authentication

  • Mohammed Marhoon Profile Picture
    Mohammed Marhoon 207 on at
    RE: Two VM with Dynamics 365 BC Instance on each one

    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
    raelhefn on at

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans