.NET logo for ImadDhin articles on building AI agents with .NET on Azure.

Build AI Agents with .NET on Azure Functions: Durable Agent Framework GA

Microsoft’s Durable Task extension for Agent Framework is generally available. Here is how product teams should build AI agents with .NET that survive restarts, wait for approvals, and ship on Azure Functions.

Product teams that want to build AI agents with .NET can now treat durability as a shipping requirement, not a research spike. At Microsoft Ignite 2026, the Durable Task extension for Microsoft Agent Framework reached general availability for Azure Functions and self-hosted .NET apps.

This article is an ImadDhin product-engineering reading of Microsoft’s Durable Task extension GA post and the Ignite Azure Functions and Durable Task Scheduler updates. It separates what Microsoft shipped from what you still must design: tools, permissions, idempotent writes, and evaluation. Official hosting docs live on Durable Extension | Microsoft Learn.

.NET logo for ImadDhin articles on building AI agents with .NET on Azure.

What did Microsoft ship for .NET agents at Ignite 2026?

The Durable Task extension for Microsoft Agent Framework is generally available. For .NET on Azure Functions, the hosting package is `Microsoft.Agents.AI.Hosting.AzureFunctions`. For self-hosted .NET workers, Microsoft documents `Microsoft.Agents.AI.DurableTask`. Python packages are also GA; this guide focuses on .NET product teams.

Microsoft describes two capabilities that work together. Durable agents keep conversation and session state across requests so a restart or another instance can continue the same session. Durable workflows track multi-step work over time, including Agent Framework graph workflows run as Durable Task orchestrations, parallel multi-agent fan-out, and waiting for external events such as human approval without keeping a worker busy.

Ignite coverage also positions Durable Task Scheduler as the managed backend for Durable Functions, Durable Task SDK workers, and stateful agents, with enterprise controls called out alongside the agent extension. Confirm regional availability, private endpoints, and key management in your subscription before you promise a go-live date to stakeholders.

Why should a founder build AI agents with .NET instead of a chat demo?

Most failed agent projects stall after a polished demo: the first production incident loses mid-run state, duplicates a side effect, or cannot wait for a manager approval overnight. .NET shops already run ASP.NET Core APIs, Azure Functions, Entra identity, and Application Insights. Putting the agent on that stack keeps auth, secrets, and deploy pipelines in one operating model.

Microsoft Agent Framework is the consolidation path that followed Semantic Kernel and AutoGen. If your team already owns C# domain services, building AI agents with .NET means the agent calls the same typed services your product uses, instead of wrapping everything behind a separate Python island. That matters when the agent must write to ERP, CRM, or payment systems with the same validation rules as your UI.

A chat widget that answers FAQ is not the same product. Production agents schedule work, call tools, and change records. Durable execution is the difference between a demo that restarts cleanly and a workflow that resumes after a deploy. Pair this with our notes on human approval for AI agents before you open write tools.

How do durable agents and durable workflows differ in practice?

Use a durable agent when the user expects a continuing conversation and the model needs prior turns. Session state lives in the Durable Task backend, so the next message can land on another worker. Use a durable workflow when the job spans tools, timers, parallel branches, or an approval that may arrive hours later.

Microsoft’s GA narrative highlights a useful pattern: the interactive agent starts a workflow, returns an instance id, and continues chatting while the workflow runs independently. Later, the agent (or your UI) can check status or send an approval event into that instance. That splits “talking with the user” from “doing the long job,” which is how support and ops products should feel.

ConcernDurable agentDurable workflowBetter default for
Conversation continuity after restartPrimarySupportingSupport chat with tools
Multi-step job with fan-outSupportingPrimaryClaims, onboarding, order ops
Wait for human approval without burnVia external eventPrimary (`WaitForExternalEvent`)Refunds, vendor payouts
Graph-based Agent Framework workflowsHosted by extensionRuns as orchestrationExplicit planner or reviewer graphs
HTTP entry on Azure FunctionsBuilt-in agent endpointsOrchestration APIsServerless product APIs

Do not invent a third state store for the same run. Keep Durable Task as the in-flight engine, your database as the business record and audit ledger, and the system of record as the source of truth for money and inventory. That separation is covered more broadly in AI agent frameworks 2026.

When is Azure Functions the right host for .NET agents?

Azure Functions fits when traffic is bursty, you want managed HTTP endpoints for agents, and you already accept Durable Functions as the durability model. Microsoft documents that the Azure Functions hosting integration creates HTTP endpoints for configured durable agents and provides status and session management conveniences. Self-hosting fits when you already run containers or Kubernetes workers and need process control that serverless request timeouts would fight.

Azure Functions also gained .NET 11 support in the isolated model around Ignite. That is useful for greenfield Functions projects, but it is not a reason to rewrite a stable agent overnight. Pin the worker SDK and Functions host versions your team has tested, then move agents onto the Durable Extension with a feature flag.

If your agent must stay inside a Foundry-managed sandbox with enterprise egress controls, compare against Foundry hosted agents instead of forcing everything into Functions. Our companion guide on Azure AI Foundry hosted agents in production covers that path. Architecture choice after Ignite is summarized in Microsoft AI agent architecture after Ignite 2026.

What production risks remain after the Durable Extension went GA?

GA removes the “is this preview?” objection. It does not remove product risk. Recovery that reruns a handler can repeat side effects unless your tools are idempotent. Waiting for approval is only safe if the approval is a durable record and the write path re-checks status before acting. Token spend still needs caps: a stuck tool loop can burn budget while Durable Task keeps the orchestration alive.

Observability is still your job. Export run ids, tool names, arguments, outcomes, and model usage into logs you own. Microsoft can show Durable Task Scheduler dashboards; finance and compliance will still ask for a ledger in your system. Permissions and audit trails stay product requirements; see AI agent permissions and audit trails.

Evaluation must stay outside the framework. Freeze a harness of messy tickets, empty tool results, and mid-run corrections. Swap models or graphs only when the harness improves. The AI agent evaluation harness pattern applies whether you host on Functions or elsewhere.

How should a product team run a two-week .NET agent pilot?

Week one: pick one job with clear success criteria, map tools to existing .NET services, and define which actions need human approval. Implement the agent and one workflow graph on a non-production Functions app with Durable Task configured. Shadow parallel to the current process; do not replace operators yet.

Week two: kill workers mid-run, restart during approval wait, and deliver duplicate queue messages. Confirm resumed runs do not double-send email or double-create records. Measure completion rate, human interventions, and cost per successful job. Exit criteria should be written before the pilot starts so the team cannot move the goalposts after a flashy demo.

Staff the pilot with a .NET engineer who owns the services, a product owner who owns the job definition, and a reviewer who knows the domain. If the codebase is still vibe-coded without auth or secrets hygiene, fix that path first via Prototype to Production. Model and framework upgrades do not repair a missing identity boundary.

Which mistakes waste budget when teams chase .NET agent frameworks?

They wrap every tool as a framework-specific class that cannot move to MCP or another host. Prefer plain functions with typed schemas that the Agent Framework (or an MCP server) can expose.

They store the only audit trail inside Durable Task history. When compliance asks for who approved a refund, you need a first-class approval table and a tool-call ledger.

They start with multi-agent fan-out because the docs show it. Most business jobs need one agent with tight tools. Add parallel agents only when a measured bottleneck appears.

They treat Ignite announcements as a rewrite mandate. GA is permission to adopt durability for new agents and for the one workflow that already fails on restarts. It is not a reason to migrate every chat surface in a weekend.

How does ImadDhin approach .NET AI agent builds?

We treat Microsoft Agent Framework on Azure as a hosting and durability choice, not as the product. The job, tools, confirmations, and evaluation harness come first. Then we wire durable agents or workflows on Azure Functions (or self-hosted .NET) so the agent survives the same failure modes your APIs already handle.

Engagements sit under AI agents and AI product development, with Microsoft stack delivery through our Microsoft Technologies practice. If you need the architecture decision across Foundry harness agents, hosted code agents, and Functions durable agents, start with the Ignite comparison article, then book a call.

When is a Let’s Meet conversation the right next step?

Bring the job the agent must finish, the systems it must call, and the actions that need approval. We can scope a durable .NET pilot, the Azure Functions topology, and the production guardrails so you ship an agent that resumes after failure instead of a chat that only demos well.

Book Let’s Meet when you want a production agent built around your .NET systems and workflows. Scope and pricing stay agreed for the individual project.

Frequently asked questions

Is the Durable Task extension for Microsoft Agent Framework generally available?

Yes. Microsoft announced general availability in November 2026, with Ignite coverage for Azure Functions and Durable Task Scheduler. Confirm package versions and regional backend options in your Azure subscription before production.

Which .NET packages host durable agents on Azure Functions?

Microsoft documents Microsoft.Agents.AI.Hosting.AzureFunctions for Azure Functions hosting and Microsoft.Agents.AI.DurableTask for self-hosted .NET applications. Check NuGet and Learn docs for the current GA versions.

Do durable agents replace human approvals?

No. The extension can wait for external events without keeping a worker running. Your product still decides which writes need approval, stores the decision, and re-checks status before acting.

Should every .NET team move agents to Azure Functions?

No. Functions fit bursty serverless workloads with Durable Task. Self-host or Foundry hosted agents may fit better when you need different networking, AKS control, or Foundry-managed sandboxes.

Can ImadDhin build production AI agents with .NET?

Yes. We design durable agents and workflows on the Microsoft stack, with tools, permissions, and evaluation harnesses. Start with a Let’s Meet conversation about the job and systems involved.

Ship .NET agents that resume after failure.

Talk through your agent job, tools, and a durable .NET pilot.

Let’s Meet

How we design production agents that stay after launch.

AI agents practice

.NET, Azure, and enterprise delivery patterns we use on client work.

Microsoft Technologies

Keep reading