# Microsoft Agent Framework + Dapr

Make your Microsoft Agent Framework agents production-ready. These tutorials show you how to add fault tolerance using Dapr.

## Start here

### Quickstarts

- [Quickstart with your AI coding agent](https://docs.diagrid.io/getting-started/quickstarts/ai-agents/ai?agentframework=microsoft-dotnet)
- [Quickstart](https://docs.diagrid.io/getting-started/quickstarts/ai-agents?agentframework=microsoft-dotnet)

### Secure it

- [Access policies](https://docs.diagrid.io/develop/agents/microsoft/microsoft-dotnet-access-policies)

### Learn hands-on

**Durable Execution & Dapr University — Learn this hands-on:** [Make MAF agents reliable with Dapr Workflow](https://www.diagrid.io/university/ai-agents-maf?utm_source=docs&utm_medium=cta&utm_campaign=ai-agents-maf)

Add durable state and crash recovery to Microsoft Agent Framework agents with Dapr Workflow.

Intermediate · 30 min · .NET

## Why Dapr for Microsoft Agent Framework?

| Challenge | Dapr Solution |
|-----------|---------------|
| Agent crashes lose all progress | **Durable workflows** checkpoint every step |
| Agents tightly coupled, hard to scale | **Pub/sub** decouples communication |
| Chat memory lost on restart | **State store** persists agent memory across restarts |
| Custom retry logic everywhere | **Built-in retries** with exponential backoff |

:::note\[Conversation API required]
Unlike the third-party Python frameworks, the Microsoft Agent Framework integration ([`diagridio/dotnet-ai`](https://github.com/diagridio/dotnet-ai)) reaches its LLM through a Dapr [conversation component](https://docs.diagrid.io/references/diagrid/components-reference/conversation/openai) — register the conversation client with `AddDaprConversationClient()` and pass a `conversationComponentName` when you add an agent. A conversation component is **required** here, not optional. See the [framework requirements table](https://docs.diagrid.io/develop/agents#framework-requirements).
:::

## Take it to production

- Use Microsoft Foundry models, or deploy to Foundry hosted agents, with [Microsoft Foundry + Diagrid](https://docs.diagrid.io/integrations/microsoft-foundry).
- Run your agent on your cluster with [Deploy to Kubernetes](https://docs.diagrid.io/develop/deploy-to-kubernetes?language=.NET).
- Watch runs, token use and failures in [Operate agents](https://docs.diagrid.io/operate/project-operations/agents).
- Cap what an agent can spend with [token budgets](https://docs.diagrid.io/operate/project-operations/token-budgets).
