Closed anishgurjar closed 3 months ago
@anishgurjar Yes, me and several others tested deploying this locally and in Azure.
Step 4 isn't necessary - you should be able to open the preview directly from Teams Toolkit in VS Code or from the CLI.
If you're seeing that error message in the chat, its coming from here: https://github.com/microsoft/teams-ai/blob/main/js/samples/04.ai-apps/h.datasource-azureOpenAI/src/app.ts#L77-L101
In the Azure Portal, go to the App Service that was provisioned to host the node application. Select the Log Stream under the Monitoring section. When that is connected, reproduce the issue in Teams with your bot and you may see more debug information logged to the Log Stream.
Let me know what you find, or if you want to connect via a Teams call and debug it together, I can do that too.
Hi @therealjohn , Thanks for the response! I was able to see the error using the Log Stream. I get a Request failed with status code 401 error. I'm not sure why that is the case, since the bot seems to work fine on my local environment. I appreciate you being open to doing a Teams call - I would love that! What's a good time for the call? I can do it anytime.
Hi @therealjohn , Thanks for the response! I was able to see the error using the Log Stream. I get a Request failed with status code 401 error. I'm not sure why that is the case, since the bot seems to work fine on my local environment. I appreciate you being open to doing a Teams call - I would love that! What's a good time for the call? I can do it anytime.
I messaged you on LinkedIn with a way to connect with me. Thanks!
The issue was the User Assigned Managed Identity did not have the role assignment. The steps to resolve it were:
Describe the bug Hi. This issue is targeted to both Teams Toolkit team and Teams AI team since I am not sure which team is responsible for this.
I am trying to chat over my data using Azure OpenAI and have that as a teams bot. Last week, the deploy to Teams feature was created mentioned here: https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/announcing-deploy-to-teams-from-azure-openai-studio/ba-p/4198388
The article goes into great detail about how to debug in local environment, which works perfectly fine on my local environment too. I'm able to chat over my data, get citations, have the feedback loop, and all the fancy features.
The article however provides no guidance on deploying this to cloud. I followed Teams Toolkit guidelines to provision, deploy and publish the app. I also validated the app. No errors in any of the stages.
However, when I preview the app on remote environment in Teams using dev.teams.microsoft.com portal, I always get "Bot encountered an error. Check source code". There is almost no doucmentation that I could find on how to exactly log those errors on application insights.
I am wondering if someone has ever tried deploying the actual TeamsAI library to a remote environment instead of merely debugging it in local environment.
To Reproduce Steps to reproduce the behavior:
What I have tried to troubleshoot:
Any help, from either of the teams is appreciated.