AI agents are moving from short demonstrations to workflows that may need to run for hours, days or even weeks. That changes what developers need from programming frameworks and hosting platforms: an agent must not simply generate a response; it must preserve progress, recover from failures and complete multi-step work reliably.
Microsoft has taken a step in that direction with the general availability of the Durable Task extension for Microsoft Agent Framework. Announced in November 2026, the extension supports C# and Python and is designed to make agent sessions and orchestrated workflows persistent across interruptions. It also gives teams a choice between managed serverless hosting with Azure Functions and bringing their own compute, including containers and Kubernetes.
For businesses evaluating AI automation, the update brings three important decisions together: which programming language to use, where to run the workloads and how to keep long-running AI processes dependable.
What Microsoft announced
Microsoft’s November 2026 Azure update says the Durable Task extension for Microsoft Agent Framework is generally available for C# and Python. It is designed for agents and multi-agent workflows that can continue for minutes, days or weeks. The runtime persists agent sessions, checkpoints workflow progress and resumes work after problems such as rate limits, network timeouts, process restarts, scale events or infrastructure failures.
The important distinction is that this is not simply a model upgrade. It is an execution and hosting capability around AI applications. The goal is to help developers build systems that can keep track of work and recover without having to implement every recovery mechanism themselves.
Why durable execution matters for AI agents
A basic chatbot request is often short-lived: receive a prompt, call a model and return an answer. Business agents are more complicated. They may need to retrieve information, call several APIs, wait for an approval, update a database, retry a failed integration and then notify a customer.
Without durable execution, a worker restart or temporary outage can interrupt that sequence. Developers may have to rebuild state management, retries and recovery logic themselves. A durable workflow records completed steps and relevant state so that execution can continue from a checkpoint rather than blindly repeating every operation.
Persistent sessions and conversation context
Long-running agents need a reliable way to retain the relevant conversation and task state between requests or worker executions. Persistence helps an agent continue a task after a host restarts, rather than treating every request as an unrelated interaction.
Checkpoints and recovery
Checkpointing records workflow progress. When a failure occurs, the system can resume from the last completed point, subject to the workflow’s design and the documented guarantees of the underlying services. Developers should still make external side effects safe to retry, for example by using idempotency keys and transaction boundaries.
Multi-agent orchestration
Some business processes are better handled as a series of specialist tasks. One agent might classify a request, another might retrieve account information, and another might prepare a recommendation for human review. Durable orchestration provides a way to coordinate those steps, retain progress and handle waits for external events or approvals.
C# and Python: two practical routes for developers
The general availability announcement covers C# and Python. These languages address different team strengths and existing technology choices, and neither should be selected solely because an AI framework supports it.
When C# makes sense
C# may be a natural fit for businesses already using .NET, Microsoft identity services, Azure-hosted back ends or enterprise systems built around the Microsoft ecosystem. Teams can incorporate durable agent workflows into those environments while reusing established development and operational practices.
When Python makes sense
Python is widely used in data science, machine learning and AI application development. It can be attractive when the agent needs to work closely with Python libraries, data-processing tools or existing automation. Microsoft’s documentation describes different installation paths depending on whether Python agents run on Azure Functions or on a self-managed worker.
For broader application work, the right language also depends on the surrounding product. A business platform might combine a Python-based AI service with a PHP or Laravel application, or connect it to a Node.js backend through well-defined APIs.
Hosting options: serverless Azure Functions or your own compute
One of the most useful parts of the update is the hosting choice. The same durable-agent approach can be deployed with Azure Functions or on infrastructure that the development team operates.
Option 1: Azure Functions for managed serverless hosting
With Azure Functions, the hosting environment manages much of the worker infrastructure. Microsoft documents built-in scaling, generated HTTP endpoints and integration with the Durable Task infrastructure. This can reduce the amount of host management required for event-driven workloads and services with variable demand.
Serverless does not mean infrastructure or cost management disappears. Teams still need to design for execution limits, storage, monitoring, authentication, network access and the pricing characteristics of their workload. They should test real task durations and throughput before choosing a consumption or hosting plan.
Option 2: Bring your own compute
Teams can also run durable agents in their own worker process, service, container, Kubernetes environment or existing application infrastructure. This approach offers more control over deployment topology, runtime dependencies, networking and operational policies, but the team takes responsibility for running and securing the worker hosts.
Self-hosting may suit organisations with established container platforms or infrastructure requirements that make a managed serverless option less appropriate. It can also fit a hybrid architecture in which AI services run separately from the customer-facing application.
How to choose
- Choose managed serverless hosting when you want less host administration, event-driven scaling and the Azure Functions programming model.
- Choose your own compute when you need control over worker deployment, containers, Kubernetes or integration with existing infrastructure.
- Prototype both approaches when latency, cost, network boundaries or workload duration are not yet well understood.
Business use cases for durable AI workflows
Durable execution is most relevant when an AI process has multiple steps, external dependencies or a need to wait for people or systems. Examples include:
- Order and support operations: classify a customer request, check order data, coordinate a replacement or refund workflow, and wait for an approval where required.
- Document processing: extract information, validate it against business rules, request missing details and route exceptions to a staff member.
- Sales and customer onboarding: collect information from several systems, prepare an account record and schedule follow-up actions.
- Data and reporting pipelines: coordinate retrieval, analysis, quality checks and report generation while retaining progress if a step fails.
- Internal IT automation: investigate an event, gather diagnostic details, request authorisation and execute approved remediation steps.
These are possible architectural applications, not turnkey features supplied automatically by the extension. Each still requires suitable agent instructions, permissions, integrations, validation and human oversight.
What development teams should review before adopting it
1. Define workflow boundaries
Break the business process into clear steps. Identify which tasks can be retried, which require human approval and which create external side effects such as payments, emails or changes to customer records.
2. Make operations safe to retry
Durable recovery is not a substitute for idempotent application design. Use unique operation identifiers, transaction boundaries and deduplication where repeated calls could create duplicate orders, messages or payments.
3. Protect agent permissions and secrets
Give each agent only the access required for its task. Store credentials securely, separate development and production identities, and log sensitive actions without exposing secrets or unnecessary personal data.
4. Add observability and cost controls
Monitor workflow status, retry counts, time spent waiting, model usage, tool calls and failure reasons. Set limits for loops, token usage and external service calls. Establish alerts for stuck or unusually expensive workflows.
5. Test failure scenarios before production
Test rate limits, network interruptions, worker restarts, unavailable downstream APIs and delayed human approvals. Verify that the workflow resumes correctly and does not repeat completed business operations.
How this fits into a modern software architecture
Durable AI agents are usually one part of a larger application, not a replacement for the application itself. A typical architecture might include a web or mobile interface, an API layer, a durable agent worker, a database, external business services and monitoring.
For example, a company may use a web application to collect a customer request, a backend API to validate it, and a durable agent workflow to coordinate several downstream tasks. The workflow can call existing services and databases through controlled interfaces while the customer-facing system remains responsible for authentication, user experience and core business rules.
This is where good application architecture matters. Shazam Software’s web development services cover business websites and web portals, while its software development services focus on custom applications, APIs, integrations and automation. Teams building AI-enabled products can also explore Laravel development and Node.js development for the surrounding application layer.
What happens next?
Microsoft’s update reflects a broader direction in AI engineering: reliability, state management and operations are becoming as important as model quality. Businesses will increasingly evaluate AI systems by whether they can complete useful tasks safely and predictably, not simply by how impressive a short demonstration looks.
The Durable Task extension gives C# and Python teams a documented route to build persistent, recoverable agent workflows, with a choice between Azure Functions and self-managed compute. The right choice will depend on the workload, existing skills, security requirements and the team’s ability to operate the infrastructure.
Frequently asked questions
What is the Durable Task extension for Microsoft Agent Framework?
It adds durable execution capabilities to Microsoft Agent Framework agents and workflows, including persisted sessions, workflow checkpoints and recovery after interruptions.
Which programming languages are supported?
The November 2026 general availability announcement covers C# and Python for the Durable Task extension for Microsoft Agent Framework. Check Microsoft’s current documentation for the latest language and hosting support.
Can I host durable AI agents without Azure Functions?
Yes. Microsoft’s documentation describes a bring-your-own-compute model for worker processes, services, containers, Kubernetes and existing application infrastructure.
Does durable execution prevent every AI workflow failure?
No. It helps preserve and resume workflow progress, but teams still need sound error handling, secure permissions, idempotent external operations, monitoring and tests for their own application dependencies.
When should a business use serverless hosting?
Serverless hosting can be a good fit for event-driven workloads with variable demand when the managed runtime and scaling model meet the application’s requirements. Teams should validate execution patterns, cost and integration needs before committing.
Is this useful only for chatbots?
No. It is aimed at longer-running agents, multi-agent orchestrations and workflows that coordinate tools, systems, data and people. Examples include support operations, document workflows and internal automation.
Sources and further reading
- Microsoft Azure: Durable Task extension for Microsoft Agent Framework is generally available (November 2026)
- Microsoft Learn: Durable Extension for Azure Functions hosting
- Microsoft Learn: Durable Extension overview and hosting options
- Microsoft Learn: Durable Task extension for Microsoft Agent Framework
Editorial note: Availability and implementation details can change. Review Microsoft’s current documentation and test the selected hosting model with your own workload before production deployment.