I'm trying out the Azure bot Framework with the javascript SDK. I've tried setting up a bot using a User-Assigned Managed Identity.
I've been unable to get past an error "Http Status Not Found".
There's a GitHub issue, https://github.com/microsoft/BotFramework-Emulator/issues/2377, which says that User-Assigned Managed Identities cannot be tested using the bot Emulator software.
Can bots with User-Assigned Managed Identities be tested with the Azure Portal's "Test in Web Chat"? Or does the limitation in the github issue apply to testing in the web chat too?
Yes, it is possible to Test the bots created with User Managed Identity with "Test in Web Chat".
I have followed MSDOC and created a JavaScript Azure Bot.
Local Response:
Link the Bot with App Service:
App Service plan=>Apps=>select your App Service=>Go to Identity=>User Assigned Identity=>Add=>Select your Bot Identity:Bot Identity=>Properties, you'll be able to see Tenant ID, client ID and Bot Type. Copy them to use in code..env:
Change
Startcommand in Scripts section inPackage.jsonas shown below:Package.Json:
Azure Bot=>Configuration=>Message Endpoint:https://<app_name>.azurewebsites.net/api/messagesAble to Test Web Chat in Azure Bot: