DEV Community

Cover image for Implementing an Azure Function App
Adisa Oluwaseyi
Adisa Oluwaseyi

Posted on

Implementing an Azure Function App

What is Azure Function App

The Azure Fuctions service enables you to host a single method or function that runs in response to an event such as queued message, HTTP request, or time event.

You can use any of several programming languages such as Python, Java, Javascript, C# and Powershell, to create functions.

Like many other services, the Azure Function service scales automatically enabling your function to scale to meet changes in demand without any interaction or configuration by your developers. Perhaps best of all you pay only for the time and resources needed while a function is running.

Generally an Azure Function is stateless meaning it doesn't store its state from execution to execution, instead it executes the same every time it responds to an event.

In this guide we will be creating a function app with a Webhook to provide a Hello message with your name

Create A Function App

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:
From the search box, enter function app and select function app under services.

Image description

Step 3:
On the function app page click create

Image description

Step 4:
On the basic tab of the function app, follow the following steps

Resource Group
Create a new resource group by clicking create new option shown below the input bar, you can use any name of your choice.

Function App name
Enter any name of your choice

Publish
Select code

Runtime stack
Select .NET

Leave the rest of the settings as default.

Image description

Step 5:
Click Review+Create button as seen in the image below

Image description

Step 6:
Click Create button when validation passes to begin creating your new function app instance.

Image description

Step 7:
When deployment is completed, Click Go to resource

Image description

Create a HTTP triggered event function and test

Step 1:
Click functions on the left tab then Click Create

Image description

Step 2:
Select HTTP trigger.

Image description

Step 3:
After Selecting HTTP trigger, scroll down, in the New function place holder input any name of your choice, leave Authorization level as default.

Image description

Step 4:
Click Get Function Url and copy the Url

Image description

Step 5:
Goto your browser tab and paste the Url you copied in step 4, then at the end of the Url look for a double equal to sign (==), then at the end of the equal to signs put &name=any name of your choice and hit enter, in this example i will be using Seyi so i will put &name=Seyi.

Image description

Step 6:
Viola that is all!!!

Image description

Top comments (1)

Collapse
 
yemmyoye profile image
Yemisi Oyesainu

Good job