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:
- Click on
+sign to add the Azure Function and selectHttpTrigger - JavaScript, as shown in the following screenshot:

- Provide a name for the function and click on the
Createbutton. - Once the
HttpTriggeris created, click on theIntegratebutton, as shown in the following screenshot:

- Now, check the options and change the
ModetoWebhook. There will be only two options available: the first isStandardand the second isWebhook. By default, theStandardmode is selected.
- Once we change the
ModetoWebhook, we will see another option,Webhook type. - Three types of Webhook are available in the Azure Function:
*GitHub*Generic JSON*Slack
- Depending on our needs, we can select any of these...