azure functions
385 TopicsAzure Functions and AWS Lambda: One Trigger vs. Multiple Triggers—What Changes in Your Design?
When moving between Azure Functions and AWS Lambda, one difference quickly stands out: An individual Azure function must have exactly one trigger. An AWS Lambda function can have multiple triggers. At first glance, Lambda appears more flexible. But what does this difference actually mean for code reuse, event handling, and application design? Let’s explore it using a practical example. First, distinguish a function from a Function App In Azure, a function and a Function App are different things. A function is an individual entry point with its own trigger. A Function App is the Azure resource that hosts one or more functions. Therefore: The one-trigger rule applies to each Azure function—not to the entire Function App. A single Function App can contain HTTP-triggered, queue-triggered, and timer-triggered functions. Microsoft’s triggers and bindings documentation explicitly states that a function must have exactly one trigger. A Lambda function can have multiple triggers, each invoking it independently. It can also be deployed without any configured triggers and tested directly using a test event in the AWS Lambda console. The scenario: one business operation, multiple entry points Suppose an application processes orders through three channels: An HTTP request submits an order. A queue delivers an order for background processing. A scheduled job starts an order-reconciliation run. These entry points may reuse some of the same business logic, even though their payloads and execution requirements differ. AWS Lambda: multiple sources, one handler A possible AWS design is: The same Lambda function can be invoked through all three integrations. However, multiple triggers do not mean one invocation combines events from multiple sources. Each source invokes the function independently. The handler must understand the event it receives and apply the appropriate behavior. For example: API Gateway supplies an HTTP-oriented event. SQS supplies a batch-oriented message event. A scheduled invocation supplies its configured payload. If those payloads differ, the handler needs routing and normalization logic. Integrations that support payload transformation can sometimes reduce that work. There is also an important terminology distinction: not every Lambda integration uses the same mechanism. SQS uses a Lambda event source mapping, which polls the queue and invokes the function with batches. Azure Functions: separate entry points, shared business logic An equivalent Azure design could be: Each function has one trigger, but all three can call the same application service. The important separation is: Multiple function entry points do not require multiple implementations of the business logic. The HTTP function handles HTTP concerns. The queue function handles message-processing concerns. The timer function handles scheduled execution. Shared order-processing logic remains in one place. What actually changes? Concern Multiple triggers on one Lambda Multiple Azure functions sharing logic Entry point One configured handler receives events from multiple sources Separate function entry points Event interpretation Handler must support the incoming event contracts Each entry point handles its trigger-specific contract Code reuse Shared logic behind the handler Shared logic called by multiple functions Source-specific responses Handler must return the appropriate response for each integration Each function implements its own trigger contract Deployment One Lambda function deployment in this design Functions can be deployed together in one Function App Isolation Sources share the target function’s configuration and concurrency constraints Separate functions in one app still share app-level settings and resources Final takeaway AWS Lambda allows several event sources to invoke one function. Azure Functions requires exactly one trigger per function, while allowing multiple functions within a Function App. The most useful comparison is not: “Which platform lets me attach more triggers?” It is: “Where should event-specific handling end, and shared business logic begin?” Both platforms support reusable business logic. Their trigger models give you different ways to organize the entry points around it.39Views0likes0CommentsAzure AI Gateway is now generally available: Ship faster, stay in control
Today at Microsoft Ignite 2026, we're announcing the general availability of Azure AI Gateway, a fully managed Azure service that lets you set up a single, controlled path from your AI applications and agents to models and tools across providers. Developers build with the models and tools they choose, and platform teams manage access, enforce policies, control costs, and monitor usage from one place, without operating gateway infrastructure. Azure AI Gateway, previously in public preview as the AI Gateway tier of Azure API Management, is now a standalone product optimized for governing access to AI models and tools, with a roadmap focused entirely on AI. You can use it by itself with any app or agent, or together with Microsoft Foundry, where you build and run agents, and Microsoft Agent 365, where you manage them. Azure AI Gateway is available today in 17 Azure regions. To make it easy to get started, it offers a freemium, per-use pricing model with 10,000 free requests per gateway each month. Paid billing begins January 1, 2027. See the Regions and pricing section below for details. Why enterprise AI needs a unified governance layer Enterprise AI has moved beyond one app calling one model. Organizations use models from several providers, build agents that act through enterprise tools, and scale AI across teams. When each app manages its own credentials, routing, safety, and usage limits, governance becomes fragmented. Developers struggle to find approved models and tools, and platform teams can't see who is using what, what it costs, or which policies apply. Azure AI Gateway lets you move those controls out of individual apps and into one place, where they apply consistently to every app and agent you connect. How Azure AI Gateway works Apps and agents you connect call the gateway instead of calling each model or tool directly. On every request, the gateway authenticates the caller with Microsoft Entra ID or a gateway access key, enforces access rules and your policies, routes the request to the right model or tool, and records telemetry. Figure 1. Azure AI Gateway sits between callers and backends, governing every request that passes through it. What you can do with Azure AI Gateway Build with models and tools across providers Any model, one name: Use models from Microsoft Foundry, Azure OpenAI, OpenAI, Anthropic, Amazon Bedrock, Google Vertex AI, or any OpenAI-compatible endpoint. Apps call each model by an alias you define, so you can switch models without changing app code. Routing and failover: Route by priority, weight, or custom conditions, with configurable failover, or let Model Router (preview) choose by cost or quality. Consolidated tools: Federate MCP servers and turn OpenAPI specs, connectors, and API Management APIs into MCP tools. Multiple MCP spec versions are supported, including the latest (July 2026). The APIs you know: Call models through an OpenAI-compatible API or the Anthropic Messages API and connect agents to tools from any MCP client. Govern and observe AI interactions Access with Entra ID: Built-in roles control who can use models and tools. Provider keys and tool credentials never reach app code. Safety on every prompt: Screen prompts and responses with Azure AI Content Safety. Only approved tools: Curate and block tools at the gateway, or through Microsoft Agent 365 policies. Protection from poisoned tools (preview): Through the Microsoft Agent 365 integration, Microsoft Defender and Microsoft Purview inspect tool calls and results and block threats before an agent acts. Delegated identity: With on-behalf-of (OBO) authentication, tools act with the signed-in user’s own permissions. Every call on record: Record the caller, target, tokens, and outcome of each model and tool call, trace each call to its agent, and export the data over OpenTelemetry to Application Insights, Datadog, Splunk, Grafana Cloud, or any OTLP endpoint. Private by design: Private Link (preview) for inbound calls, VNet integration (preview) for private backends, IP filtering, and managed identity. Control AI spend as adoption scales See who spends what: Track tokens and estimated cost by user, team, app, agent, provider. Enforced budgets: Cost limits stop new requests once estimated spend reaches a budget. Fair sharing: Token and request limits keep one caller from crowding out the rest. Discover, build, and operate in your existing workflow Coding agent plugin: Developers find approved models and tools and connect their apps from their coding agent. Portal, CLI, Bicep, and REST API: Configure in the portal or with the CLI, then deploy the same setup as code from your CI/CD pipelines with Bicep or the REST API. See Azure AI Gateway in action From connecting models and MCP tools to securing access, controlling costs, and monitoring AI traffic, this demo shows how Azure AI Gateway helps you run AI applications with confidence. Extend AI governance across your Microsoft ecosystem Already using Microsoft Foundry, Microsoft Agent 365, or Azure API Management? Azure AI Gateway works with all three. Microsoft Foundry: Foundry has governance built in for its resources and projects. When AI spreads across teams, Foundry resources, subscriptions, and other providers, the gateway adds a shared layer on top. In a hub-and-spoke model, the gateway is the hub: a central platform team sets the rules once, and developers keep building in their Foundry projects, the spokes, using approved models and tools without managing credentials. Projects can share one deployment, including PTU, and fail over to another Foundry resource or provider. Foundry prompt agents can use gateway models through a model connection (preview), without code changes. Microsoft Agent 365: Agent 365 discovers the gateway’s MCP servers and lets you set tool policies. The gateway enforces those policies, alongside its own, on every tool call, with added threat protection (preview) from Defender and Purview. Regions and pricing Azure AI Gateway is available today in 17 Azure regions: East US, East US 2, East US 2 EUAP, West US, West US 2, Central US, North Central US, South Central US, Canada East, West Europe, North Europe, UK South, France Central, Sweden Central, Australia East, Japan East, and Southeast Asia. Azure AI Gateway offers a freemium, per-use pricing model with 10,000 free requests per gateway each month. Paid billing begins January 1, 2027. Monthly gateway requests Service fee Additional request charges Up to 10,000 Free None More than 10,000, up to 10 million $500 per month, per gateway, billed hourly None (includes 10 million requests) More than 10 million $500 per month, per gateway, billed hourly $20 per additional million requests, billed in increments of 10,000 requests Prices are in US dollars and may vary by region. Exact regional prices will be available when billing begins. Get started with Azure AI Gateway Create a gateway at ai.gateway.azure.com. It’s ready in about a minute and free to start. Then: Connect an existing model and give it an alias. Expose the MCP tools your agents need. Give your team access with an AI Gateway role. Set a cost limit. Point your app or agent at the gateway. Or start from your coding agent. Install the Azure AI Gateway plugin, and it finds approved models and tools and connects your app for you. Explore the documentation and quickstarts at ai.gateway.azure.com/docs.8.6KViews2likes2CommentsAzure Functions Canvas (Preview): Build, run, and modernize Function Apps with GitHub Copilot
If you use the GitHub Copilot app or Visual Studio Code, meet the Azure Functions canvas. More and more developers now build with coding agents. The Azure Functions canvas helps you get more from that workflow. It addresses three common problems in Azure Functions development: Use official templates without leaving your workflow. Get the same high-quality Azure Functions templates available in VS Code, directly in the GitHub Copilot app. Start building without switching tools. Agents get there eventually, but slowly. A coding agent can produce an app that runs, but it can take many turns. You also can't always tell whether the result follows best practices. Outdated choices cause incidents. Programming models, hosting plans, and runtime versions that reach end of support can cause outages. So can incorrect code or settings. Canvases are new in the GitHub Copilot app. A canvas runs deterministic tasks quickly, without a round trip through the agent. It also gives you a visual workspace with state that you and the agent share. We're only starting to explore what canvases make possible. Build faster with up-to-date templates The canvas includes 90 starter and scenario templates for Azure Functions and Hosted Skills. They're more than samples: many include Bicep templates that deploy with the Azure Developer CLI (azd). The canvas applies a template directly, so the agent needs fewer turns and less time to give you working code. This is real code in your local work tree. You own the code and can extend it with GitHub Copilot, add it to your repository, and deploy it to Azure. The canvas supports the full development loop: create, run locally, test, and deploy. You can also open your project in VS Code to continue development and debugging. Test your event-driven functions Azure Functions is built for event-driven applications, but testing different triggers isn't always straightforward. The Azure Functions canvas brings event-driven testing into your development workflow. It supports HTTP, Timer, Event Hubs, Service Bus, Storage Queue, Blob, Durable Functions, and Blob triggers with Event Grid. Instead of switching between tools, you can test your functions as you build them, making it easier to develop and validate event-driven applications. Build Hosted Skills with templates and an agent With Hosted Skills, you build event-driven agents in natural language. The canvas includes 14 templates for them. Start from the template that matches your scenario to scaffold quickly, then let the agent continue. Built-in skills help the agent with creation, deployment, and configuration. To build and test a Hosted Skill step by step, see Quickstart: Build and test a hosted skill with the Azure Functions hosted skills canvas. Modernize with confidence On PaaS and serverless platforms, you must regularly review programming models, hosting plans, and supported runtime versions. This is important for security and reliability. Internal data from the Azure Functions team shows that 58% of incidents come from code or configuration issues. These issues are easy to miss. With the canvas, you can quickly find them in local projects and in apps deployed to Azure, and then have the agent fix them. Checks are read-only, and fixes need your approval. The canvas helps you follow current Azure Functions security and runtime best practices, from choosing supported configurations to identifying issues in existing applications. Continue development in VS Code Your project is real code, not a prototype locked inside the canvas. Open it in VS Code to continue development with your familiar tools. The generated project includes configuration and infrastructure files to help you run locally and deploy to Azure. Available in seven languages From day one, the canvas supports seven languages: English, Chinese (Simplified), German, Japanese, Korean, Portuguese (Brazil), and Spanish. Get started Find Azure Functions on Awesome GitHub Copilot, or install it from the marketplace: in the GitHub Copilot app, open Customize > Plugins, select Awesome Copilot, and install Azure Functions. Pro tip: install it directly. Start a new session, then ask: Open Azure Functions canvas. Use it in VS Code (Preview). Canvases are available in VS Code 1.142 and later for local sessions that use the Copilot harness. Install the plugin in the GitHub Copilot app as shown above. Then, in VS Code, enable chat.canvases.enabled, start a new session with the Copilot harness, and ask the agent to open the Azure Functions canvas. For details, see Canvases (Preview). On Home, choose a task: Create, Open, Modernize, or Monitor. You don't need extra tools to open the canvas. To create from a template or deploy, install the Azure Developer CLI (azd). To run locally, install Azure Functions Core Tools 4. Check prerequisites in the canvas shows what you're missing. Give it a try, and tell us what you think.528Views3likes2CommentsPublic preview: OS-level dependency support via containers for Azure Functions Flex Consumption
Your function needs Chromium to generate a PDF. Or GnuPG to encrypt data. Or a native Linux library that isn’t available in the managed execution environment. Until now, an OS-level dependency could require redesigning the application, moving part of the workload to another service, or selecting another hosting option. Today, we’re announcing the public preview of OS-level dependency support via containers on Azure Functions Flex Consumption. With this capability, you can build a Linux container image containing your function application, one supported Functions language worker, application dependencies, and the OS-level software your workload needs. Azure continues to operate the Functions host, trigger integration, routing, and Flex Consumption scaling outside your image. See it in action: Generate PDFs with .NET and Chromium Consider a function that converts HTML into a PDF by using .NET, Puppeteer Sharp, and Chromium. The application needs more than a NuGet package. Puppeteer Sharp needs a compatible browser and the native Linux libraries and fonts required by Chromium. These dependencies aren’t part of the standard managed execution environment. With OS-level dependency support, the application can package those components in its worker image: The .NET isolated function application The .NET isolated Functions worker supplied through the application’s NuGet dependencies Puppeteer Sharp Chromium and its required Linux libraries Fonts and other assets used when rendering the document After the image is deployed to Flex Consumption, an HTTP request invokes the function. Puppeteer Sharp launches the packaged Chromium browser, renders the supplied HTML, and returns the generated PDF. You can explore the complete implementation in the Azure Functions Flex Consumption .NET isolated container sample. A worker-only container model Flex Consumption uses a different container model from other hosting options where the complete Function App runtime is packaged in the customer image. Bring your preferred compatible Linux or language base image to Flex Consumption. As long as the final image satisfies the Flex worker-image contract, you control the base OS, language runtime, application dependencies, and OS-level packages, while Azure provides and maintains the Functions host. Your Flex Consumption container image contains: Your function application One supported Functions language worker Language and application dependencies OS packages, native libraries, browsers, fonts, drivers, executables, and command-line tools required by the application Azure provides and operates: The Azure Functions host and platform components Trigger integration Request and event routing Communication with the language worker Flex Consumption managed scaling This worker-only boundary is important. The feature isn’t arbitrary web-container hosting, and you don’t package or operate the Functions host. You customize the environment in which your function code runs while retaining the Azure-managed Functions programming and scaling model. For broader context on how Azure Functions separates the managed host from the compute that runs your application, see Separating Compute in Azure Functions: Building for scale, efficiency, and reliability. What makes a Flex app registry-backed? A registry-backed Flex app uses the same `Microsoft.Web/sites` resource as a code-package app. The deployment storage type identifies the deployment model: A code-package app uses `properties.functionAppConfig.deployment.storage.type` set to `BlobContainer`. A worker-image app uses the same property set to `Registry`. For a registry-backed app, `deployment.storage.value` contains the fully qualified image reference, and `deployment.storage.authentication` tells Azure how to pull the image. Registry-backed apps omit `functionAppConfig.runtime` because the language runtime and Functions worker are supplied inside the image. properties: { functionAppConfig: { deployment: { storage: { type: 'Registry' value: '<registry>/<repository>:<tag-or-digest>' authentication: { type: '<authentication-type>' } } } // No runtime property for a Registry-backed app. } } Other Function App configuration, including scale and concurrency settings, remains part of the resource and should be preserved when changing the deployment model. See the complete documentation for authentication options, Azure CLI commands, and the complete resource shape. How it works The end-to-end flow is straightforward: Start with the sample Dockerfile for your supported Functions language. Add the OS packages and native dependencies required by your application. Test the source application locally using the normal Functions development experience. Build and scan the linux/amd64 image, then push it to a supported registry. Configure the Flex Consumption app with the fully qualified image reference. Deploy and validate the complete image integration in Azure, then monitor it through logs and Application Insights. For deterministic deployments and rollback, use an immutable image digest for each release. When you need to update the language worker, runtime, base image, OS packages, or application dependencies, rebuild and test the image, push a new version, and update the function app to reference it. Microsoft publishes supported worker artifacts or packages, depending on the language, along with sample Dockerfiles, but doesn’t provide a Flex Consumption base image. You select and maintain the Linux or language base image that meets your application and organizational requirements. When should you use this feature? Use OS-level dependency support when you want the Flex Consumption programming and scaling model but your function requires software that can’t be supplied through the language package manager alone. Examples include: Browser automation with Chromium and Puppeteer PDF generation with Chromium and Puppeteer Sharp Data encryption and signing with GnuPG Image, audio, or video processing with native libraries Database drivers or vendor-provided native SDKs Custom fonts required for document generation Linux executables and command-line tools invoked by application code This capability isn’t intended as a blanket replacement for other Azure Functions hosting options or general container platforms. Choose it when Flex Consumption fits your workload and OS-level dependencies are the missing requirement. Public preview considerations During the preview, keep these considerations in mind: The preview is currently available in several public regions and is rolling out to additional Azure regions over the next few weeks. Use only the documented Functions languages and supported language versions. Images must target Linux amd64. Durable Functions isn’t supported. The Azure Service Bus extension (trigger and output bindings) isn’t supported. Availability zone support isn’t available. The preview doesn’t currently provide a supported experience for running the Flex worker container locally. Continue to test the source application locally and validate the complete image integration in Azure. You are responsible for selecting, securing, scanning, patching, rebuilding, testing, and redeploying the base image, language worker, application dependencies, and OS-level dependencies in your image. Preview capabilities and limitations can change. See the complete documentation for the current language versions, configuration procedures, registry authentication options, operational behavior, and known limitations. Get started Start with the sample for your preferred language: .NET isolated container sample Python container sample Node.js container sample Go container sample Read Use OS-level dependencies via containers with Azure Functions Flex Consumption for the complete image contract and deployment guidance. Try the preview with a workload that needs Chromium, GnuPG, a native library, a driver, a font, or another Linux dependency and share what this capability enables for your application!288Views1like0CommentsManaged connectors in Azure Functions are now generally available
Today, we're announcing the general availability of managed connectors in Azure Functions, bringing managed connectivity to business systems directly into Azure Function apps and hosted skills. Modern applications rarely operate within a single system. Whether you're processing documents from SharePoint, responding to customer updates in Salesforce, or reacting to changes in Microsoft Dataverse, building these integrations often means writing service-specific API code, building and managing authentication, handling event delivery and retry before you can focus on your application's business logic. With managed connectors, developers can: Connect to 1,600+ services through the managed connector ecosystem, including Microsoft 365, Salesforce, Dataverse, Jira, Slack, Dropbox, and many more. React to events from connected services using Connector triggers. Take actions against connected services using language-native Connector SDKs. Build in familiar languages, including C#, Python, and TypeScript. Scale automatically with polling triggers, newly supported for GA Built through close collaboration between the Azure Functions and Azure Connector Namespace teams, this integration brings managed connectors directly into the Azure Functions programming model. Connector Namespace handles connections, authentication, and service-specific integration logic, while Azure Functions provides the familiar development experience, event-driven execution, and automatic scaling. Together, they enable developers to build integrations with enterprise services using the same programming model and tools they already use for Azure Functions. See managed connectors in action Suppose you're building an application that processes documents uploaded to SharePoint. When a new file arrives, you want to extract information, run custom validation, and update another business system. Traditionally, implementing this workflow requires managing SharePoint authentication, detecting new files, and delivering those events to your application. With managed connectors, you can use a Connector Trigger to invoke your function when a new event is detected. For example, here's what a connector-triggered function looks like in C#, using a SharePoint event to illustrate the programming model: [Function("OnNewFile")] public void OnNewFile( [ConnectorTrigger( DeliveryMode = ConnectorTriggerDeliveryMode.Poll, Connection = "ConnectorNamespace", TriggerConfigName = "%OnNewFileTriggerConfigName%")] SharePointOnlineOnNewFileItemsTriggerPayload payload) { _logger.LogInformation("Received OnNewFile trigger ({Count} items)", payload.Body?.Value?.Count ?? 0); } The function receives the events and runs your application logic. Connector Namespace handles the integration with the external service. The same approach works for other supported connector events, including Outlook changes, Dataverse updates, and more. The following is a connector-trigger function in Python showing a Outlook new calendar event: @app.function_name(name="OnNewCalendarEvent") @app.connector_trigger( arg_name="events", connection="ConnectorNamespace", delivery_mode=func.DeliveryMode.POLL, trigger_config_name="%OnNewCalendarEventTriggerConfigName%", ) def on_new_calendar_event(events: List[office365.GraphCalendarEventClientReceive]) -> None: """Triggered when a new calendar event is created in Office 365.""" logging.info("Received OnNewCalendarEvent trigger (%d items)", len(events)) Connector-trigger function in TypeScript showing a Dataverse row modified event: import { app, DeliveryMode, InvocationContext } from '@azure/functions'; app.connectorTrigger('OnDataverseRowModified', { deliveryMode: DeliveryMode.Poll, connection: 'ConnectorNamespace', triggerConfigName: '%OnDataverseRowModifiedTriggerConfigName%', handler: async (payload: unknown, invocationContext: InvocationContext) => { invocationContext.log('Received OnDataverseRowModified trigger.'); return payload; }, }); Take actions with strongly typed Connector SDKs While Connector triggers let your functions react to events, Connector SDKs let your code call operations in connected services. This makes it easy to combine integrations with external services, custom business logic, and Azure AI capabilities within the same application. For example, in this RFP intake sample, an Azure Function is triggered when a new document arrives in SharePoint. It uses the SharePoint Connector SDK to retrieve the document, Azure Content Understanding to extract its contents, and the Teams Connector SDK to post a summary card to a Teams channel. The following is simplified code from the RFP sample showing how the Teams client from the .NET Connector SDK is used to post an Adaptive Card to a channel: 1. Register the TeamsClient in `Program.cs` services.AddSingleton(new TeamsClient( new Uri(teamsRuntimeUrl), new DefaultAzureCredential())); 2. Inject and use it in the function: public class RfpFunctions(TeamsClient teams) { [Function("OnNewFile")] public async Task OnNewFile( [ConnectorTrigger] SharePointOnlineOnNewFileItemsTriggerPayload payload, CancellationToken cancellationToken) { var request = new DynamicPostCardRequest { AdditionalProperties = { ["recipient"] = JsonSerializer.SerializeToElement( new { groupId = "<team-id>", channelId = "<channel-id>" }), ["messageBody"] = JsonSerializer.SerializeToElement(new { type = "AdaptiveCard", version = "1.4", body = new[] { new { type = "TextBlock", text = "New RFP received!" } } }) } }; await teams.PostCardToConversationAsync( "Flow bot", "Channel", request, cancellationToken); } } The connector catalog For popular connectors such as Outlook, SharePoint, and Teams, the Azure Functions Connector extension provides strongly typed event payloads, while the Connector SDKs offer strongly typed clients and models for interacting with these services. This lets developers work with familiar language-native objects when responding to events or calling connector operations, with less manual JSON parsing and API integration code. Below are examples of popular connectors in each enterprise integration category: Microsoft 365 and productivity: Outlook, SharePoint, Teams, OneDrive for Business, Planner, and OneNote CRM and business applications: Salesforce, Pipedrive, Microsoft Dataverse, and Zendesk Developer tools and collaboration: Azure DevOps, GitHub, Jira, and Slack. File storage and data services: Dropbox, Box, FTP, Azure Blob Storage, and SQL Server. Messaging and event streaming: Azure Event Hubs, Azure Service Bus, and RSS. For other connectors supported by Connector Namespace, developers can still use the generic Connector Trigger to receive events as JSON payloads and parse them in their function code. Together, the breadth of the managed connector ecosystem and a code-first, strongly typed developer experience make it easier to integrate business systems while retaining the flexibility of Azure Functions. To explore the strongly typed APIs available for each connector, refer to the following resources. These references help you identify supported trigger payloads, SDK clients, operations, and models: Capability Where to find supported types Strongly typed trigger payloads Connector trigger payloads for Azure Functions Python Connector SDK clients Python API reference TypeScript Connector SDK clients TypeScript API reference .NET Connector SDK clients .NET API reference Note: generic trigger support doesn't automatically imply Connector SDK action support. Developers can receive events from connectors across the broader catalog, but strongly typed SDK clients for taking actions are available only for supported connectors and operations. New for GA: Polling triggers with automatic scaling One of the biggest additions in this release is support for polling-based connector triggers. Previously, managed connector triggers in Azure Functions relied on webhook delivery. With GA, developers can choose between webhook and polling mode, depending on their application's requirements. Both models use the same Connector Trigger programming model, but they differ in how events reach your function. Webhook delivery With webhook delivery, Connector Namespace sends events directly to your Function App's webhook endpoint. This is useful when you want events pushed to your application as they become available, minimizing latency. Polling delivery With polling delivery, Connector Namespace makes events available through a polling endpoint, and Azure Functions retrieves those events. Polling triggers integrate with the Azure Functions scaling infrastructure to monitor pending connector events, allowing applications to handle changing event volumes without manually managing the number of function instances. The polling model also supports batching, so a function invocation can process multiple events. Developers can configure settings such as: MaxBatchSize: Controls how many events can be retrieved in a batch. TargetPendingEventThreshold: Influences scaling based on the number of pending events. maxPollingInterval: Controls the maximum interval between polling attempts. These settings provide flexibility to balance processing throughput, responsiveness, and resource consumption. Local development experience For GA, we're also introducing a new Connector Triggers experience in the Azure Functions extension for VS Code (v1.23.0 or higher), making it easier to build and test polling-based connector triggers. From Azure Functions: Create New Project -> Connectors tab, you can: Choose a connector and event. Browse available connectors and select one or more events you want your function to respond to. Generate your project and code. VS Code scaffolds an Azure Functions project with the corresponding connector trigger code, so you can start building without writing the integration boilerplate yourself. Configure resources for local testing. When you're ready to debug with F5, VS Code guides you through creating or reusing the required Connector Namespace, connection, and trigger resources, including connection authentication and configuration. This streamlined experience lets you go from selecting an event to running and debugging your function locally, without manually provisioning and configuring each integration resource. For developers who prefer the command line, Azure Functions Core Tools (v4.16.1 or higher) also includes a selection of connector trigger templates, providing another way to get started with connector-triggered functions. Pricing Managed connectors in Azure Functions follow existing Azure pricing models, with no additional charge for the integration itself. Two pricing components apply: Azure Functions: Standard Azure Functions pricing applies based on your hosting plan. Managed connectors: Connector usage is billed based on connector calls, with rates depending on whether the connector is classified as Standard or Enterprise. For details, see the Connector Namespace pricing. Get started with managed connectors There are several ways to get started with managed connectors in Azure Functions, depending on your preferred development tools. Azure Developer CLI (azd) If you're familiar with the Azure Developer CLI, the easiest way to get started is with our sample repositories. They include examples of different connectors and triggers, along with Bicep templates that provision the required Azure resources, connector connections, and trigger configurations. Clone a sample, follow its prerequisites, and run azd up to provision and deploy the application. C# samples Python samples TypeScript samples Visual Studio Code Use the Azure Functions extension for VS Code to browse connectors and events in the Template Gallery, scaffold your project, and get guided setup for the connector resources and trigger configurations needed for local testing. Azure Functions Core Tools If you prefer working from the command line, Azure Functions Core Tools also offers a selection of connector trigger templates to help you scaffold your project. Follow the instructions at aka.ms/connectortrigger to set up the required resources and configurations to test the scaffolded project. More references To learn more about managed connectors in Azure Functions, explore the following resources: Use managed connectors in Azure Functions Azure Functions Connectors Samples Azure Connector Namespace Overview Browse available managed connectors Connector SDKs: .NET SDK Python SDK Node.js SDK824Views1like0CommentsSeparating Compute in Azure Functions: Building for Scale, efficiency, and reliability.
As customers bring new workloads to Azure Functions, we continue to evolve the runtime to support them securely and at scale. Compute Separation is part of that work. We're revisiting how the host and language workers are deployed and managed to improve efficiency and reliability, and to enable new capabilities while preserving the Functions programming model. When a Functions app needs more capacity, the work you want to scale is its language worker and customer code. In the co-located, out-of-process hosting model, adding that capacity also adds another Functions host, even if the existing host capacity could coordinate more workers. The language worker is already a separate process, but the platform's unit of scale is still the instance that contains both host and worker. Compute Separation changes that unit of scale. The host and the workers run on separately managed compute, allowing the platform to add workers without creating a host for each one. For customers, that opens up more control over the environment running their code, while the platform retains responsibility for the Functions host. Getting there means revisiting assumptions that were convenient when both components lived in the same instance: access to application files, who starts and replaces a process, and even which side opens the connection. One of the most consequential constraints was networking. Existing workers connect to the host, but the platform's networking model requires the remote connection to run in the other direction. This post follows the engineering decisions behind that change, the cold-start and reliability requirements that shaped it, and how we're building and proving the architecture in small end-to-end steps. Preview scope: Everything in this article describes a preview implementation that is still in progress. It is not a released product contract or a migration recommendation. We expect the architecture, behavior, and scope to change as we implement features and validate performance and reliability. Why change the host-worker boundary? The host and the language worker do different jobs. The host connects the app to the platform's control model and implements the runtime-side contract used for worker assignment, readiness, scaling, and reliability actions. It also understands the Functions execution model: it loads trigger and binding extensions, discovers functions, manages listeners, and coordinates invocations. The language worker understands how to load and execute your code in its language runtime. Process isolation already separates these responsibilities into different processes. Compute Separation also separates their compute and lifecycle. Keeping those components together made several things straightforward. The host could start a child process, communicate over localhost, and treat process exit as a direct signal that its worker had stopped. Configuration and application files were available in the same deployment environment. Those conveniences also created dependencies. Scaling the worker repeated the host's resource overhead. A language-specific image carried the host and its dependencies as well as the language runtime. Host maintenance and application image maintenance were coupled. Consider an application that needs native libraries or a particular operating-system dependency. A customer-provided worker image should let you package that environment without also packaging and maintaining the Functions host. You'd own your application, language runtime, dependencies, and image maintenance. The platform would own the host. Custom worker containers are the first customer-facing scenario we're using Compute Separation to enable. The architecture has broader value, though. A host fix shouldn't inherently require rebuilding every language-specific application image. Adding customer execution capacity shouldn't require repeating the full host. Independent release and scaling decisions become possible, subject to protocol compatibility and the capacity of each component. There is a platform-efficiency motivation too. Keeping combined host-and-worker environments warm fragments capacity by language, version, and instance size. A language-independent runtime gives us more options for reusing warm runtime capacity without preparing every combined environment. That is an architectural opportunity, not a measured cold-start improvement or a customer pricing claim. The goal is to preserve the Functions programming model while changing how its components are operated. Functions still execute in language workers, and trigger and binding behavior still needs to hold across the new boundary. Challenge: the worker couldn't initiate the remote connection In the co-located model, the host listens for a connection and the language worker connects to it. Moving the host to another compute instance might suggest replacing a localhost address with a remote endpoint. The platform's network security model rules out that approach. Once separated, worker pods run customer code, so they aren't allowed to open outbound connections to runtime pods. Any connection between the two has to be initiated by the runtime. One option was to change the workers' connection behavior. That would have had a significant compatibility impact across existing worker implementations. It would also have introduced a worker contract tied to the networking needs of this particular hosting model. We wanted to keep those deployment details out of the language workers. We introduced a platform-owned WorkerProxy between the two sides. The runtime opens an authenticated TLS FunctionRpc stream to WorkerProxy. The language worker connects to WorkerProxy over the worker pod's local network, retaining the worker-initiated connection pattern. WorkerProxy bridges the two connections. Each worker pod contains WorkerProxy and a separate container for the language worker and customer code. WorkerProxy provides the transport bridge and worker-side lifecycle contract. It doesn't become a second Functions host, start the customer process, or take ownership of platform placement and pod deletion. For workers that negotiate HTTP streaming, there is also a separate data path: the host forwards HTTP through WorkerProxy's assigned HTTPS origin to the worker's local HTTP endpoint. Requests still pass through the host. On the runtime side, the preview uses a dedicated Functions.Host executable with a client-backed worker composition. The ordinary co-located host retains its server-backed path. We can develop the new topology without making every existing app switch to it. This preserves an important part of worker compatibility, but doesn't eliminate all protocol work. Remote startup also needs configuration, metadata, and extension delivery. Keeping the connection pattern familiar is different from promising that every existing worker version supports the complete new hosting model. Preview limitations and why they exist The networking constraint affects more than the main connection. The FunctionRpc stream isn't the only conversation between a worker and the host. Some extensions add their own communication paths, where code in the worker calls back into components running in the host. In the co-located model, those calls never leave the instance. In the new topology, they become worker-initiated calls to a remote host, which is the direction the networking constraints rule out. WorkerProxy bridges the main stream, but these additional paths are specific to each extension and carry their own protocols and expectations. Supporting them requires changes in both the host and the extensions. Some of that work was more complex than the initial preview's scope and timeline allowed, so the first preview has extension limitations. Service Bus and Durable Functions are the most visible examples. Service Bus message settlement relies on one of these paths: when a function explicitly settles a message, for example to complete or dead-letter it, the worker asks the host-side extension to perform that operation. Durable Functions has a similar dependency. Operations such as starting an orchestration or raising an event go from the worker to APIs that the Durable Functions extension exposes in the host. Neither extension is supported in the first preview, and host and extension work to address these limitations is in progress. Challenge: protecting cold-start performance Cold-start performance was the key performance requirement shaping the design. Separating compute adds networking and coordination to activation. Optimizing steady-state invocation forwarding would not be enough if starting an application became slower. Activation spans networking configuration, specialization of a host instance for the application, initialization of the application container, and linking the worker to the host. Treating all of that as one serial sequence would make each step's latency part of the wait for useful execution. We designed the activation process to overlap independent work while keeping its dependencies explicit. An assignment can arrive before the language worker starts. Other steps really do need to wait: the host must validate initialization before accepting a link, and invocation dispatch must wait for application setup. The requirement is to parallelize preparation without treating partial progress as readiness. The host-side startup path illustrates those distinctions: Assignment configures the worker side. WorkerProxy accepts application and function-group identity, limits, and the HTTP origin when needed. Assignment acceptance doesn't prove that the customer process has initialized. The runtime establishes and validates the link. It connects to WorkerProxy and validates worker initialization, application proof, and delivered host configuration before accepting the link. Application preparation continues. Advertised extensions are prepared before the initialized signal is published. Metadata acquisition and ScriptHost construction and setup follow. The channel becomes eligible for dispatch. The current application-host setup and channel-readiness checks determine when the worker can receive invocations. A successful Link response is therefore an intermediate checkpoint, not permission to send traffic. Platform status publication is another checkpoint, not proof that the entire serving path has converged. Smaller worker images and more reusable warm runtime capacity give us opportunities to improve startup. Neither establishes the result on its own. Cold-start measurements need to cover the full activation path, including scheduling, image availability, networking, specialization, and linking. Application setup without a shared filesystem Activation also exposed a dependency inside the host: it previously had local access to the customer's deployment. A remote host still needs configuration, function metadata, and binding extensions before it can run the app. For host configuration, the compute host advertises the HostConfiguration=1 capability during initialization. A compatible worker returns a typed envelope containing the configuration, and WorkerProxy relays it. The host validates the delivery rather than asking the proxy to interpret the customer's host.json . Malformed configuration fails admission instead of silently becoming defaults. The selected configuration source stays stable across later worker links and child-host restarts. Adding execution capacity must not silently reconfigure an app because another worker connected. Consistency between workers' configuration and function definitions still needs to be validated. Extensions make the boundary more interesting. Customer function code runs in the worker, but host-side binding extensions still run in the host. The preview implementation can receive an advertised extension archive over the connection, validate and extract it, and prepare those assemblies before extension discovery and listener startup. The host can therefore start without a shared customer deployment mount, but it still has application-specific dependencies. Moving files across the connection doesn't add the extension-specific communication paths described earlier or qualify every binding. Those behaviors also have to work across the new boundary. Challenge: preserving reliability without owning the process The co-located host could observe and manage its worker as a child process. With independent compute, the platform owns process creation and replacement. Existing host logic has to participate in that lifecycle through explicit contracts while preserving recovery behavior. A lost connection, for example, is no longer equivalent to a child process exiting. It tells one component that communication stopped; it doesn't prove what the other component is doing. Admission, draining, and replacement need coordinated decisions rather than assumptions based on local process state. That starts with knowing where work can run. The scheduler selects a ready, non-draining worker in the function's group, using a round-robin preference. For HTTP, a full worker is skipped; if all eligible workers are full, admission waits for capacity. A FIFO gate orders invocation attempts, not execution or completion. Listeners need to follow that capacity too. The preview gates supported pull-based listeners on workers for their function group, so the runtime doesn't keep acquiring events with no corresponding worker available. Push-based triggers and shared listeners need different handling. Preserving trigger semantics requires more than a generic worker-selection policy. When is an invocation actually finished? Planned scale-in requires a precise answer. The host closes new admission, withdraws the worker from usable capacity, and drains accepted work before terminating or unlinking the channel. The platform then remains responsible for physically removing the pod. Accepted work includes invocations still buffered or converting input. HTTP adds another case: a worker can send a successful gRPC invocation response while the HTTP response body is still being forwarded to the caller. Removing the worker at that point can truncate a response even though the invocation protocol reported success. The implementation tracks completion through dispatch and, for proxied HTTP, through response forwarding. Worker retirement waits for that lifecycle. This is a useful example of how a familiar operation, stopping a worker, acquires a more explicit contract once its pieces run independently. Unexpected runtime loss follows a separate path. In the current implementation, WorkerProxy enters a sticky removal-requested state and rejects new work, leaving removal and replacement to the platform. It doesn't transparently attach another runtime or replay invocations. Separate compute boundaries also change the failure scenarios we need to test. A worker failure need not require restarting the host, but a runtime failure can affect several workers for the same application. Independent scaling doesn't eliminate shared dependencies. Challenge: carrying platform services across the boundary The host-worker connection now crosses a network and compute boundary. Authenticating the caller, associating a worker with the right application, and handling credentials become explicit parts of the design. The preview implements TLS, runtime caller tokens, and application-key proof during initialization. Those mechanisms are not a claim that the security contract is finished. The implementation documents limitations in certificate identity validation, shared-key authority, and replay protection. Provisioning, network policy, revocation, and cross-application containment remain part of qualification. Managed identity illustrates how platform integration also affects startup. Application code can need an identity token before worker initialization completes. If identity access depended on completed initialization, startup could wait on itself. The preview includes an opt-in Token Service proxy. WorkerProxy carries the worker's local identity request over the existing runtime-initiated stream, and the host forwards it to the host-side Token Service. That path can operate before the customer's worker stream starts. The application gets access to the operation it needs without moving the upstream Token Service credential into the worker-side forwarding contract. Diagnostics and metering need the same attention to ownership. A failure now involves a runtime, a worker pod, and a connection session; logs need to let us distinguish them while preserving the customer logging path. One runtime can dispatch to several workers, so execution measurements need to identify the worker that actually accepted an invocation. The preview records that attribution at dispatch and tracks completion against the selected worker. Binding and extension work can happen before admission, though, so the worker's execution window doesn't cover the whole invocation pipeline. Those records are part of the accounting work, not a final billing definition. Proving the change one end-to-end outcome at a time The initial checkpoint deliberately used one worker and one HTTP request. Even that small scenario crossed platform assignment, the host's outbound link, worker metadata, readiness publication, and both the HTTP and FunctionRpc paths. It gave us a bounded way to exercise the new connections and contracts together. From there, the work expands along several related dimensions: starting an app without a shared deployment mount, executing correctly as worker capacity changes, integrating with platform services, and qualifying the customer experience. These are parallel workstreams with shared contracts, not sequential releases. Figure 3. An explanatory grouping of overlapping engineering workstreams, with dependencies and validation feedback. This is not an availability timeline. Each step needs an observable outcome. Can another worker join without restarting the application host? Can an early identity request complete during startup? Can a worker drain while its HTTP response is still streaming? Can a non-HTTP trigger preserve its binding and execution behavior? These questions cross repository and component boundaries. The host provides components and contracts, while placement, networking, frontend routing, image delivery, language-worker support, and rollout involve other parts of the platform. A merged host change isn't evidence that the whole service path is ready. Small end-to-end scenarios let us test those interactions before broadening coverage. They also let us revise a contract after learning from it, rather than treating a successful connection as proof that startup, execution, and recovery are complete. What remains to prove The next evidence has to cover the full application workload. Cold-start and scale-out measurements need tail latency and image-cache misses, as well as the activation path under normal conditions. Steady-state tests need to quantify network and proxy overhead. Capacity tests need to establish how many workers a runtime can safely coordinate. Compatibility is another qualification task. We need full fidelity with the existing model to ensure applications continue to run with no modifications. What this makes possible The payoff we're working toward is concrete: customers can own the environment running their code without maintaining the Functions host, and the platform can scale and service those components independently. Custom containers are the first scenario, but the value extends beyond packaging. Separate compute gives the host and workers their own CPU and memory resources. A worker that misbehaves is less likely to take resources away from the host or affect the rest of the app, though work assigned to that worker can still fail. We can also allocate capacity to each role independently, rather than adding host overhead whenever we add workers. That gives us room to use resources more efficiently. This separation also gives us a foundation for more advanced deployment options and more flexible scaling. Customer containers can be smaller because they no longer need to include the host and its dependencies. These are opportunities, not capabilities or performance results we can claim for this preview. We've explored this architecture in internal prototypes. It's exciting to see it making its way into the service and opening up new scenarios for customers, starting with custom worker containers. We also plan to extend this model transparently to existing apps, so current customers can benefit without changing how they build and run their apps. We still have work to do to implement the features and validate the performance, but the direction is clear. Separating the host from the worker gives every Functions app a more reliable and efficient foundation, and opens the door to capabilities we couldn't build with both roles sharing the same compute.232Views0likes0CommentsConnector Namespace is generally available:
A connector namespace is one Azure resource that hosts connections, triggers, connector operations, and MCP server configurations. You create a connection once, then use it from Azure Functions, Foundry agents, Azure Container Apps sandboxes, or your own app. Same 1,400+ connectors you know from Logic Apps and Power Platform. This post is the index. The main GA features each get their own deep dive, and I'll link them here as they go live. What's new Feature What you get Deep dive On-behalf-of (OBO) authentication for MCP connectors Set an MCP connector to Per-user authentication and every tool call runs as the signed-in user, not through a shared connection. The namespace creates one connection per user on first use, for any connector that supports OAuth sign-in. An agent that searches SharePoint for an employee sees only the files that employee can open, and the downstream system's audit trail shows the real user. Read the deep dive Custom connectors and custom MCP servers Bring your own APIs and MCP servers into the namespace, next to the managed catalog. Your internal order API or a partner's MCP server gets the same connection management and identity handling as Salesforce or ServiceNow, and your agents call it the same way. Read the deep dive Polling triggers Set a trigger configuration's delivery mode to Polling and your code pulls events from the namespace when it has capacity, instead of the namespace pushing them to a callback endpoint. There's no inbound endpoint to open, and access comes from an access policy on the connection, not a key. A function that processes new SQL orders can sit behind private endpoints and work through a burst at its own pace without flooding the fulfilment system behind it. Azure Functions consumes polling triggers today, through the Connector trigger in public preview. Read the deep dive Bring-your-own server image in Hosted MCP (public preview) Host your custom MCP servers without operational and management burden - just bring the container image, and let the namespace handle deployment, manage underlying compute, server lifecycle, authentication/authorization, scaling, and more. Read the deep dive GA also includes two platform updates: Managed identity end to end. Use an Azure managed identity as the authentication option for connectors that support it, configured the same way in Bicep and in the portal. For those connectors, your deployment pipeline stands up a namespace and its connections with no client secrets to store, rotate, or leak. New public regions. Create namespaces in more Azure regions: [Add region list]. Run your namespace in the same region as your compute and your data, and meet data residency requirements. We'll keep adding regions after GA based on partner and customer demand. What's next GA doesn't cover everything. Here's what's still coming, so you can plan around it: Observability. Diagnostic logs, Azure Monitor usage metrics, and an OpenTelemetry (OTel) export destination with shared correlation IDs for end-to-end tracing. Virtual network (VNet) integration. Inbound Private Link, and outbound VNet integration with customer-controlled DNS and egress. This is what lets connectors reach private and on-premises systems. Get started Portal: connectors.azure.com Documentation: Create a connector namespace Public preview announcement: aka.ms/connector-namespace/blog If you built on the preview, try the GA features and tell me what still keeps you out of production. That list shapes what we build after observability and VNet. File issues and requests at GitHub Issues.365Views0likes0CommentsPolling triggers in Connector Namespace: let your code pull connector events
What is a polling trigger? A trigger configuration in Connector Namespace ties an event in an external service, such as a new row in a SQL table, a new email or a new file, to a destination. Each trigger configuration has a delivery mode that decides how events get from the namespace to your code. With webhook delivery, the namespace pushes each event to a callback endpoint on your app. With polling delivery, the namespace holds the events for the trigger configuration, and your code connects outbound to retrieve them, processes them, and acknowledges each one when it's done. In Azure Functions you don't even write that loop: the Connector extension runs it and hands your function the events. On the namespace side, a polling trigger configuration gets its own event queue, handles large messages, keeps run history, and protects against duplicate delivery. One distinction is worth calling out early. The delivery mode controls how events travel from the namespace to your function app. It doesn't change how the managed connector detects changes in the source system. In the walkthrough below, the SQL connector still checks the table for new rows; polling only changes the last hop. While polling is only supported out of the box in Azure Functions today, support for polling will be implemented for other partner services based on customer feedback. So, make your voice heard if it is something you want to see on other applications. Why it matters Choosing a delivery mode comes down to four things: latency, processing capacity, networking and authentication. Webhook delivery still wins on latency. Polling is the better fit for the other three. Capability Polling Webhook Event delivery and latency The Functions host retrieves events through outbound requests. Events wait until the host polls. The namespace pushes events as soon as it picks them up from the source. Lower latency. Processing capacity The host takes more events as capacity frees up. Pending events stay queued in the namespace, subject to its retention limits. Events arrive regardless of the app's capacity. Throttled or failed callbacks can lose events once retries run out. Inbound networking No inbound endpoint. Only outbound HTTPS to the namespace polling endpoint. The namespace must be able to reach the app's callback endpoint. Authentication The function app's managed identity, with an access policy on the connection. The Connector extension system key by default, or Microsoft Entra ID with App Service built-in authentication. Your function sets the pace With webhook delivery, events land whenever the source produces them. If your app is at its scale-out limit, callbacks get throttled or fail, and an event that isn't delivered within the service's retry limits can be lost. With polling, the backlog waits in the namespace and the host pulls more work only when it has capacity. Combine your app's scale-out limit with the polling concurrency settings and you have a hard ceiling on how hard your function hits the database or API behind it. No public endpoint Polling doesn't need a public callback URL or a function app system key, because your app retrieves events instead of receiving callbacks. You can put the function app behind private endpoints or inbound access restrictions, and polling keeps working as long as the app can make outbound HTTPS calls to the namespace. Managed identity instead of keys The Functions host authenticates with Microsoft Entra ID. In Azure, that's the function app's system-assigned or user-assigned managed identity. On your machine, it's your developer identity. Either way, access is granted with an access policy on the managed connector connection, so there's no secret to store or rotate. Scale that follows the backlog In polling mode, the Connector trigger uses target-based scaling based on the estimated event backlog for the trigger configuration. The scaling target is independent of batch size and per-instance concurrency, so you can tune throughput and protection separately. What you trade Latency. An event waits in the namespace until the host polls for it. You can shorten the gap with the maxPollingInterval host setting, but if every millisecond counts, webhook is still the right mode. Polling delivery is also at least once: a failed invocation isn't acknowledged, and the event can come back after its lock expires, so make your processing idempotent. Polling at a glance Before the Azure Functions walkthrough, here's the shape of any polling setup. The first two steps happen in Connector Namespace and don't depend on the compute you choose. The last two happen wherever your code runs. Create a polling trigger configuration in your connector namespace. Pick the connector, the event, the connection and the inputs, and set the delivery mode to Polling. From then on, the namespace holds events for that configuration until your code takes them. Grant the consuming identity access with an access policy on the managed connector connection. In Azure that's a managed identity; on your machine it's your developer identity. No keys or secrets change hands. Point your code at the namespace with the polling endpoint and the trigger configuration name. There's no callback URL to register, so the consumer can sit behind private endpoints or inbound access restrictions. Poll, process and acknowledge. Your code retrieves events when it has capacity, processes them and acknowledges each one. An event that isn't acknowledged becomes available again after its lock expires, which is why delivery is at least once. In Azure Functions, the Connector extension takes care of the fourth step: you declare the trigger, and the host runs the polling loop, invokes your function and acknowledges the events. The walkthrough maps onto the same pattern. You create the trigger configuration in Step 2, wire up the polling endpoint in Steps 3 and 6, and grant access in Steps 4 and 7. livery pushes events into your app; polling delivery lets your app pull them. Walkthrough: process new SQL orders with a polling trigger Here's the scenario. You have an Orders table in Azure SQL Database. SQL doesn't call anyone when a row is inserted, and the fulfilment system downstream can only take so many requests at once. You want a function that picks up each new order, without opening an inbound endpoint and without flooding fulfilment when a batch of orders lands at once. Figure: the walkthrough scenario. The numbers match the four steps in Polling at a glance. The walkthrough uses C# with the .NET isolated worker and the Connector Namespace portal. Python and Node.js follow the same steps; the documentation has the code for both. Before you start You need: An Azure subscription and a connector namespace. If you don't have one, create a connector namespace first. An Azure SQL database with an Orders table. The SQL connector's new-item trigger needs an IDENTITY column on the table. A .NET isolated worker Functions project, Azure Functions Core Tools and the Azure CLI. Step 1: Add the Connector extension Add version 1.0.0 or later of the Connector extension package to your project: dotnet add package Microsoft.Azure.Functions.Worker.Extensions.Connector Step 2: Create the polling trigger configuration Go to the Connector Namespace portal and select your namespace. In the namespace menu, select Triggers, and then select Create. Find the SQL Server connector and select the When an item is created (V2) event. Create a connection or select an existing one. Creating a connection takes a one-time authentication with your SQL server. Provide the inputs the event needs: the server, the database and the Orders table. For Destination type, choose Azure Functions. For message delivery method, choose Polling. Review the configuration, and then select Create. Unlike webhook delivery, you don't need the function app deployed before you create the trigger configuration. The function finds the configuration by name. Step 3: Copy the polling endpoint Your function needs the namespace's polling endpoint. Copy it from the trigger configuration in the Connector Namespace portal: Configuration Required Portal Value ConnectorNamespace__PollingEndpoint Base Url configuration %TriggerConfigurationName% Trigger Configuration name Step 4: Grant access to the connection The identity that polls needs an access policy on the managed connector connection. Note that the policy goes on the connection, not on the namespace, and that signing in or turning on a managed identity doesn't grant this access by itself. For local development, the caller is your developer account. For a deployed app, it's the app's managed identity. Use the principal (object) ID, not the application (client) ID. In the Connector Namespace portal, select your namespace and open Connections. Select the SQL Server connection your trigger configuration uses. Open the Access Policies tab and add a policy for the caller identity. Check that the caller now appears in the connection's access policies. Step 5: Write the function The SQL connector doesn't have a strongly typed .NET payload yet, so the function binds to string and receives the raw JSON. Connectors that do have typed payloads, such as Office 365 Outlook, can bind to their payload model instead. using System.Text.Json; using Microsoft.Azure.Functions.Worker; using Microsoft.Azure.Functions.Worker.Extensions.Connector; using Microsoft.Extensions.Logging; namespace Contoso.Products; public class SQLServerOnNewProduct { private readonly ILogger<SQLServerOnNewProduct> _logger; public SQLServerOnNewProduct(ILogger<SQLServerOnNewProduct> logger) { _logger = logger; } [Function(nameof(SQLServerOnNewProduct))] public void Run( [ConnectorTrigger( DeliveryMode = ConnectorTriggerDeliveryMode.Poll, Connection = "ConnectorNamespace", TriggerConfigName = "%ONSQLNewProductTriggerConfigName%")] string payload) { using var document = JsonDocument.Parse(payload); var productName = document.RootElement .GetProperty("body") .GetProperty("Name") .GetString() ?? throw new JsonException("The product name must not be null."); _logger.LogInformation("Received product: {ProductName}.", productName); } } Three properties do the work. DeliveryMode = ConnectorTriggerDeliveryMode.Poll switches the trigger from the default webhook mode to polling. Connection = "ConnectorNamespace" is a settings prefix: the extension reads the polling endpoint from ConnectorNamespace__pollingEndpoint and the identity settings from the same prefix. TriggerConfigName points at the trigger configuration, here through the NewOrderTriggerConfigName app setting so you can change it per environment. Step 6: Run it locally Add the settings to the Values section of local.settings.json : { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated", "ConnectorNamespace__pollingEndpoint": "<my-trigger-base-url>", "ONSQLNewProductTriggerConfigName": "<my-trigger-configuration-name>" } } Leave out ConnectorNamespace__credential locally, and the extension uses your developer credentials. Sign in, start the host, and insert a row: az login func start -- Insert 3 sample products into AdventureWorksLT (SalesLT.Product) -- ProductID is an IDENTITY column; rowguid and ModifiedDate have defaults. INSERT INTO SalesLT.Product (Name, ProductNumber, Color, StandardCost, ListPrice, Size, Weight, ProductCategoryID, SellStartDate) OUTPUT inserted.ProductID, inserted.Name, inserted.ProductNumber, inserted.ListPrice, inserted.ModifiedDate VALUES (N'Polling Trail Bike 42', N'CN-POLL-001', N'Red', 812.50, 1299.99, N'42', 11800.00, (SELECT ProductCategoryID FROM SalesLT.ProductCategory WHERE Name = N'Mountain Bikes'), GETDATE()), (N'Polling Aero Helmet', N'CN-POLL-002', N'Black', 22.75, 49.99, NULL, NULL, (SELECT ProductCategoryID FROM SalesLT.ProductCategory WHERE Name = N'Helmets'), GETDATE()), (N'Polling Water Bottle 750ml', N'CN-POLL-003', N'Blue', 2.10, 6.99, NULL, NULL, (SELECT ProductCategoryID FROM SalesLT.ProductCategory WHERE Name = N'Bottles and Cages'), GETDATE()); Within the next polling cycle, the function logs the new order. Step 7: Deploy with a managed identity In the Azure portal, open your function app, go to Identity, and turn on the system-assigned managed identity. You can assign a user-assigned identity instead. Grant that identity an access policy on the SQL Server connection, as in step 4, using its principal (object) ID. Add the app settings below under Environment variables. Publish the app with func azure functionapp publish <FUNCTION_APP> . App setting Value ConnectorNamespace__pollingEndpoint The polling endpoint from step 3 NewOrderTriggerConfigName new-orders ConnectorNamespace__credential managedidentity ConnectorNamespace__clientId The client ID of the user-assigned identity. Set it only for a user-assigned identity, or set ConnectorNamespace__managedIdentityResourceId instead. Omit both for a system-assigned identity. Because nothing calls into the app, you can now restrict inbound access with private endpoints or access restrictions. Polling only needs outbound HTTPS to the namespace. Step 8: Tune throughput and protect what's downstream The defaults work, but polling gives you levers that webhook doesn't. To take orders in batches, turn on batching and bind to an array of events: [Function("OnNewOrders")] public void OnNewOrders( [ConnectorTrigger( DeliveryMode = ConnectorTriggerDeliveryMode.Poll, Connection = "ConnectorNamespace", TriggerConfigName = "%NewOrderTriggerConfigName%", IsBatched = true, MaxBatchSize = 8, TargetPendingEventThreshold = 16)] ConnectorEvent<string>[] events) { foreach (var orderEvent in events) { logger.LogInformation("Processing event {MessageId}.", orderEvent.MessageId); // Parse orderEvent.Data and hand the order to fulfilment. } } Property Default What it controls IsBatched false Whether each invocation receives a batch of events. Batches are processed one at a time per listener. MaxBatchSize 1 Maximum events per invocation, from 1 through 32. Must be 1 when IsBatched is false. MaxConcurrentCalls 16 Maximum concurrent single-event invocations per listener on one instance. Applies only when IsBatched is false. TargetPendingEventThreshold 16 Desired pending events per instance for target-based scaling. Doesn't change batch size or concurrency. Each property falls back to an app-wide default in host.json when you omit it or set it to 0. The same section holds the polling interval. This example caps the wait between polls at one second when no events are available: { "version": "2.0", "extensions": { "connector": { "maxPollingInterval": "00:00:01" } } } Two more things before you go to production. Delivery is at least once, so make the processing idempotent; for an order, that usually means checking whether you've already sent it to fulfilment. If you deduplicate on ConnectorEvent<T>.MessageId , scope it to the namespace and trigger configuration, because message IDs aren't guaranteed unique across triggers. Feedback Polling is the first delivery mode in Connector Namespace where your code sets the pace, and we want to know how it holds up in your workloads. I'm especially interested in three things: which source systems you're polling, how you're setting batch size and concurrency, and what's missing before you'd run it in production. Tell us in GitHub Issues. For bugs in the Connector extension, open an issue here. To go further: Connector trigger for Azure Functions Connector extension for Azure Functions overview Use managed connectors in Azure Functions Connector Namespace portal Connector Namespace GA announcement161Views0likes0CommentsWhat's new in Azure Functions durable task scheduler: Durable agents, disaster recovery, and more
There's been a lot happening with the Azure Functions durable task scheduler lately. Here's a quick look at what's new: Durable agents: The Durable Extension for Microsoft Agent Framework is generally available, durable execution with DTS for LangGraph is in preview, and Pydantic AI now includes Azure Durable Task as a built-in durability option. Native disaster recovery and task queues: Both are now in public preview. Private endpoints and customer-managed keys: Both are now generally available. Durable Task Go SDK: Now available in preview. Whether you're running business workflows, processing event-driven pipelines, or coordinating AI agents, here's what these updates mean for your apps and how to get started. What is the Durable Task Scheduler? If you're new to the Durable Task Scheduler, it's a fully managed durable execution backend for workflows and agents on Azure. It saves progress as work runs, so applications can recover from interruptions without starting over. Completed steps whose results have been saved can be reused, and workflows can wait for human input or external events without keeping a worker active just to wait. DTS handles task scheduling, state persistence, and recovery. Its built-in dashboard lets you inspect execution history and manage running orchestrations. The DTS dashboard shows the execution timeline of a travel-planning workflow, including agent calls and a wait for approval. DTS runs separately from your application. Use it with Durable Functions, the Durable Task SDKs, or supported agent framework integrations, including the Durable Extension for Microsoft Agent Framework. Your application code can run anywhere in Azure, including Azure Functions, Azure Container Apps, and Azure Kubernetes Service. Already using DTS? Here's what's new. Durable execution in agent SDKs Agents and workflows need more than conversation history to recover from interruptions. They might call several tools, start a long-running job, or wait for someone's approval. If a worker restarts halfway through, the application needs to know which steps completed and what should happen next. Durable execution saves that progress, so agents and workflows can run for minutes, days, or weeks and resume from recorded progress after worker or container restarts, scaling events, or infrastructure failures. Retry policies help handle transient errors such as rate limits and timeouts. Completed model calls, tool calls, and activities whose results have been saved can be reused during recovery, reducing repeated work and token costs. Conversation context remains available, and workflows can wait for approvals or external events for hours or days without keeping a worker active just to wait. You can bring these durable execution capabilities to agents and workflows built with Microsoft Agent Framework, LangGraph, or Pydantic AI. Here's how to get started with each: Microsoft Agent Framework: The Durable Extension is generally available for .NET and Python. Keep your core agent logic and coordinate durable agents and multi-agent workflows with Durable Task orchestrations or Agent Framework graphs. See the GA blog post and samples. LangGraph: In public preview. Add DTS to existing Python graphs, ReAct agents, and Deep Agents on Azure without rewriting your graph logic. Pydantic AI: Azure Durable Task is now available as a durability capability in Pydantic AI Harness. Use it with Durable Task orchestration and worker setup to persist model and tool results and recover agent execution without building your own checkpointing or recovery system. Native disaster recovery is now in public preview Native disaster recovery for Azure Functions durable task scheduler is now in public preview. For business-critical workflows and applications with cross-region recovery requirements, it provides a way to resume work in another region from replicated state rather than starting workflows over. Pair your primary scheduler with a secondary in another Azure region, and DTS replicates orchestration and entity state to the secondary. When you need to fail over, you can promote the secondary and resume work from that replicated state. Learn more: Disaster recovery documentation. Task queues are now in public preview Task queues for Azure Functions durable task scheduler are now in public preview. Group orchestration and activity work into named queues within a task hub and control how quickly DTS delivers that work to workers. This helps teams pace batch processing and give different workloads their own dispatch-rate budgets without creating separate task hubs. For workloads that call downstream services, it provides a way to manage how quickly work is dispatched. Create a queue, configure its work-item delivery rate, and select it using the DTS_TaskQueue tag when scheduling work. For a closer look at how task queues work and an example of how to use them, see Task queues in Durable Task Scheduler. Learn more: Task queues documentation and SDK examples. Private endpoints are now generally available Private endpoints for Azure Functions durable task scheduler are now generally available for both Consumption and Dedicated SKU schedulers. Connect your applications to DTS through a private IP address in your virtual network using Azure Private Link. Traffic stays on the Microsoft backbone instead of traversing the public internet. You can also disable public network access so your scheduler accepts connections only through private endpoints. Applications continue to use the same scheduler endpoint and Microsoft Entra authentication. Learn more: Configure private endpoints for DTS. Customer-managed keys are now generally available Customer-managed keys for Azure Functions durable task scheduler are now generally available for Dedicated SKU schedulers. Organizations that need to manage their own encryption keys can now use customer-managed keys to protect their workflow data, supporting separation of duties, centralized auditing of key access, and customer-defined key rotation policies. Use a key you own in Azure Key Vault or Azure Managed HSM to protect scheduler data at rest. Configuration is available through the ARM REST API, Azure CLI using az rest, or Bicep. Learn more: Configure customer-managed keys for DTS. The Durable Task Go SDK is now available in preview Writing your application in Go? You can now build durable workflows with the Durable Task Go SDK, available in preview. Write your orchestrations and activities in Go, and let DTS take care of durable state and dispatching work. You can chain activities, run work in parallel, wait for external events, and use durable timers. Retry policies help you handle failures, and orchestration management APIs let you manage execution. Start locally with the DTS emulator, then connect your application to a scheduler in Azure when you're ready. You'll need Go 1.25 or later, and DTS is currently the SDK's only supported runtime. Get started: Go SDK documentation, DTS quickstart sample, and Go sample catalog. Get started with the Durable Task Scheduler If you're new to DTS, start with the documentation and samples. You can develop locally with the emulator, then choose the Consumption or Dedicated SKU based on your workload's pricing and capacity requirements. We'd love to hear your feedback, especially as you try the new previews. Share questions and feedback through the Durable Task Scheduler GitHub repository.334Views0likes0CommentsWhat's new in Azure Functions and Durable Task Scheduler at Microsoft Ignite 2026
At Microsoft Ignite 2026, we're announcing a significant set of updates across Azure Functions and Durable Task Scheduler. Read the full summary and technical breakdown covering Managed Connectors (GA), custom containers on Flex Consumption, durable execution and enterprise controls for AI and stateful workloads, Hosted Skill and agent bindings, Go (GA) and .NET 11 (GA), and new CLI and networking diagnostics.1.4KViews1like0Comments