How to create a Function App with a Webhook, add HTTP triggered function(a hello message with your name) and test it.
Published: 2023-05-10 09:47:14


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xxvisqvp5zmzvathmwex.png)

**A function app** lets you group functions as a logical unit for easier management, deployment, scaling, and sharing of resources.

**A webhook** allows an external service to start a particular runbook in Azure Automation through a single HTTP request. The webhook sends the information about the event to the specified URL, which can then trigger a specific action in the receiving application. For example, a webhook might be used to send a notification to a chat application when a user subscribes to a particular channel.

**The HTTP trigger** lets you invoke a function with an HTTP request. You can use an HTTP trigger to build serverless APIs and respond to webhooks.

Step 1:

Visit portal.azure.com, login or sign up if you don't have an account, you can get a free account at azure.microsoft.com/en-us/free/

Step 2:
Search for function app and click on create

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hu2fir6e1ljdd1xodnad.png)

Step 3:

1. Subscription: Choose the subscription where you wish to create the resource.
2. Resource group: Choose the resource group where you wish to create the resource. If you wish to create a new group click on create a new option.
3. Function App name: Enter a preferred unique name.
4. Do you want to deploy code or container image?: Code
5. Runtime stack: .NET
6. Region: Select the location where you wish to create the account.
Leave the rest on default and click on "Review+Create"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d05503jz0j0vh739qx3j.png)

Step 4:
Create

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/miqaqx6925ig5t08myx3.png)

Step 5:
Your function app has been successfully deployed! Click on "Go to Resource"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/alayx9yt28vqvm79nvun.png)

Step 6:
To create an HTTP trigger function, click on "Functions" and then click on "create"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p5v658inca51px3vqgef.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6tfs7i3jo81kliegu3o.png)

Step 7:
Select "HTTP trigger", give it a new funcion name and click on "create"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5i8qfpue1ftsp3vej5ax.png)

Step 8:
Your HTTP trigger function hs been successfully created!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h7m6i92im4kn4rk7orky.png)

Step 9:
When something is triggered, that's when the code runs so to test the trigger function that was created, click on "get function Url" and copy to clipboard.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h217j4bfq2xtehqvqm2w.png)

Step 10:
Paste the copied Url in a new tab, before pressing enter, add _&name=Tolu_ and press enter.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hik4bata9smauxdcbtzu.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a5zbzx9cigg5j6yfs4kp.png)

Thank you for reading...