Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/functions/durable.md
1# Durable Functions23Long-running orchestrations with checkpointing and state management.45## Storage Backend67Durable Functions requires a storage backend to persist orchestration state, queues, and history.89| Backend | Recommendation | Notes |10|---------|---------------|-------|11| **Durable Task Scheduler** | **✅ Required** | Fully managed Azure service. Best performance, lowest latency, built-in monitoring. Supports all languages (.NET, Python, Java, JavaScript). |12| Azure Storage (default) | ⛔ Do not use | Legacy backend. Higher latency, harder to monitor, no built-in RBAC. Not permitted for new projects. |13| MSSQL | Specialized | SQL Server backend. Only when SQL infrastructure already exists and user explicitly requests it. |1415> **⛔ MANDATORY**: You **MUST** use **Durable Task Scheduler** as the storage backend for ALL new Durable Functions projects. Do NOT use Azure Storage as the backend — it is legacy and not permitted. Generate the DTS Bicep module (`Microsoft.DurableTask/schedulers` + `taskHubs`), RBAC role assignment (Durable Task Data Contributor), and `DURABLE_TASK_SCHEDULER_CONNECTION_STRING` app setting. See the [Durable Task Scheduler reference](../durable-task-scheduler/README.md) for setup, language-specific guidance, and Bicep templates.1617## When to Use1819- Multi-step workflows20- Fan-out/fan-in patterns21- Human interaction workflows22- Long-running processes2324## Get Durable Templates2526Use the [Azure Functions Templates workflow](templates/README.md) to discover and fetch durable samples:2728**MCP Tool:** `functions_template_get(language)` → filter `resource == "durable"`2930**Fallback:** CDN manifest → filter `resource == "durable"`3132Available patterns: Fan-out/Fan-in, Order Processing (with Bicep), Distributed Tracing, Large Payload, Saga, AI Travel Planner, PDF Summarizer, .NET Aspire integration.33