Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

Webhook trigger

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:

  1. Select your Azure Function from the Function Apps page
  2. Navigate to Integrate
  3. Click on New Trigger ...
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

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content