Microsoft conceptsDesigning and Implementing Multi-Agent AI SolutionsAgent orchestration
AI-500 develop multi-agent solutions in Azure: what to know
Study notes for this AI-500 domain: Magentic versus handoff orchestration, hosting agent tools on Azure Functions, and Foundry long-term memory.
3 min read
You know the orchestration patterns by name, then a mock question asks who owns the task after a handoff. In handoff, the receiving agent takes full ownership of the task. And in handoff autonomous mode, an agent with no explicit limit runs up to 50 autonomous turns.
01 What does the develop multi-agent solutions in Azure domain cover?
Think of it as three build tasks. You wire agents together with orchestrations such as Magentic and handoff. You host the tools they call, for example as an MCP server on Azure Functions.
And you give agents memory that lasts across sessions.
Three build tasks in this domain
- OrchestrateMagentic when the solution path is unknown; in handoff, the receiving agent owns the task.
- Host toolsMCP tool endpoints on Azure Functions, exposed at /runtime/webhooks/mcp.
- RememberLong-term memory: user profile, chat summary and procedural memory.
Study orchestration, tool hosting and memory as three build tasks.
02 When do you use Magentic or handoff?
Start with how much you know about the plan. Magentic suits complex tasks whose solution path isn't known in advance. For simpler coordination without complex planning, Microsoft recommends Group Chat instead.
Handoff works differently. It runs as a mesh in which agents connect directly, with no orchestrator. With agents as tools, the primary agent keeps responsibility, but after a handoff the receiving agent owns the task.
An unknown solution path points to Magentic; simpler coordination points to Group Chat.
03 How do agents call tools hosted on Azure Functions?
Once agents are wired up, they need tools. The Functions MCP extension exposes Streamable HTTP at the /runtime/webhooks/mcp endpoint. In Azure, a client that calls it without the mcp_extension key gets a 401 Unauthorized response.
For Microsoft Entra authentication from a Foundry agent, Functions currently supports only project managed identity. The queue-based Azure Functions tool needs the standard agent setup, not the basic one.
By default in Azure, calls missing the mcp_extension key get a 401.
04 What does Foundry memory add?
Memory in Foundry Agent Service is designed for long-term memory that is available across sessions. A memory store allows up to 100 scopes, with up to 10,000 memories per scope.
Memory is also something an attacker can target. Microsoft recommends prompt injection detection on all prompts entering or leaving the memory system.
Validate every prompt that enters or leaves agent memory.
Summary
- Magentic fits tasks with no known solution path.
- After a handoff, the receiving agent owns the task.
- In Azure, a call missing the mcp_extension key gets a 401 by default.
- The queue-based Functions tool needs the standard agent setup.
- A memory store allows up to 100 scopes.
Sources
- Microsoft Agent Framework Workflows Orchestrations - Magentic | Microsoft Learn (opens in a new tab)
- Microsoft Agent Framework Workflows Orchestrations - Handoff | Microsoft Learn (opens in a new tab)
- Model context protocol bindings for Azure Functions | Microsoft Learn (opens in a new tab)
- What is Memory? - Microsoft Foundry | Microsoft Learn (opens in a new tab)
- Connect an MCP server on Azure Functions to Foundry Agent Service | Microsoft Learn (opens in a new tab)
- Integrate Azure Functions with Foundry Agents - Microsoft Foundry | Microsoft Learn (opens in a new tab)