I'm creating my first chat bot in azure + c# (in general I'm novice in azure too). I've downloaded BotFramework v4 SDK Templatests for VS22 and use a simple echo bot. It works localy with Bot Framework emulator (with this endpoint http://localhost:3978/api/messages).
Now I want to install this bot on azure. I used these steps:
Bot services
manually.Messaging endpoint
uri and then I should be able to check my bot in Test in Web Chat
window. But I see nothing there, No hello message, no output, no errors. I only see that my test request message was sent.I've described pretty all steps I have done, what could I miss? I assume my application is not visisble for chat bot for some reason, how can I troubleshot it? Any other suggestions are welcome.
UPDATE: Initially all 4 fields configuration in appsettings.json
in my c# application were missed.
Now they have the following values:
MicrosoftAppType
- still nothing. I don't know yet which value should be here.MicrosoftAppTenantId
- I found this value in Azure Active Directory
-> App registrations
-> My Azure Bot name
-> Overview
-> Directory (tenant) IDMicrosoftAppId
- I took this value from My azure bot service
page -> Configuration
-> Microsoft App ID (Manage Password)
MicrosoftAppPassword
- This value is taken from My azure bot service
page -> Configuration
-> Clicking on Microsoft App ID (Manage Password)
link -> New Client secret
-> Value
.I'm not 100% confident that all these values are taken from the right place and what value should be in MicrosoftAppType
UPDATE2:
I've found description for appsettings.json
fields here in section Bot identity information
. I assume I need to use UserAssignedMSI
MicrosoftAppType
, so the values are slightly modified:
"MicrosoftAppType": "UserAssignedMSI",
"MicrosoftAppId": "%Microsoft_App_ID_(Manage_Password)_from_bot_service_configuration%",
"MicrosoftAppPassword": "",
"MicrosoftAppTenantId": "%tenantId%"
still gives the same result without errors or any output.
Oh, my bot application is actually MultiTenant
app, as soon as I've changed it, it became working. I have a question whether I can have it configured as singletenant, but it's probably a diff question. Resolved.