Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Encryption Key

(0) ShareShare
ReportReport
Posted on by 14
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
  • VP-14050725-0 Profile Picture
    VP-14050725-0 14 on at
    Encryption Key
    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
     
  • YUN ZHU Profile Picture
    YUN ZHU 75,848 Super User 2024 Season 2 on at
  • Suggested answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 4,011 Super User 2024 Season 2 on at
    Encryption Key
    Most probably the database is called differently. Could be that You are using the Instance (service) name instead of database?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans