July 2018
Intermediate to advanced
350 pages
8h 47m
English
Let's look at a sample function.json binding file for the webhook trigger for Azure Functions. In the following bindings file, the type of trigger is set as httpTrigger. However, to denote that this trigger is a special type of HTTP trigger, the webHookType attribute is also added to the trigger definition in the bindings file. In the following example, the webHookType is set to slack:
{ "bindings": [ { "type": "httpTrigger", "direction": "in", "webHookType": "slack", "name": "req" }, { "type": "http", "direction": "out", "name": "res" } ], "disabled": false }
Let's look at how to create a WebHook Trigger using Azure Portal: