How to create an Azure Function App with a Webhook to provide a "Hello" message with your name
Tags: azurefunctionapp, webhook, httptrigger, eventdriven
Published: 2023-04-28 20:28:36

Azure Function App is an event-driven architecture, a serverless computing solution that allows your codes to run only when there is an event. This helps to reduce cost of operations on managing your business.
With the use of a function app, you can organise functions into logical units for simpler resource management, deployment, scaling and sharing.

To create an Azure function app with a Webhook to provide an "Hello message with your name, follow these steps:
1.Log in to Azure Portal and search for Function App with the Search box

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

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



2.Click on Create

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

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



3.Complete the credentials under the Project Details:
Subscription: Select the applicable subscription. Here, I will use Azure Pass Sponsorship
Resource Group: You can select any of your existing Resource group you wish to use or simply create a new one and name it. I have an existing one, AprilWorkload
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gzb6q85tzixb8inzj22.png)



4.Complete the Instance details as follows:
Function App Name: I will name it Yemifunction (You can use any name you desired)and complete the rest as follows
Do you want to deploy code or container image?: Code
Runtime Stack: .NET
Version: 6
Region: East US
Operating System: Windows
Hosting options and Plans: Consumption(Services)

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


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


5.Click on Review and Create

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




6.Click on create and wait for the deployment process to complete

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

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



7.Go to Resource and click on Function

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

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

8.Click on create

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


9.Scroll down to select a Template to choose a Trigger. Here I will choose HTTP Trigger which is a trigger that can be tested in a web browser

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98qz1d118y0gykrp0ws7.png)
Scroll further down to the New function Name.I will leave this at default i.e.HTTP Trigger 1

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


Click on Create

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


10.Click on "Code + Test" and scroll down on the window that comes up to know what the Trigger required to add to the function URL when copied to the browser.

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


Go to **Line 20**,it indicates that it is Name that is required to be added to the Function URL when it is copied to the browser.

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


11.Go to Overview and Click on Get Function URL, it will be displayed

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


12.Copy the function URL and paste it in your web browser

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


Add &name=Yemmy and press enter on your keyboard.(You can choose any desired name)

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


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


We are there! It produced the "Hello" message with name, 
**Hello Yemmy**