@@ -20,37 +20,31 @@ This bot has been created using [Bot Framework](https://dev.botframework.com/),
2020
2121## To try this sample
2222
23- - In a terminal, navigate to ` AuthFederatedCredBot `
24-
25- ``` bash
26- # change into project folder
27- cd 86.bot-authentication-fic
28- ```
29-
30-
31- - Open from Visual Studio
32- - Launch Visual Studio
33- - File -> Open -> Project/Solution
34- - Navigate to ` samples/csharp_dotnetcore/86.bot-authentication-fic` folder
35- - Select ` AuthFederatedCredBot.csproj` file
36-
3723- Create an user assigned managed identity.
38- - Record the client ID of the managed identity and add the same to appsettings.json .
39-
40- - Create Azure App and Bot
41- - Create App Registration
42- - This can be either Single or Multi tenant.
43- - Record the Application ID .
44- - Add the Federation Identity Certificate (FIC) to the App Registration .
45- - To create trust using the FIC, we need to link the managed identity to the App Registration.
46- - Click on the add credential under Federated Credential
47- - On the Add a credential page, select the Federated credential scenario as " Customer Managed Keys" .
24+ - Record the client ID of the managed identity.
25+
26+ - For a new bot
27+ - Create Azure App and Bot
28+ - Create App Registration
29+ - This can be either Single or Multi tenant .
30+ - Record the Application and Tenant ID's .
31+ - To create trust using the FIC, we need to link the managed identity to the App Registration. On the App Registration:
32+ - Click on the add credential under ** Certificates & Secrets ** , ** Federated credentials **
33+ - On the Add a credential page, select the Federated credential scenario as ** Customer Managed Keys** .
4834 - Select the managed identity that you created in the previous step.
4935 - Enter name for the credential and click on Add.
5036
51- - Create an Azure Bot in the desired resource group. Use the App Registration from the previous step.
52-
53- - Add the User managed identity created in previous step to the Azure App Service under Configuration -> Identity -> User Assigned Managed Identity.
37+ - Create an ** Azure Bot** in the desired resource group and use the App Registration from the previous step.
38+
39+ - For an existing bot
40+ - Navigate to the ** App Registration** for the ** Azure Bot**
41+ - To create trust using the FIC, we need to link the managed identity to the App Registration. On the App Registration:
42+ - Click on the add credential under ** Certificates & Secrets** , ** Federated credentials**
43+ - On the Add a credential page, select the Federated credential scenario as ** Customer Managed Keys** .
44+ - Select the managed identity that you created in the previous step.
45+ - Enter name for the credential and click on Add.
46+ - Navigate to the ** App Service** for the bot
47+ - Add the User managed identity created in previous step to the Azure App Service under Configuration -> Identity -> User Assigned Managed Identity.
5448
5549- Set appsettings.json variables
5650
@@ -62,28 +56,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com/),
6256
6357 - MicrosoftAppClientId: {clientId of managed identity}
6458
65- - Run the bot from Visual Studio:
66-
67-
68-
69-
70-
71- - Run the bot from a terminal or from Visual Studio, choose option A or B.
72-
73- A) From a terminal
74-
75- ` ` ` bash
76- # run the bot
77- dotnet run
78- ` ` `
79-
80- B) Or from Visual Studio
81-
82- - Launch Visual Studio
83- - File -> Open -> Project/Solution
84- - Navigate to ` 86.bot-authentication-fic` folder
85- - Select ` AuthFederatedCredBot.csproj` file
86- - Press ` F5` to run the project
59+ - A bot using Federated Credentials, like UserManagedIdentity, cannot be run locally. It must be deployed to Azure.
8760
8861## Deploy the bot to Azure
8962
0 commit comments