How do I implement a custom binding for Azure Functions?

Azure Functions come with a fixed set of pre-existing bindings.

At the same time, Azure Functions is based on the WebJobs SDK, which has a story about extensibility . It allows you to create your own binding types, including custom triggers.

Is it possible to run these custom bindings while the Azure function is running? If so, is there a tutorial or documentation on how to do this? If not, are you planning?

In the use case, some of the examples will integrate with non-backlash products (like Kafka) or regular back-end protocols.

+3


source to share


2 answers


Custom input and output bindings are now fully supported. More information can be found on the Azure WebJobs wiki page: https://github.com/Azure/azure-webjobs-sdk/wiki/Creating-custom-input-and-output-bindings

This wiki describes how to define a custom binding extension for the WebJobs SDK. These same extensions can be used unchanged in Azure Functions.



The sample binding that is recorded in the Slack feed can be found here: https://github.com/lindydonna/SlackOutputBinding

+3


source


We have a preview of the Bring Your Own Snap feature. See Extensibility for more details on this feature and WebJobsExtensionSamples for sample and docs. Alternatively, you can track the function here



+1


source







All Articles