azure-patterns

Solid

Azure Functions, Cosmos DB modeling, Service Bus patterns, Bicep templates

AI & Automation 501 stars 42 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
90
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Azure Patterns ## Azure Functions ### HTTP Trigger (Node.js v4) ```typescript import { app, HttpRequest, HttpResponseInit, InvocationContext } from '@azure/functions'; app.http('getOrder', { methods: ['GET'], authLevel: 'function', route: 'orders/{orderId}', handler: async (request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> => { const orderId = request.params.orderId; context.log(`Processing order: ${orderId}`); try { const order = await orderService.getById(orderId); if (!order) { return { status: 404, jsonBody: { error: 'Order not found' } }; } return { status: 200, jsonBody: order }; } catch (error) { context.error('Failed to get order', error); return { status: 500, jsonBody: { error: 'Internal server error' } }; } }, }); // Service Bus trigger with retry app.serviceBusTopic('processOrderEvent', { topicName: 'order-events', subscriptionName: 'order-processor', connection: 'ServiceBusConnection', handler: async (message: unknown, context: InvocationContext) => { const event = message as OrderEvent; context.log(`Processing event: ${event.type} for order ${event.orderId}`); await processEvent(event); }, }); ``` ### Durable Functions (Orchestrator) ```typescript import * as df from 'durable-functions'; df.app.orchestration('orderWorkflow', function* (context) { const orderId = context.df.getInput() as string; // Step 1: Validate order co...

Details

Author
vibeeval
Repository
vibeeval/vibecosystem
Created
2 months ago
Last Updated
yesterday
Language
C#
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category