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

Notifications

Announcements

No record found.

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,764 Super User 2025 Season 2 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
    95,329 Super User 2025 Season 2 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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans