Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

The function.json file

The function.json file contains function configuration settings. The runtime uses function.json to determine which types of events to listen to, and how to pass data in and out of the function:

    {     "bindings": [        {            "authLevel": "anonymous",            "name": "req",            "type": "httpTrigger",            "direction": "in"        },         {   "name": "$return",            "type": "http",                    "direction": "out"        }                ],      "disabled": false     }

As you can see in the preceding code, the configuration generated by the template we chose contains two bindings, which are an HTTP trigger input binding and an HTTP output binding. You may notice that the authorization type is defined on the input binding. We will elaborate on different types of bindings in Chapter 4, Configuring Endpoints, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content