DEV Community

Cover image for How to create an Azure Function App with a Webhook to provide a "Hello" message with your name
Yemisi Oyesainu
Yemisi Oyesainu

Posted on

How to create an Azure Function App with a Webhook to provide a "Hello" message with your name

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

Image description

2.Click on Create

Image description

Image description

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

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

Image description

5.Click on Review and Create

Image description

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

Image description

Image description

7.Go to Resource and click on Function

Image description

Image description

8.Click on create

Image description

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
Scroll further down to the New function Name.I will leave this at default i.e.HTTP Trigger 1

Image description

Click on Create

Image description

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

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

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

Image description

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

Image description

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

Image description

Image description

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

Top comments (1)

Collapse
 
rdgmh profile image
Raphael Gab-Momoh

Welldone