Forum Discussion

ShwetaI's avatar
ShwetaI
Icon for Microsoft rankMicrosoft
Dec 27, 2025

Unable to publish Foundry agent to M365 copilot or Teams

I’m encountering an issue while publishing an agent in Microsoft Foundry to M365 Copilot or Teams. After creating the agent and Foundry resource, the process automatically created a Bot Service resource. However, I noticed that this resource has the same ID as the Application ID shown in the configuration.

Is this expected behavior? If not, how should I resolve it?

I followed the steps in the official documentation:
https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/publish-copilot?view=foundry

Despite this, I keep getting the following error:

There was a problem submitting the agent. Response status code does not indicate success: 401 (Unauthorized). Status Code: 401 

Any guidance on what might be causing this and how to fix it would be greatly appreciated.

 

No RepliesBe the first to reply

Resources