Triggers and bindings
The concept of triggers and bindings is central to Azure serverless computing. We have used triggers and bindings in the previous chapters by using function templates. In this chapter, we will elaborate on the bindings' structure, and the different options currently available in Azure serverless computing.
Triggers
A trigger is an event used to trigger your function code. Previously, we have defined functions triggered by HTTP requests. A variety of other triggers are available, and we will give examples of the most popular ones in this chapter.
Each function is limited to a single trigger. The function trigger must be defined in a binding in function.json
, or through a trigger attribute in the function's signature in the Visual Studio functions project.
The function trigger must be selected from the supported list (the current list is provided further in the chapter). Defining custom triggers may become available in the future.
Binding
Binding specifies the metadata for...