A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance
Hello @Jubin Soni ,
Welcome to Microsoft Q&A .Thank you for reaching out to us.
Based on the behavior described, the difference between the Playground experience and the published Teams channel appears to be related to the function-calling workflow is executed after publication, rather than the require_approval="never" setting itself. Function calling relies on two separate stages: the model must first decide to use a tool and then the tool execution flow must complete successfully. Differences between the Playground and the published runtime can affect either stage
Regarding the function-calling behavior different between Teams and the Playground - Yes. Once an agent is published, it operates as a managed Agent Application with its own deployment, identity, permissions, and runtime characteristics. Because of these differences, a tool that behaves as expected during Playground testing may require additional validation when accessed through Teams.
It is helpful to first determine whether:
- A tool call is never generated by the model.
- A tool call is generated but the execution flow does not complete successfully.
This distinction helps identify if the focus area needs to be on tool selection or tool execution.
Regarding if require_approval="never" guarantee tool execution - No , the require_approval="never" setting only removes the approval requirement before a tool can execute. It does not:
- Force the model to invoke a tool.
- Influence the model's tool selection decision.
- Automatically execute custom function logic.
- Guarantee tool execution across different channels.
Please check if the following steps help-
- Reviewing Agent Run Traces Review traces to determine:
- Whether a tool call is being generated.
- Whether the tool call completes successfully.
- Any tool input/output failures.
- Whether the issue occurs during tool selection or execution.
- Verifying the Active Published Version Please confirm that:
- Teams is using the same published agent version that was validated in the Playground.
- The tool exists in the active published version.
- Any recent tool or schema changes have been republished
- Validating Tool Selection Configuration Review:
- Tool descriptions.
- Tool instructions.
- Trigger conditions.
- Any configured tool_choice settings.
- Validating the Tool Execution Path If traces show that a tool call is generated but does not complete successfully, review how the tool is exposed to the published runtime. Documented Azure-native approaches include:
- Azure Functions
- OpenAPI tools
- Logic Apps actions
- Validating Identity and Permissions Published agents operate under their own identity and permissions boundary. Review:
- RBAC assignments.
- Managed Identity configuration.
- Access to downstream resources required by the tool.
- Validating Model, Region and SDK Compatibility As a secondary validation, please confirm:
- The selected model supports the configured tool type.
- The deployment region supports the required capabilities.
- Whether the behavior reproduces using the latest supported SDK version, since azure-ai-projects==1.0.0b11 is a beta release.
The following references might be helpful , please check them out
- Use function calling with Microsoft Foundry agents - Microsoft Foundry | Microsoft Learn
- Tool best practices for Microsoft Foundry Agent Service - Microsoft Foundry | Microsoft Learn
- Agent applications in Microsoft Foundry - Microsoft Foundry | Microsoft Learn
- Hosted agent permissions reference - Microsoft Foundry | Microsoft Learn
- Run Automated Workflows from Foundry Agents - Azure Logic Apps | Microsoft Learn
Thank you
Please "Accept" the answer with an "Upvote" if the response was helpful. This will be benefitting other community members who face the same issue.