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

Notifications

Announcements

Community site session details

Community site session details

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

Encryption Key

(0) ShareShare
ReportReport
Posted on by 18
Hi guys,
 
I have a problem when i try to create and import an encryption key.
 
Enviroment Structure:
  • Database: Azure SQL
  • Busines Central: OnPrem v20
  • 2 Azure Active Directory login and 2 NavUserPassword
I am using this commands:
 
New-NAVEncryptionKey -KeyPath C://Keys//BC20_OGOZA_PRE_NUP.key
 
Import-NAVEncryptionKey -ApplicationDatabaseName BC20_OGOZA_PRE_NUP -ApplicationDatabaseServer srv-backendbbdd-pro.database.windows.net -KeyPath C://Keys//BC20_OGOZA_PRE_NUP.key -ApplicationDatabaseCredentials $credObject
 
$credObject is a variable of the type pscrendential
 
This is the error:
Import-NAVENcryptionKey : Unable to establish a connection to the SQL Server or database.
This could be due to the following reasons, among others:
* SQL Server did not start.
* The database does not exist.
* The NAV Server account was not granted proper permissions.
 
Thank you very much
 
Regards
Vicente
I have the same question (0)
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,807 Super User 2026 Season 1 on at
    Most probably the database is called differently. Could be that You are using the Instance (service) name instead of database?
  • YUN ZHU Profile Picture
    97,220 Super User 2026 Season 1 on at
  • VP-14050725-0 Profile Picture
    18 on at
    Hi,
     
    The instance is configurated with network service user and the authentication to Database is SQL user authetication.
    The instance (service) and the database name are the same to avoid confusion.
    I don't understand what's happening.
     
    Zhu i am a follower of your forum, i would appreciate it if you uploaded an example like this. In Spain we use this configuration a lot.
     
    Thanks yo so much
    Regards
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,090 Super User 2026 Season 1

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,090 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,277 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans