PAM360 supports the use of Microsoft Azure SQL, a robust cloud database solution offered as part of the Microsoft Azure platform, for its backend database needs. Migrating your data from a local MS SQL database to Microsoft Azure SQL allows you to leverage a fully-managed database service with numerous advantages.
This document provides a detailed guide on migrating your data from a local MS SQL database to Microsoft Azure SQL within PAM360. It covers all necessary steps and considerations to ensure a seamless and efficient migration process, allowing you to fully leverage the benefits of Microsoft Azure SQL.
The process of migrating data from Local MS SQL to Microsoft Azure SQL database involves three steps. The first step is to transfer the data from the local MS SQL database to the Microsoft Azure SQL database. Next, encrypt the data uploaded to the Microsoft Azure SQL database. Then, the final step is to import an SSL certificate into the PAM360 server.
ALTER PROCEDURE [dbo].[OptimizedInventoryProc] (@SQL1 varchar(max) ,@SQL2 varchar(max),@SQLSTR varchar(max)) AS BEGIN SET NOCOUNT ON; CREATE TABLE #PTRX_DUMMYGROUPPASSWORDS ( RESID BIGINT,ACCID BIGINT,USERID BIGINT,UNIQUEID BIGINT ); END

ALTER PROCEDURE [dbo].[PasswordActionNotificationProc] (@SQL1 varchar(max),@SQL2 varchar(max)) AS BEGIN SET NOCOUNT ON; DECLARE @SQl VARCHAR(MAX) EXEC(@SQL2) EXEC(@SQL1) SET @SQL ='SELECT TOP 1 * from Ptrx_DummyGroupNotification' EXEC(@SQL) SET NOCOUNT OFF; END
DROP SYMMETRIC KEY PMTE PMP_SYM_KEY DROP CERTIFICAP_CERT DROP MASTER KEY

ALTER PROCEDURE [dbo].[OptimizedInventoryProc] (@SQL1 varchar(max) ,@SQL2 varchar(max),@SQLSTR varchar(max)) WITH ENCRYPTION AS BEGIN SET NOCOUNT ON; CREATE TABLE #PTRX_DUMMYGROUPPASSWORDS ( RESID BIGINT,ACCID BIGINT,USERID BIGINT,UNIQUEID BIGINT ); END
CREATE MASTER KEY ENCRYPTION BY PASSWORD='<Password in masterkey.key file>' CREATE CERTIFICATE PMP_CERT WITH SUBJECT='Created by ManageEngine'; CREATE SYMMETRIC KEY PMP_SYM_KEY WITH ALGORITHM = AES_256, KEY_SOURCE = 'ZOHO_Key_Source', IDENTITY_VALUE = 'ZOHO_Identity_Value' ENCRYPTION BY CERTIFICATE PMP_CERT; OPEN SYMMETRIC KEY PMP_SYM_KEY DECRYPTION BY CERTIFICATE PMP_CERT;
For Windows: Download the Azure Portal's certificate from browser and import the mycertfile.cer certificate using the command:
importCert.bat <Absolute-Path-of-the-Certificate>
For Linux:
openssl s_client -showcerts -connect <%DNS_NAME%>:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.cer
importCert.sh<Absolute-Path-of-the-Certificate>
You have now successfully migrated from Local MSSQL Database to Microsoft Azure SQL Database. Now, Start the PAM360 server and connect to the PAM360 web client to retrieve the passwords.