Skip to content

Azure Functions Python Cookbook

Practical, production-oriented patterns for building Azure Functions with the Python v2 programming model.

What this project is

This cookbook is the dogfood of the Azure Functions Python DX Toolkit. Every example is a real, runnable Azure Function that uses the toolkit libraries in production-realistic scenarios. It is not a runtime library you install as an application dependency — it is proof that the toolkit works end-to-end.

Why this cookbook exists

Azure Functions documentation is broad, but many teams still need concrete, copy-adapt-run patterns for common workloads. This cookbook closes that gap by pairing clear pattern narratives with runnable examples — each of which exercises the toolkit libraries the way a real application would.

What you get

  • 75 patterns across 14 categories covering APIs, messaging, orchestration, AI, and more
  • 75 runnable example projects under examples/, organized by category
  • Dogfood coverage: 40 examples use azure-functions-logging, 23 use azure-functions-openapi and azure-functions-validation, 9 use azure-functions-db
  • Production considerations in every pattern
  • Mermaid architecture and behavior diagrams

Pattern catalog

APIs & Ingress

Async APIs & Jobs

Messaging & Pub/Sub

Streams & Telemetry

Blob & File Triggers

Scheduled & Background

Orchestration & Workflows

Reliability

Security & Tenancy

Runtime & Ops

Data & Pipelines

AI & Agents

Guides

Quick start

git clone https://github.com/yeongseon/azure-functions-cookbook-python.git
cd azure-functions-cookbook-python
python -m venv .venv
source .venv/bin/activate

Run one example:

cd examples/apis-and-ingress/hello_http_minimal
pip install -e .
func start

Then test:

curl http://localhost:7071/api/hello
  1. Installation
  2. Getting Started
  3. Patterns Overview
  4. Pick one deep-dive pattern page
  5. Run the matching examples/<category>/<name> project
  6. Validate with Testing

Repository map

docs/patterns/   Pattern deep-dives organized by category
docs/foundations/ Core concepts (execution model, triggers & bindings)
docs/reference/   Reference pages (durable functions, etc.)
docs/guides/      Practical guides (deployment, identity, IaC, scaffold)
examples/         Runnable Azure Functions app implementations

Ecosystem projects

These companion projects are optional accelerators — the cookbook works independently without them:

Contributing and quality

If you want to improve patterns or examples:

Additional references

Tip

The fastest path to value is: pick one pattern, run its example, then adapt for your production constraints.