Skip to content

yeongseon/azure-functions-python-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Azure Functions Python Cookbook

Python Version License: MIT

Read this in: 한국어 | 日本語 | 简体中文

Practical recipes for building real-world Azure Functions with Python.

Why Use It

Starting a new Azure Functions project often means piecing together scattered documentation, blog posts, and sample code. This cookbook provides curated, runnable recipes that answer:

  • What should I build for this scenario?
  • How should the architecture look?
  • How do I start from a working baseline?

Scope

  • Azure Functions Python v2 programming model
  • Decorator-based func.FunctionApp() applications
  • Practical recipes with runnable examples
  • Architecture explanations and production notes

This repository is content-first. It is not a CLI tool.

Recipes

HTTP

Recipe Difficulty Description
Hello HTTP Minimal Beginner Smallest possible HTTP trigger
HTTP Routing, Query, and Body Beginner Route params, query strings, JSON body, status codes
HTTP Auth Levels Beginner Anonymous, Function, and Admin auth levels
GitHub Webhook Intermediate HMAC-SHA256 signature verification

Timer

Recipe Difficulty Description
Timer Cron Job Beginner NCRONTAB expressions, timezone, catch-up

Queue

Recipe Difficulty Description
Queue Producer Beginner HTTP trigger with Queue output binding
Queue Consumer Beginner Queue trigger message processing

Blob

Recipe Difficulty Description
Blob Upload Processor Intermediate Polling-based blob trigger
Blob Event Grid Trigger Intermediate Event Grid-based blob trigger (faster)

Service Bus

Recipe Difficulty Description
Service Bus Worker Intermediate Service Bus queue trigger

Event Hub

Recipe Difficulty Description
Event Hub Consumer Intermediate Event Hub stream processing

Cosmos DB

Recipe Difficulty Description
Change Feed Processor Intermediate Cosmos DB change feed trigger

Patterns

Recipe Difficulty Description
Blueprint Modular App Intermediate Modular function apps with Blueprints
Retry and Idempotency Intermediate Retry policies and idempotency patterns
Output Binding vs SDK Intermediate Side-by-side binding vs SDK client comparison
Managed Identity (Storage) Advanced Identity-based Storage connection
Managed Identity (Service Bus) Advanced Identity-based Service Bus connection
host.json Tuning Advanced host.json configuration guide
Concurrency Tuning Advanced Dynamic concurrency for Queue/Blob/Service Bus

Durable Functions

Recipe Difficulty Description
Hello Sequence Beginner Activity chaining pattern
Fan-Out / Fan-In Intermediate Parallel activity execution
Human Interaction Intermediate External events with timeout
Entity Counter Intermediate Durable entity state management
Retry Pattern Intermediate Activity retry with RetryOptions
Determinism Gotchas Advanced Orchestrator determinism rules
Unit Testing Intermediate Mock-based orchestrator testing

AI

Recipe Difficulty Description
MCP Server Advanced Model Context Protocol server on Azure Functions

Local Development

Recipe Difficulty Description
Local Run and Direct Invoke Beginner func start vs direct Python invocation

Each recipe lives under recipes/ with a matching runnable project in examples/.

Repository Layout

recipes/           Curated recipe documents (28 recipes)
examples/          Runnable example projects organized by category
  http/            HTTP trigger examples
  timer/           Timer trigger examples
  queue/           Queue trigger examples
  blob/            Blob trigger examples
  servicebus/      Service Bus trigger examples
  eventhub/        Event Hub trigger examples
  cosmosdb/        Cosmos DB trigger examples
  recipes/         Pattern and recipe examples
  durable/         Durable Functions examples
  ai/              AI integration examples
docs/              Published documentation

Development

git clone https://github.com/yeongseon/azure-functions-python-cookbook.git
cd azure-functions-python-cookbook
make install
make check-all
make docs

Documentation

  • Product requirements: PRD.md
  • Design principles: DESIGN.md
  • Contributing guide: CONTRIBUTING.md

Ecosystem

Disclaimer

This project is an independent community project and is not affiliated with, endorsed by, or maintained by Microsoft.

Azure and Azure Functions are trademarks of Microsoft Corporation.

License

MIT

About

Practical recipes and examples for Azure Functions Python

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors