Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hi Stefan Straver,
Thank you for reaching out on the Microsoft Q&A.
It looks like you're having an issue with your Azure AI Foundry agent when attempting to publish it to Teams/M365 Copilot, specifically with a 400 (Bad Request) error related to your MCP server configuration. It’s great that everything works fine in the Azure AI Foundry playground, but the problem seems to arise when you deploy it.
Here’s a couple of things you could try:
Double-check MCP Configuration: Even though it works in the playground, ensure that the MCP server is configured correctly for the Teams environment. Sometimes configurations that work in development may not translate directly to production or other environments.
Review Activity Logs: In the Azure portal, check the activity logs to see if there are more details about the 400 error. Any accompanying error messages could provide insights into what might be wrong.
Test with Basic Inputs: Try communicating with the bot using basic inputs in Teams without any complex queries to see if the issue persists. This will help determine if the problem is related to specific requests or the MCP setup itself.
Check for Known Issues: Since you mentioned that this is a new feature still in preview, it’s possible there are known issues. It might be useful to look through the Azure feedback forums or the relevant documentation for any updates or reported bugs.
- Use the Identifiers: When seeking further support, use the provided Conversation ID and activity Id. They help Microsoft support quickly track down the issue.
Lastly, since it's in preview, there might still be some bugs that need addressing, so keeping an eye on Azure updates or reaching out to support with specifics could be beneficial.
Please let me know if there are any remaining questions or additional details, I can help with, I’ll be glad to provide further clarification or guidance.
Reference List:
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!