approvals
19 TopicsAzure AI foundry SDK-Tool Approval Not Triggered When Using ConnectedAgentTool() Between Agents
I am building an orchestration workflow in Azure AI Foundry using the Python SDK. Each agent uses tools exposed via an MCP server (deployed in Azure container app), and individual agents work perfectly when run independently — tool approval is triggered, and execution proceeds as expected. I have a main agent which orchestrates the flow of these individual agents.However, when I connect one agent to another using ConnectedAgentTool(), the tool approval flow never occurs, and orchestration halts. All I see is the run status as IN-PROGRESS for some time and then exits. The downstream (child) agent is never invoked. I have tried mcp_tool.set_approval_mode("never") , but that didn't help. Auto-Approval Implementation: I have implemented a polling loop that checks the run status and auto-approves any requires_action events. async def poll_run_until_complete(project_client: AIProjectClient, thread_id: str, run_id: str): """ Polls the run until completion. Auto-approves any tool calls encountered. """ while True: run = await project_client.agents.runs.get(thread_id=thread_id, run_id=run_id) status = getattr(run, "status", None) print(f"[poll] Run {run_id} status: {status}") # Completed states if status in ("succeeded", "failed", "cancelled", "completed"): print(f"[poll] Final run status: {status}") if status == "failed": print("Run last_error:", getattr(run, "last_error", None)) return run # Auto-approve any tool calls if status == "requires_action" and isinstance(getattr(run, "required_action", None), SubmitToolApprovalAction): submit_action = run.required_action.submit_tool_approval tool_calls = getattr(submit_action, "tool_calls", []) or [] if not tool_calls: print("[poll] requires_action but no tool_calls found. Waiting...") else: approvals = [] for tc in tool_calls: print(f"[poll] Auto-approving tool call: {tc.id} name={tc.name} args={tc.arguments}") approvals.append(ToolApproval(tool_call_id=tc.id, approve=True)) if approvals: await project_client.agents.runs.submit_tool_outputs( thread_id=thread_id, run_id=run_id, tool_approvals=approvals ) print("[poll] Submitted tool approvals.") else: # Debug: Inspect run steps if stuck run_steps = [s async for s in project_client.agents.run_steps.list(thread_id=thread_id, run_id=run_id)] if run_steps: for step in run_steps: sid = getattr(step, "id", None) sstatus = getattr(step, "status", None) print(f" step: id={sid} status={sstatus}") step_details = getattr(step, "step_details", None) if step_details: tool_calls = getattr(step_details, "tool_calls", None) if tool_calls: for call in tool_calls: print(f" tool_call id={getattr(call,'id',None)} name={getattr(call,'name',None)} args={getattr(call,'arguments',None)} output={getattr(call,'output',None)}") await asyncio.sleep(1) This code works and auto-approves tool calls for MCP tools. But while using ConnectedAgentTool(), the run never enters requires_action — so no approvals are requested, and the orchestration halts. Environment: azure-ai-agents==1.2.0b4 azure-ai-projects==1.1.0b4 Python: 3.11.13 Auth: DefaultAzureCredential Notes: MCP tools work and trigger approval normally when directly attached. and I ndividual agents function as expected in standalone runs. Can anyone help here..!Approvals to shared mailbox
Hi, We use the "approvals" app in Teams to coordinate leave with colleagues and managers. The app works, but we still have to manually place the approved leave request in a shared mailbox. Is there a solution within the app "approvals" or via PowerAutomate to make this happen automatically? RC447Views0likes1CommentApprovals Not updating
I'm having a problem when retrieving the approvals created. Until 2024-12-26 at 13:16:48 UTC, when I created an approval, either through the application or through the API, it immediately appeared when I used get in the endpoint: https://graph.microsoft.com/beta/solutions/approval/approvalItems. Now I'm only able to see the approvals from before 2024-12-26 at 13:16:48 UTC, there is no record of the new approvals. I also noticed that, in the application, it's not showing the name of the person to whom the approval request was sent, only the name of the person who approved it, both for the new requests and for the old requests that have already been completed.59Views0likes0CommentsTeams Approvals for guest users
I've created a Inventory Sharepoint List and if a certain status is shown in the status column, a Approval request is sent out with the help of a Flow, to a recipient given within another column. This works fine for people in the organisation and the item get's updated accordingly. But I have a problem: Due to the nature of my organisation (non profit/sports club) some people are only registered as guest users within Teams. When I put their Email in the recipient column, the Flow works fine and sends them an approval request through the Teams App, but instead of giving them the opportunity to deny or accept the Approval Request, they get no option at all. I have read that this is happening because the person is only added as a guest user through Teams and should instead be added through Azure AD as a external user. Does anybody know if this would work?3.2KViews0likes2CommentsNo Fix Now option for vetting and aproval
I am trying to get approved for my Office 365 product listing. I got rejected, and I've been communicating over tickets with a Microsoft Operations rep. They have stopped responding. I see in documentation and other people's screenshots that they have a Fix now step they can use to upload materials. I don't see one in my portal. How do we get someone to respond? We have paying a customer that wants our product. We need to get approved ASAP in order to let our client use our product.Teams Approvals from ex-employees
Hi, We have had an employee leave who used to be in charge of sending out the Approvals requests, now when looking at the Approvals that have been 'approved' and which were initially sent by this employee we can no longer open any attachments included within those Approval requests as it says that we do not have authorisation - this is only happening with the requests from this mentioned employee. Is there a way of viewing these old attachments?510Views0likes1CommentShouldn't the site owner have the ability to approve SPO content?
In this situation, the owner of the company who has Full Control of the site has posted a new page in SharePoint. The approval notification came to me in Teams and did not go to him. He claims that after selecting "Review Approvals" on the top right of the page that there was nothing there. I thought site owners / users with Full Control permissions should have the ability to approve everything in SPO. Is there a specific section somewhere to see who has approval permissions?1.3KViews0likes3CommentsCan we amend Approvals flows or structure in Teams?
Our Marketing Team is experimenting with using Approvals in Teams for Media releases. Example: Draft media statement must go first to the business unit to approve content. Person 1 After that approval, it must go to the General Manager. Person 2 After that approval, it must go to the CEO. Person 3 After that approval, the media statement is then sent onto the Media. They have tried to setup a conditional approval whereby it must go to person 1 and then person 2 and then person 3. However, they do not want person 2 or 3 to see the draft before it is approved by person 1 - and also, person 3 should not see the draft before it is approved by person 2 There does not seem to be a way to tweak the default approval template / form. They tried creating their own template but the workflow does not allow for hiding the file from person 2 or 3. We looked at Power Automate templates and also tried to create our own Power Automate flow but we how no "Power" knowledge. Does anybody know of a way we can ensure the Approval stays inside Teams but also be able to tweak the underlying flows in the approvals? Thanks569Views0likes0CommentsIntranet Content Tracking
Hi all I am just wondering if there is anyone out there that has a good way to track when Intranet content needs to be updated or hasn't been updated in a while and should be checked. I have an intranet that has about 15 site collections and I am struggling with how to keep track of the changes that need to be made, have been made or need to be reviewed and I feel like I am not searching the right things because I can't find anything that is like what I am looking for. Ideally, I would love to have a list of all the pages and when they were last updated, who owns them, and have a flow that reminds people to update their page every quarter or something and also alerts me as the Intranet manager when things haven't been updated. Probably would also like a way for things to be added to this page list. Does anyone have any ideas?911Views0likes0Comments