-
Book Overview & Buying
-
Table Of Contents
A Developer's Guide to Building Resilient Cloud Applications with Azure
By :
In this section, we will discuss the key components and the structure of a function. We will see how we can create triggers and bindings and learn how we can create a function by using Visual Studio Code. We will also use Azure Functions Core Tools and connect it to the Azure service.
A function is composed of two important elements:
function.json, which is generated automatically from annotations in the codeThe following example presents a function.json file. We defined the triggers, bindings, and more configuration settings needed. Every function includes only one trigger. To determine the events to monitor or the workflow of the data in the input and output of a function’s execution, the runtime uses this configuration file.
The name property is used for the bound data in the function. In the following example, the...