KLapper Deployment Guide
v2.0
This document details the deployment process for our KLapper virtual assistant builder.
The deployment process is on Azure Cloud, we need the following prerequisites:
These requirements will get provisioned by the PowerShell script
To fully leverage the capabilities of KLapper, we should be ready with the connectivity requirements to below platforms
KLapper is deployed in Azure App Services. To connect an app service deployed in Azure to on-premises systems like SQL/SharePoint/iManage you can follow one of the approaches outlined below
Requirements
Requirements
Requirements
Requirements
Download the installation zip file shared.
Extract zip file to the folder in a Windows 10, 11 or 2019 server with PowerShell configured
Make sure the user performing installation has Provisioning privileges in Azure.
Open Inputs.ps1 and fill in the details. Use Only Lowercase Alphabets and Numbers for resource names.
$adminFirstName | First name of the Administrator who manages KLapper |
$adminLastName | Last name of the Administrator who manages KLapper |
$adminEmail | Email address of the Administrator who manages KLapper |
$cosmosMongoDBName | This will be used to provision Azure Cosmos MongoDB account name |
$cosmosMongoDatabase | This will be used to provision a new Database inside the Cosmos MongoDB account |
$cosmosNoSqlDBName | This will be used to provision a new Azure Cosmos NoSql account name |
$cosmosNoSqlDatabase | This will be used to provision a new Database inside of the Cosmos NoSql account |
$appServiceWindowsPlanName | Windows app service plan name |
$appServiceLinuxPlanName | Linux app service plan name |
$frameworkAppServiceName | KLapper framework app service name |
$docConversionAppServiceName | KLapper document conversion service name |
$openAIServiceName | Azure Open AI service name |
$entraAppName | Azure Entra app name |
$builderUrl | Azure Entra app name |
| $containerName | In case if you are planning to add a custom domain for the KLapper builder app service. Please fill in or it will be the builder app service name Ex: https://appService.azurewebsites.net |
| $translatorName | Translation service name |
Navigate to the extracted folder in PowerShell
Run Provisioning.ps1
NOTE – During provisioning if there are any errors related to creating resource, the Press Ctrl + C and re run the script.
NOTE – Errors related to Open AI Deployment or Entra App related you can ignore and we can follow the manual steps to provision those resources
Copy the ssh command from the window
Open Command window as administrator
Paste the ssh command
Enter password
Execute below commands
sudo apt install unzip
unzip deploy-klapper.zip -d deploy-klapper
cd deploy-klapper
chmod +x deploy-klapper.sh
./deploy-klapper.sh
Enter Y
Script will stop
Type “exit” to exit ssh session
Paste the ssh command (copied from step 7)
Execute the commands below
cd deploy-klapper
./deploy-klapper.sh
Enter Y
Enter a NEW mongo db admin password (Only alphanumeric characters)
Enter a NEW mongo db user password (Only alphanumeric characters)
NVIDIA driver installed. Please reboot the system by pressing Restart from the Virtual Machine on Azure to continue.
Start another SSH session after the VM restarts
Paste the ssh command (copied from step 7)
Execute the commands below
cd deploy-klapper
./deploy-klapper.sh
Run MongoDB setup script (install-klapper-db-v1.2.sh)? [Y/N]: Enter N
Do you want to create the ENV files? [Y/N]: Y
Enter AZURE_COSMOS_DB_HOST: Copy from azure portal or from the script PowerShell
Enter AZURE_COSMOS_DB_KEY: Copy from azure portal or from the script PowerShell
Enter AZURE_COSMOS_DB_NAME: Copy from input file
Enter CONTAINER_ENV [default: prod]: prod
Enter MONGODB_HOST: <<Enter VM IP Address or HostName>>:20251
Enter MONGODB_PASSWORD: <<Enter Password>>
Login into docker using klapperv2.azurecr.io.
Username – we will share during the meeting
Password – we will share during the meeting
Once installation is completed – enter below command to check the service status
docker ps –a
Exit SSH session and go back to the folder where we have the PS1 script files
Open inputs.ps1 in notepad and fill in below details
$mongoHostname – <<VM IP Address/HostName>>
$mongoPassword <<Input the password>>
Run PostProvisioning.ps1
Post installation
Upgrade Docker in KLapper VM
Open the KLapper VM in PowerShell as an admin, using the SSH command from the installation
Type the following commands
cd deploy-klapper
docker compose -f docker-compose-fm.yaml down
docker pull klapperv2.azurecr.io/klapper-fm-app:prod
docker restart klapper-nginx
Finally restart the FM API Web Service from Azure
Verify that the docker services are running by using the command
docker ps -a
Once completed, the docker will be updated
Grant “Contribute” access to Entra App on the resource group, so KLapper can dynamically provision Azure Bot Services as part of assistant creation process
From the Add
custom domain panel, select the following: