echo bot deployment - works locally but not on web app

Ben Howey 5 Reputation points
2024-07-03T07:38:39.2233333+00:00

I am trying to deploy a sample echo bot from here: https://github.com/microsoft/BotBuilder-Samples/blob/main/samples/python/02.echo-bot/app.py I have it cloned locally and can successfully run it through the bot emulator. I have an azure web app and a bot resource that are part of a resource group. I have updated the AppId and AppPassword in the config.py to match the those in the bot resource. When I deploy to the web app, the app is running but I cannot access the bot through the web chat function in the bot resource. I tested it and added another simple end point which I can successfully reach, so I know the app is running. Any help would be great! I feel like its a permissions thing between the bot resource and the web app.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
847 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,911 Reputation points Microsoft Employee
    2024-07-03T12:10:16.04+00:00

    @Ben Howey I think you need to check if the config.py is correctly pulling the environment values from your app service. If you have not set them, try providing a default value and redeploy the app. Also, while creating the bot and app service, if you create the bot service first and app later, try to update its messaging endpoint after you create your App Service resource. See the steps here.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

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.