- Clone the repository to your system.
- The deployment script uses Az modules, if you have AzureRM installed, remove it before running this script.
To remove, run this command:
Uninstall -AzureRM
. - Upgrade to Powershell 5.1.22000.653 or later. Run
$PSVersionTable.PSVersion
to check the installed version. - Install .Net 3.1 SDK. Download
- Install npm. Instructions
- Run the below command in powershell (run-as admin).
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
This will allow you to runDeployQBotInteractive.ps1
. By default, the execution policy is restricted. You may change it back to restricted after deployment is completed.
The Qbot deployment scripts are aimed at providing a quick and painless way of deploying the Qbot app
In Powershell, navigate to Scripts
folder and run DeployQBotInteractive.ps1
script.
The script requires certain modules to run. Enter Y
to allow script to install/import the required modules and continue with the deployment.
The script will prompt you to login with the following accounts:
- M365 account: Login with a user from the M365 tenant where the AAD apps will be registered. This is tenant typically the organization where QBot will be used. This user must have the ability to create AAD applications.
- Azure Account: Login with a user account that can create resources in the Azure subscription to which QBot will be deployed.
The script will ask you to choose a subscription and region for deployment.
The script will next ask you to enter organization's information that will be used to create application manifest:
- https:// URL to the organization's website.
- https:// URL to the organization's privacy policy.
- https:// URL to the organization's terms of use.
- Organization's name.
Note: Deployment will start after this step and may take upto 15 minutes to complete.
The script will ask you to confirm zip deployment. Enter Y
to proceed.
Script will launch a url for admin consent to certain application permissions. Login with a user account who has a global admin role in the M365 tenant to grant consent.
The script will create an application package and drop the zip file in the scripts
folder. Add the application package to your organization's app catalog.
The script will write deployment logs to deployment.log
file in the scripts
folder. If a deployment fails, check the deployment.log
file for failure reason.
Make sure that you have upgraded to Powershell 5.1.22000.653 or later. Run $PSVersionTable.PSVersion
to check the installed version.
This interactive script is responsible for installing all the dependencies & gathering the necessary fields from the maintainer to run the New-QBotDeployment
script.
This is the output of the dotnet publish
command from the web directory. This is the running code for Qbot.
This file is built at runtime and deployed.
If you want to update the application logic (REST APIs or React App), you can make the changes locally and deploy them to the App Service instance.
You can deploy directly from Visual Studio. Right click the web project and select Publish. Learn more
You can also prepare a zip package and deploy it. Learn more
Make sure you select the App service instance that was deployed previously. (
qBot-XXXXX-webapp
)