-
Notifications
You must be signed in to change notification settings - Fork 82
Enterprise People Bot Azure Resource Requirement
Like most bots, the Enterprise People bot has basic Azure resourcing requirement.
The following chart goes over all the different resources consumed by the bots and the functionalities they provide to the bot.
Resource | Description | Required (Local) | Required (Production) |
---|---|---|---|
Bot Service | Used to allow the bot to communicate with clients thru different channels. This is also required for the bot to perform OAuth calls against Microsoft Graph API by authenticating against Azure Active Directory. | Yes | Yes |
LUIS | Language Understanding service enables the bot to understand users’ utterances and translate them into intents and entities. | Yes | Yes |
Azure Active Directory | Provision the application’s ID and password for the bot. This allows the bot to be authenticated against when then allows the bot to setup authorization against the directory’s Graph APIs. | Yes | Yes |
App Service | Used to host the bot’s runtime. | No | Yes |
Azure Cosmos DB | Allows the bot to store state of a user’s conversation. | No | Yes |
Application Insight | Allows the bot to send telemetry data for bot monitoring and alerting. | No | No |
Blob | Used to store user conversation transcript for monitoring and analysis | No | No |
In this part, we will do the following:
- Provision the bot’s resources using Publishing Profile.
- Extracting keys for bot resources
- Configure OAuth Success Response Return URI
- Configure OAuth permission scope in AAD application.
- Configure OAuth connection in Azure Bot Service.
- Configure bot settings in Composer.
- On the left navigation pane, go to the “Publish” tab.
- Select “Publishing Profile” tab -> then click “Add new”.
- A new “Add new publishing profile” window will pop up. In “Publishing target”, select “Publish bot to Azure”.
- In the same window, give the bot a name (e.g., EnterprisePeopleBot)
- Click “Next”
- In the next window, select “Create new resource”.
- Click “Next”
- In the “Configure resources” window below, enter the corresponding information.
Azure Directory – select the Azure Active Directory tenant organization that owns the resources that we will provision. Subscription – select the Azure subscription within the AAD tenant organization that owns the resources that we will provision. Resource Group – select “Create new”, then enter a name for your new Azure Resource Group where the resources will be logically grouped under.
Name – enter a name for the resources that will be created for each Azure resource type. Region – select the Azure region (e.g., West US) that the resources will be provisioned to. LUIS Region – select the Azure region (e.g., West US) that the LUIS resources will be provisioned to.
- Click “Next”
- In the “Add resources” section, the three required resources (Microsoft Application Registration, Azure Hosting, Microsoft bot Channels Registration) is already selected.
However, uncheck the following:
- Azure Cosmos DB
- Application Insights
- Azure Blob Storage
- Microsoft Language Understanding Prediction Account
- Microsoft QnA Maker
- Click “Next”
- Confirm your list of resources in the “Review & create” window
- Click “Create”
- At this stage, the Bot Composer will provision these resources above to Azure. You can see the progress in the pop-up on the top right corner.
- If completed successfully, you will see the message "Provision Success".