Knowledge Base Bot: Technical Documentation
  • Knowledge Base Bot: Technical Documentation
  • Setting up
    • Prerequisites
      • Set up Azure
      • Install PowerShell modules
      • Install Azure CLI
      • Install Bicep CLI
      • Install Python
    • Pre-deployment
      • Create an app registration
      • Configure access policies
    • Deploy the code and Azure resources
    • Post-deployment
      • Execute post-deployment setup
      • Run the indexer script
  • RESOURCES
    • Architecture
Powered by GitBook
On this page
  1. Setting up

Deploy the code and Azure resources

PreviousConfigure access policiesNextPost-deployment

Last updated 8 months ago

  1. Download the Knowledge Base Bot code and deployment script.

  2. Extract the files from the zip folder to the C drive.

  3. Review the contents in the folder. It should contain a template and a deployment script.

  4. Right-click on the PowerShell file and select Run with PowerShell. The PowerShell console window will pop up on your screen.

  5. Enter the following values for each input field as detailed below:

    1. $ResourceGroup: Name of the resource group where you want to deploy the Azure resources.

    2. $ClientID: Client ID

    3. $TenantID: Tenant ID

    4. $ClientSecret: Client secret

    5. $webAppURL: Web app URL

    6. $KeyVaultURL: Key Vault URL

  6. After the values have been provided, a “Login successful” message will appear.

  7. Select the subscription and tenant for code deployment.

  8. After selecting the subscription, zip compression begins (may take over 10 minutes).

  9. Once completed, code deployment to the web app starts. A message will appear to confirm successful deployment: “Deployed code to web app. Site is ready to use.”.

  10. Add the site URL as a redirect URI in Azure Active Directory by following these steps:

    1. Navigate to Azure Active Directory.

    2. Select App registrations from the left panel.

    3. Select the app.

    4. Select Redirect URIs.

    5. Add the site URL to the list and select Save.

    Note: The URL should be in this format: https:///<WebAppURL>getAToken