Receive events from Connector Namespace managed connectors, including Office 365 Outlook, SharePoint, and Teams.
| Delivery mode | How it works | Local development |
|---|---|---|
| Poll | The Functions host receives queued events and acknowledges successful invocations. | Start here: no public callback URL or dev tunnel is needed. |
| Webhook | Connector Namespace sends events to the Function App's callback endpoint. | Requires a public, authenticated dev tunnel for service callbacks. |
Poll is presented first for its simpler local setup. Webhook remains the binding default when DeliveryMode is omitted.
For .NET isolated:
dotnet add package Microsoft.Azure.Functions.Worker.Extensions.ConnectorSDK model packages are optional; a trigger can bind to string or JSON without them. See payload types and SDKs.
For Node.js or Python, see non-.NET worker setup. The repository test samples build the current checkout; published packages and bundles can lag changes in this checkout.
Both modes require an existing, authorized Connector Namespace connection and a trigger configuration for the connector operation. The extension does not register trigger configurations automatically. Use the connection setup skill to create and authorize a connection.
- Register an enabled Trigger Config with
deliveryMode: Pollusing the Poll registration skill. - Grant the namespace identity and the Function/developer identity their connection-level access policies.
- Configure the binding and connection settings below.
For a .NET isolated function, the minimum Poll parameter configuration is:
[ConnectorTrigger(
DeliveryMode = ConnectorTriggerDeliveryMode.Poll,
Connection = "ConnectorNamespace",
TriggerConfigName = "%OnNewEmailTriggerConfigName%")]
string payloadConnection is an app-setting prefix, not the name of the Office 365 or other connection resource in Azure.
For local .NET isolated development, configure local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"ConnectorNamespace__pollingEndpoint": "https://<connector-namespace-host>",
"OnNewEmailTriggerConfigName": "<trigger-config-name>"
}
}Derive pollingEndpoint from the Trigger Config's service-generated pollingEndpoints.receiveUri:
| Receive URI | ConnectorNamespace__pollingEndpoint |
|---|---|
https://<connector-namespace-host>/api/triggerconfigs/<name>/receive |
https://<connector-namespace-host> |
https://<host>/api/connectorGateways/<id>/triggerconfigs/<name>/receive |
https://<host>/api/connectorGateways/<id> |
Supply the trigger name separately. Do not configure a complete Receive URL or a standalone /api base.
Locally, omit the credential selector to use your developer identity. For a deployed app using managed identity, set ConnectorNamespace__credential=managedidentity. Never commit real endpoints or credentials.
Start Azurite, then start the Function host with Core Tools. No inbound port forwarding is needed. Follow the Poll samples for complete build and run commands.
Poll delivery is at least once: failed invocations are not acknowledged and may be redelivered. Use ConnectorEvent<T>.MessageId for application-level deduplication.
For a .NET isolated function, no Connector-specific attribute parameters are required:
[ConnectorTrigger]
string payloadRegister this callback on the Connector Namespace Trigger Config:
https://<function-app-host>/runtime/webhooks/connector?functionName=<FunctionName>
functionName must match the function name. Deployed callbacks require the automatically generated connector_extension system key. Configure it separately in notificationDetails.authentication as a QueryString value named code, rather than embedding it in the stored callback URL.
Webhook-only functions do not need pollingEndpoint, Connection, or TriggerConfigName. For local service callbacks, use a public dev tunnel and start Core Tools with func start --enableAuth. See the Webhook registration skill and Webhook samples.
| Configuration | Poll | Webhook |
|---|---|---|
DeliveryMode |
Required: Poll |
Optional: defaults to Webhook |
Connection |
Required: app-setting prefix | Not needed |
TriggerConfigName |
Required: literal or %SettingName% |
Not needed |
<Connection>__pollingEndpoint |
Required | Not needed |
| Callback URL and system-key authentication | Not used | Required for deployed/service callbacks |
| Batching, concurrency, and scaling settings | Optional | Poll-only tuning does not apply |
No Connector-specific host.json settings are mandatory. The minimal .NET isolated file is {"version":"2.0"}. Set tuning values in the binding or use host defaults; you do not need to duplicate them.
See the configuration reference for every binding option, defaults, identity settings, and mode-specific requirements.
- Trigger configuration reference: required and optional settings for both delivery modes.
- Batching, concurrency, and scaling: how the independent Poll controls interact.
- Operations to function signatures: connector payloads across .NET, Python, and TypeScript.
- Poll design and release-validation status: transport, linked outputs, retries, shutdown, and remaining validation.
- Learn documentation and published samples.
- Connector portal and Connector Namespace CLI reference.
| Skill | Purpose |
|---|---|
| connection-setup | Create and authorize a connector connection and configure access policies. |
| poll-trigger-registration | Register host-pull Poll delivery and derive Function settings. |
| webhook-trigger-registration | Register callback delivery and system-key authentication. |
These samples reference the repository-local extension for development:
- Poll delivery: .NET isolated, TypeScript, and Python.
- Webhook delivery: .NET isolated, Node.js, and Python.
Requires .NET SDK 10.0.100 or later; see global.json.
dotnet build
dotnet testNuGet uses the public Azure Artifacts feed configured in NuGet.config. For Node.js sample feed setup and authentication, see the sample build prerequisites. Keep credentials in user-level or CI configuration, never in checked-in files.
- Webhook auto-registration: register trigger configurations on function deployment.
- Distributed tracing: add DiagnosticScope for Application Insights integration.
The Azure Functions Connector Extension collects telemetry data, including exceptions, warnings, and informational logs generated by the extension while running in the managed Azure Functions environment, and sends this telemetry to Microsoft. Microsoft uses this telemetry to diagnose issues, improve reliability, and enhance the product experience. This telemetry collection cannot be disabled.
The telemetry collected by the extension does not include personal information, customer application payload contents, or application logs, exceptions, failures, warnings, or informational messages generated by customer Function App code.
You must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the Azure Functions Connector Extension extension operates as your consent to these practices.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.