Hello tbsonio,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are in need of how you can fix GET Request for Bot URL in Azure after deployment with Teams Toolkit.
This is a generic error, so, the below might be lengthy to cover all the aspect:
- Verify the Messaging Endpoint in Azure Bot Service that it matches your App Service URL with
/api/messages
- https://<app-service-name>.azurewebsites.net/api/messages - https://techcommunity.microsoft.com/discussions/teamsdeveloper/teams-bot-not-working-when-deployed/4287129 - In the Azure Portal, go to your App Service and confirm the environment variables in App Service that there are no typos or missing variables.
- Make sure your bot code handles requests at /api/messages. For an example:
// Node.js (Express) server.post('/api/messages', async (req, res) => { ... });
check similar answers here: https://learn.microsoft.com/en-us/answers/questions/2087014/my-teams-bot-cannot-access-the-openai-api-error-40// C# (ASP.NET Core) [Route("api/messages")] public class BotController : ControllerBase { ... }
- Enable application logging by using Log Stream to view real-time logs and check for startup errors.
- Use curl or Postman to send a GET request to test the endpoint manually:
GET https://<app-service-url>/api/messages
A 401 Unauthorized response suggests the endpoint exists but requires auth. A 404 means the route isn't mapped. So, check thoroughly. - Check the Deployment Center in your App Service for deployment errors and make sure all files (Your artifact, including
package.json
/.csproj
dependencies) are deployed correctly. - In the App Service, under CORS, add
https://*.botframework.com
as an allowed origin . - Check app registration in Azure AD, to verify the App Registration linked to your Bot has correct redirect URIs: https://token.botframework.com/.auth/web/redirect and permissions.
- Redeploy the bot via Teams Toolkit and restart the App Service from the Azure Portal.
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.