Skip to content

Commit 1493ef7

Browse files
Merge pull request #127422 from jimchou-dev/patch-5
Update quickstart-botframework-integration.md to use managed identity
2 parents 13fa2e8 + d9e43a5 commit 1493ef7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/communication-services/quickstarts/chat/quickstart-botframework-integration.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ To use Azure Communication Services chat as a channel in Azure Bot Service, firs
4242

4343
### Create an Azure Bot Service resource
4444

45-
First, [create an Azure Bot Service resource in the Azure portal](/azure/bot-service/abs-quickstart?tabs=userassigned). Communication Services Chat channel supports single-tenant bots, managed identity bots, and multitenant bots. This example uses a *multitenant* bot.
45+
First, [create an Azure Bot Service resource in the Azure portal](/azure/bot-service/abs-quickstart?tabs=userassigned). Communication Services Chat channel supports managed identity bots and single-tenant bots.
4646

47-
To set up a single-tenant or managed identity bot, review [Bot identity information](/azure/bot-service/bot-builder-authentication?tabs=userassigned%2Caadv2%2Ccsharp#bot-identity-information).
47+
This example demonstrates how to use a *[managed identity](/azure/bot-service/abs-quickstart?tabs=userassigned#bot-identity-information)* with your bot. If you're instead using single-tenant bot, refer to the instruction for setting up [single-tenant Bot identity](/azure/bot-service/abs-quickstart?tabs=singletenant#bot-identity-information).
4848

49-
For a managed identity bot, you might have to [update the bot service identity](/azure/bot-service/bot-builder-authentication?tabs=userassigned%2Caadv2%2Ccsharp#to-update-your-app-service).
49+
For managed identity bots, make sure to also [update your app with Bot Service identity](/azure/bot-service/abs-quickstart?tabs=userassigned#to-update-your-app-service) to ensure proper configuration.
5050

5151
### Get the bot's app ID and app password
5252

@@ -101,12 +101,14 @@ The final step to create a bot is to deploy the web app. For this quickstart, us
101101

102102
1. In Visual Studio, open the [Echo Bot project](https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/02.echo-bot).
103103

104-
1. In the Visual Studio project, open the *Appsettings.json* file. Paste the [Microsoft app ID and app password](#get-the-bots-app-id-and-app-password) you copied earlier:
104+
1. In the Visual Studio project, open the *Appsettings.json* file. Populate the following with the [Microsoft app ID](#create-a-messaging-endpoint-for-the-bot) and tenant ID:
105105

106106
```json
107107
{
108-
"MicrosoftAppId": "<App-registration-ID>",
109-
"MicrosoftAppPassword": "<App-password>"
108+
"MicrosoftAppType": "UserAssignedMSI"
109+
"MicrosoftAppId": "<Client ID of the user-assigned managed identity>",
110+
"MicrosoftAppPassword": "", // Not applicable. Leave this blank for a user-assigned managed identity bot.
111+
"MicrosoftAppTenantId": "<The tenant ID of the user-assigned managed identity>"
110112
}
111113
```
112114

0 commit comments

Comments
 (0)