Trouble connecting my bot azure to my webapp

Mathis LAURENT 40 Reputation points
2025-07-22T15:37:21.14+00:00

Hello,

I find myself having trouble connecting my azure bot to my webapp.

I’ve checked the credentials and they are right but the bot is still not allowed to access my api on my webapp. I’ve also activated the authentication to my webapp via Microsoft and gave the access_as_user permission to my api to my bot through azure entra.

My bot is still unable to properly work and I have this message : There was an error sending this message to your bot: HTTP status code Unauthorized.

(Also my bot is working fine on bot framework emulator it is when I test it through web chat that there is an issue.)

I also tried following this : https://learn.microsoft.com/en-us/azure/bot-service/bot-service-troubleshoot-authentication-problems?view=azure-bot-service-4.0&tabs=csharp#enable-security-localhost where the connection of the bot to the channels ends up with the expected HTTP/1.1 301 Moved Permanently but the connection of the channel to the bot test ends up in curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to ivr-sr-bot.botapps.amat.com:443 which doesn't seem like it is expected.

Have you got any lead on it ?

Thanks

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
0 comments No comments
{count} votes

Accepted answer
  1. Sina Salam 22,576 Reputation points Volunteer Moderator
    2025-07-31T21:03:31.4633333+00:00

    Hello Mathis LAURENT,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having challenges connecting your bot azure to your webapp.

    This is a comprehensive and unified guide on this platform, it provides a real-world resolution:

    https://learn.microsoft.com/en-us/answers/questions/1681360/bot-not-working-webchat-channel-giving-http-401-un

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.