# Azure Functions

> Azure Functions: Durable Execution and Event Grid

- Skill: `j4flmao/azure-functions` (Agent Skill)
- Install (CLI): `npx skillmds@latest add j4flmao/azure-functions`
- Raw SKILL.md: https://api.skillmd.com/api/skills/j4flmao/azure-functions/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: j4flmao (https://skillmd.com/u/j4flmao)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/j4flmao/azure-functions

---

# Azure Functions: Durable Execution and Event Grid

Durable Functions extend Azure Functions by enabling stateful workflows in a serverless environment. It uses the Event Sourcing pattern, where the framework stores the complete history of function executions in an Azure Storage Table. When a workflow is suspended (e.g., waiting for an external event), the orchestrator function stops execution. Once the event occurs, the orchestrator replays from the beginning, using the event history to skip already completed steps.

Azure Event Grid provides an event-routing backplane. It uses a push-based model with built-in retry mechanisms, ensuring reliable delivery. 

```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    subgraph EGEventGrid ["Event Grid<br><br><br>"]
        A[Publisher] -->|"PublishEvent()"| B[Topic]
    end
    subgraph DFDurableFunctions ["Durable Functions<br><br><br>"]
        B -->|"Trigger()"| C[Orchestrator]
        C -->|"CallActivity()"| D[Activity Function]
    end
```

