Now that the Durable Task extension for Microsoft Agent Framework is GA, this walkthrough shows a .NET 10 isolated worker where a two-agent WorkflowBuilder graph runs as a Durable Functions orchestration.
Key points
- ConfigureDurableWorkflows turns a WorkflowBuilder graph into a Durable Functions orchestration, so you write no orchestrator function.
- Register Foundry agents with a stable ProviderKey such as "foundry.v1"; otherwise durable sessions fail with a history ownership error.
- Each registered agent becomes a durable entity with its own endpoint, next to /api/workflows/{name}/run and /status/{runId}.
- waitForResponse waits 10 seconds by default, timeoutSeconds raises it up to 200, and a timeout returns 202 with the run id.
- The host uses the azureManaged storage provider against DTS_CONNECTION_STRING; the DTS emulator shows run history on port 8082.
- Agent names with hyphens currently break the run with "Agent 'weather_assessor' not found" while the response is still a 200.
Why it matters
Teams that already run Agent Framework agents behind an HTTP trigger now get the hard part of Durable Functions for free: state, retries and run history come from the orchestration the extension generates, while the graph stays in ordinary agent code. The catch is that the durable session must know who owns a Foundry conversation, so ProviderKey becomes configuration you cannot quietly change once sessions exist, and the agent registration moves from optional to required. Before adopting it, check the preview status of the Foundry package, the default 10-second wait, and the current hyphen bug in agent names.
Real-world use
- A multi-agent chain where one agent's assessment feeds the next, such as a weather check followed by itinerary planning.
- Agent runs whose tool calls outlast an HTTP request, started without waiting and polled through the status endpoint.
- Keeping Foundry conversation history bound to a durable session across runs and host restarts.
This summary was generated by the agent from the original post on Jaliya Udagedara. The full text and all rights belong to its author and publisher. Go to original