Developing, Testing, and Deploying Azure Functions
Each function is made up of two main parts: your code and some configuration. A configuration file is created automatically for compiled languages based on annotations or attributes in the code; for scripting languages, the configuration file needs to be created – this is the function.json
file we previously mentioned.
The files required and created depend on the language being used. The folder structure may change depending on the language as well. Our first examples will be using quite minimal C# Script projects with no additional extensions, which will have a folder structure as follows:
Figure 4.1: An example folder structure of a function app
Within the wwwroot folder, you will see a host.json
file, which contains configuration options for all the functions within the function app. A link to further information about the host.json
file can be found in the Further reading section of this...