Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Azure Functions

You're reading from   Learning Azure Functions Build scalable cloud systems with serverless architecture

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787122932
Length 240 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Mitesh Soni Mitesh Soni
Author Profile Icon Mitesh Soni
Mitesh Soni
Manisha Yadav Manisha Yadav
Author Profile Icon Manisha Yadav
Manisha Yadav
Arrow right icon
View More author details
Toc

Using a Webhook with an Azure Function


We have already seen how to trigger an Azure Function with as Webhook. We can also trigger a Webhook with our Azure Function. We can bind the Webhook as an input to our Azure Function.

To bind a Webhook as an input to our Azure Function, create an HTTP trigger in the Azure Function:

  1. Click on + sign to add the Azure Function and select HttpTrigger - JavaScript, as shown in the following screenshot:
  1. Provide a name for the function and click on the Create button.
  2. Once the HttpTrigger is created, click on the Integrate button, as shown in the following screenshot:
  1. Now, check the options and change the Mode to Webhook. There will be only two options available: the first is Standard and the second is Webhook. By default, the Standard mode is selected.

 

  1. Once we change the Mode to Webhook, we will see another option, Webhook type.
  2. Three types of Webhook are available in the Azure Function:
    • *GitHub
    • *Generic JSON
    • *Slack
  1. Depending on our needs, we can select any of these...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image