AgentSkillsCN

azure-functions

在 Azure Functions 开发中,掌握隔离工作器模型、Durable Functions 编排、冷启动优化,以及各类生产级开发模式。本指南涵盖 .NET、Python 和 Node.js 等多种编程模型。当您需要构建 Azure Function、Azure Functions 应用程序、Durable Functions 任务编排、Azure 无服务器架构,或创建函数应用时,不妨一试。

SKILL.md
--- frontmatter
name: azure-functions
description: "Expert patterns for Azure Functions development including isolated worker model, Durable Functions orchestration, cold start optimization, and production patterns. Covers .NET, Python, and Node.js programming models. Use when: azure function, azure functions, durable functions, azure serverless, function app."
source: vibeship-spawner-skills (Apache 2.0)

Azure Functions

Patterns

Isolated Worker Model (.NET)

Modern .NET execution model with process isolation

Node.js v4 Programming Model

Modern code-centric approach for TypeScript/JavaScript

Python v2 Programming Model

Decorator-based approach for Python functions

Anti-Patterns

❌ Blocking Async Calls

❌ New HttpClient Per Request

❌ In-Process Model for New Projects

⚠️ Sharp Edges

IssueSeveritySolution
Issuehigh## Use async pattern with Durable Functions
Issuehigh## Use IHttpClientFactory (Recommended)
Issuehigh## Always use async/await
Issuemedium## Configure maximum timeout (Consumption)
Issuehigh## Use isolated worker for new projects
Issuemedium## Configure Application Insights properly
Issuemedium## Check extension bundle (most common)
Issuemedium## Add warmup trigger to initialize your code