Set up App Service

The first step in deploying the bot involves creating a Linux web app using a .NET Core 3.1 runtime stack. This app service will host the bot microservice and serve as the messaging endpoint for the Bot. Follow the steps below to set up the app service for the Bot.

Prerequisite

Before deploying the EmpowerID Bot, ensure that users from your organization's Azure AD tenant are inventoried into EmpowerID. Azure AD accounts not registered or associated with an EmpowerID person object will not be authorized to use the Bot.

Procedure

  1. Login to your Azure account.

  2. Create a Linux App Service with the .NET Core 3.1 runtime stack.

  3. Go to the newly created App Service’s Configuration and click Advanced Edit.

     

  4. Copy and paste the JSON content below into the configuration JSON editor. The JSON content is the configuration required for the Bot; the value is empty for most keys. We will set the values gradually as we complete other steps in this series of documents.

    You will fill in the missing configuration values later. Note that the initial JSON content in the editor may “[ ].” Please remove this before adding the content below.

    [   {     "name": "AzRedisCache",     "value": "",     "slotSetting": false   },   {     "name": "CosmosDbAuthKey",     "value": "",     "slotSetting": false   },   {     "name": "CosmosDbContainerId",     "value": "",     "slotSetting": false   },   {     "name": "CosmosDbDatabaseId",     "value": "",     "slotSetting": false   },   {     "name": "CosmosDbEndpoint",     "value": "",     "slotSetting": false   },   {     "name": "EnableMultitenancy",     "value": "true",     "slotSetting": false   },   {     "name": "KeyVaultUrl",     "value": "",     "slotSetting": false   },   {     "name": "MicrosoftAppId",     "value": "",     "slotSetting": false   },   {     "name": "MicrosoftAppPassword",     "value": "",     "slotSetting": false   },   {     "name": "SupportsUserTenantMapping",     "value": "false",     "slotSetting": false   },   {     "name": "WEBSITE_HEALTHCHECK_MAXPINGFAILURES",     "value": "10",     "slotSetting": false   },   {     "name": "WEBSITE_HTTPLOGGING_RETENTION_DAYS",     "value": "2",     "slotSetting": false   },   {     "name": "WEBSITE_LOAD_USER_PROFILE",     "value": "1",     "slotSetting": false   } ]

     

  5. The Application settings page will list all the settings in the JSON content you pasted above. Click Save to save the settings.


In the next step, we will create Azure Cache for Redis

Set up Azure Cache for Redis

All steps in Deployment & Configuration of EID Bot