https://github.com/yeongseon/azure-functions-cookbook-python
Recipes and examples for Azure Functions Python v2 — Part of the Azure Functions Python DX Toolkit
https://github.com/yeongseon/azure-functions-cookbook-python
azure azure-functions dx-toolkit examples python recipes serverless
Last synced: 14 days ago
JSON representation
Recipes and examples for Azure Functions Python v2 — Part of the Azure Functions Python DX Toolkit
- Host: GitHub
- URL: https://github.com/yeongseon/azure-functions-cookbook-python
- Owner: yeongseon
- License: mit
- Created: 2026-03-08T12:24:54.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-30T08:48:35.000Z (about 2 months ago)
- Last Synced: 2026-04-30T10:20:48.876Z (about 2 months ago)
- Topics: azure, azure-functions, dx-toolkit, examples, python, recipes, serverless
- Language: Python
- Homepage: https://yeongseon.github.io/azure-functions-cookbook-python/
- Size: 1.84 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.ja.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Support: SUPPORT.md
- Roadmap: docs/roadmap.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# Azure Functions Python Cookbook
[](https://github.com/yeongseon/azure-functions-cookbook-python)
[](https://github.com/yeongseon/azure-functions-cookbook-python/actions/workflows/ci-smoke.yml)
[](https://github.com/yeongseon/azure-functions-cookbook-python/actions/workflows/docs.yml)
[](LICENSE)
他の言語: [English](README.md) | [한국어](README.ko.md) | [简体中文](README.zh-CN.md)
Pythonを使用して実用的なAzure Functionsを構築するためのレシピ集です。
## Why Use It
新しいAzure Functionsプロジェクトを開始する際、散在するドキュメント、ブログ記事、サンプルコードを繋ぎ合わせるのは時間がかかります。このクックブックでは、以下のような疑問に応える、厳選された実行可能なレシピを提供します。
- このシナリオでは何を構築すべきか?
- アーキテクチャはどのような構成にすべきか?
- どのようにして動作するベースラインから開始できるか?
## Scope
- Azure Functions Python **v2 プログラミングモデル**
- デコレータベースの `func.FunctionApp()` アプリケーション
- 実行可能な例を含む実用的なレシピ
- アーキテクチャの解説と本番環境での注意点
本リポジトリはコンテンツを重視しており、CLIツールではありません。
## 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 |
| EasyAuth Claims | Intermediate | EasyAuth principal extraction with role-based access control |
| JWT Bearer Validation | Intermediate | JWT Bearer token validation with claim-based access control |
| Multi-Tenant Auth | Intermediate | Multi-tenant access control with tenant allowlist |
### 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 |
各パターンページは `docs/patterns/` 配下にあり、対応する実行可能プロジェクトが `examples/` にあります。
## Repository Layout
```text
docs/ 公開ドキュメント
patterns/ 厳選されたパターンドキュメント(67レシピ)
examples/ カテゴリ別実行可能プロジェクト
apis-and-ingress/
scheduled-and-background/
blob-and-file-triggers/
async-apis-and-jobs/
messaging-and-pubsub/
streams-and-telemetry/
data-and-pipelines/
orchestration-and-workflows/
reliability/
security-and-tenancy/
runtime-and-ops/
realtime/
ai-and-agents/
guides/
```
## Development
```bash
git clone https://github.com/yeongseon/azure-functions-cookbook-python.git
cd azure-functions-cookbook-python
make install
make check-all
make docs
```
## Documentation
- 製品要件: `PRD.md`
- 設計原則: `DESIGN.md`
- コントリビューションガイド: `CONTRIBUTING.md`
## Ecosystem (Optional)
これらのコンパニオンパッケージは**オプションのアクセラレーター**です — クックブックは単独で完全に動作します。
プロジェクトが成長し、追加のインフラが必要になったときに使用してください:
- [azure-functions-validation-python](https://github.com/yeongseon/azure-functions-validation-python) — リクエストとレスポンスのバリデーション
- [azure-functions-openapi-python](https://github.com/yeongseon/azure-functions-openapi-python) — OpenAPI と Swagger UI
- [azure-functions-logging-python](https://github.com/yeongseon/azure-functions-logging-python) — 構造化ロギング
- [azure-functions-doctor-python](https://github.com/yeongseon/azure-functions-doctor-python) — 診断 CLI
- [azure-functions-scaffold-python](https://github.com/yeongseon/azure-functions-scaffold-python) — プロジェクトスキャフォールディング
## Disclaimer
本プロジェクトは独立したコミュニティプロジェクトであり、Microsoftと提携、承認、または保守されているものではありません。
AzureおよびAzure Functionsは、Microsoft Corporationの商標です。
## License
MIT