azure-functions
Master Azure Functions Development
Building serverless solutions on Azure often means grappling with cold starts and orchestration complexity. This skill delivers proven patterns for the isolated worker model, Durable Functions, and performance tuning.
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“azure-functions”。 Request guidance on Azure Functions connection management
预期结果:
Recommended approach: Use IHttpClientFactory for HTTP connections. This provides connection pooling, DNS refresh, and prevents socket exhaustion. Never instantiate HttpClient directly in function code.
正在使用“azure-functions”。 Ask about Durable Functions pattern for fan-out processing
预期结果:
Use the Fan-out/Fan-in pattern: The orchestrator calls multiple activity functions in parallel using Task.WhenAll, then aggregates results. Ideal for batch processing, data aggregation, or parallel API calls.
正在使用“azure-functions”。 Need help with Python Azure Functions v2 model
预期结果:
The v2 model uses decorators like @app.function_name and @app.route. Key benefits: IntelliSense support, simplified binding syntax, and unified programming model. Import azure.functions module and define routes with HTTP methods.
安全审计
安全Static analyzer flagged two false positives for weak cryptographic algorithms at lines 3 and 46. Manual review confirms these are documentation strings with no actual cryptographic code. The SKILL.md file contains only descriptive content about Azure Functions patterns - no executable code, network calls, file operations, or external commands. Safe for publication.
质量评分
你能构建什么
Build Event-Driven Serverless APIs
Create scalable HTTP-triggered functions with proper connection pooling and async patterns for production workloads.
Implement Complex Workflow Orchestration
Design durable function chains for multi-step business processes with built-in retry and state management.
Migrate Legacy Services to Serverless
Transform existing in-process functions to isolated worker model with improved performance and dependency isolation.
试试这些提示
Create a new Azure Functions project using the isolated worker model for .NET 8. Include an HTTP trigger endpoint that processes JSON payloads and returns validated responses. Add proper dependency injection setup and configuration binding.
Build a Durable Functions orchestration that processes orders through multiple stages: validation, payment processing, inventory check, and shipping notification. Include error handling with retry policies and human approval gates for high-value orders.
Analyze my Azure Functions configuration for cold start issues. The function runs Python with a large ML model. Recommend specific settings for premium plan, instance warming, and package optimization to achieve sub-second response times.
Convert this existing in-process Azure Function to the isolated worker model. Update the function signature, binding attributes, and dependency injection pattern. Highlight any breaking changes I need to address.
最佳实践
- Always use the isolated worker model for new .NET projects to benefit from process isolation and side-by-side versioning
- Implement async/await patterns throughout to prevent thread pool starvation and improve throughput
- Reuse clients and connections via dependency injection or static instances to avoid connection exhaustion
避免
- Blocking async calls with .Result or .Wait() which causes deadlocks and thread pool exhaustion
- Creating new HttpClient instances per request instead of using IHttpClientFactory for connection pooling
- Using the legacy in-process model for new projects when isolated worker provides better isolation and compatibility