Forum Discussion
Published agent from Foundry doesn't work at all in Teams and M365
This is not a permissions, MCP, or model issue.
Azure AI Foundry agents require the InfoConnect Agent app to be explicitly installed in the Teams chat, channel, or meeting where the agent is used. Until InfoConnect is installed in that context, Teams will always return “Sorry, something went wrong”, even for trivial prompts.
The “Permissions needed” warning refers to missing InfoConnect installation, not Entra ID or RBAC permissions.
Fix:
Install InfoConnect Agent via + Apps in Teams, then invoke the Foundry agent. After this, the agent works as expected.
Organization-scope publishing failures are a known platform limitation; shared scope is currently the only reliable option.
- AlexeyPrudnikovJan 22, 2026Copper Contributor
Could you please give more details on installing the agent via Apps? Is there any piece of documentation telling that? What are the precise steps for installing agent?
I have several questions
1) I didn't change anything, but my agents at least are able to respond now. I communicate with them through MS Teams -> Copilot -> My agent. When I ask simple questions the agents respond, but when I ask the question related to calling my MCP servers they response with an error. I created a new agent and configured only one stable AS/400 MCP server which is always available. But even now I receive errors. How can I fix that?2) When I go to MS Apps I see only one Foundry agent identity in the list of available apps despite the fact that I have created several agent identities. When I click on 'Manage your application' on this identity - again I see 'The app doesn't have any permissions'. Why? And why didn't the other identities appeared despite the fact that I had created several through the same flow?
3) When I try to add my agent to any of channels in my organization I go to the channel-chat, click 'Add agents and bots' -> there are no agents of mine. Why? But when I click 'Copilot' or Apps -> Manage your apps in the MS Teams application I can see my agents in the list.
Thanks for your response in advance!