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