A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hello @George, Jino
This is a good observation, and what you’re seeing is actually expected behavior today.
When an Azure AI Foundry Agent is published to Teams, users may still see a “User sign-in” prompt (redirecting to agent-oauth.azureml.ms) the first time they access it. This happens even if they are already signed into Teams.
Why this happens
Teams SSO does not automatically cover the agent runtime itself. The agent still needs its own authentication context with Azure AI Foundry, so the platform triggers a one-time sign-in/consent flow to establish that session.
What to expect
- The sign-in prompt is typically shown only on first use per user/session
- After successful authentication, users should not be repeatedly prompted unless session or token conditions require it
- This is separate from Microsoft Graph consent and is specific to the agent’s backend service
Current limitation
At the moment, there isn’t a documented setting to completely bypass this initial sign-in step and enforce seamless Teams SSO for Foundry agents. The Teams integration focuses on distribution and access, but authentication to the agent runtime is still handled separately.
What you can check
If the prompt appears repeatedly (not just once), then it’s worth validating:
- Conditional Access or MFA policies
- Token/session expiry behavior
- User permissions in the Foundry project
- Any additional tools or integrations that may require auth
Summary
- One-time sign-in prompt → expected
- Full seamless SSO (no prompt at all) → not currently configurable based on available documentation
References:
What is Microsoft Foundry Agent Service? (publishing/distribution overview): https://learn.microsoft.com/azure/foundry/agents/overview?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider
Foundry agents in Microsoft Agent 365 (Teams/blueprint creation & registry flow): https://learn.microsoft.com/azure/foundry/agents/how-to/agent-365?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider
Hope this helps clarify. Do let me know if you have any further queries.
Thankyou!