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
2.Click on Create
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
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)
5.Click on Review and Create
6.Click on create and wait for the deployment process to complete
7.Go to Resource and click on Function
8.Click on create
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
Scroll further down to the New function Name.I will leave this at default i.e.HTTP Trigger 1
Click on Create
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.
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.
11.Go to Overview and Click on Get Function URL, it will be displayed
12.Copy the function URL and paste it in your web browser
Add &name=Yemmy and press enter on your keyboard.(You can choose any desired name)
We are there! It produced the "Hello" message with name,
Hello Yemmy
Top comments (1)
Welldone