This Azure article will discuss the easiest approach to creating a Function App in Azure using Azure Portal.
How to create a Function App in Azure
Before going to discuss the steps, as prerequisites, we need the following things to create the Azure functions.
Prerequisites
- You should have a valid Azure Subscription or an Azure Account. If you don’t have an Azure Account till now, create an Azure Free Account now.
- You should have an Azure Storage Account. If you don’t have a storage account till now, Create a storage account now.
To create a Function App in Azure, Follow the below steps.
1. log in to Azure Portal (https://portal.azure.com/)
2. Click on the + Create a resource, and from the New Window, click on “Compute”. Now, choose “Function App.”

3. On the Create Function App window, on the Basics tag, provide the below details.
- Subscription: Choose your Correct Subscription.
- Resource Group: Choose your Existing Resource Group, and if you don’t have any existing resource group, you can create a new one by clicking the Create new link.
- Function App name: Enter a valid Function App name.
- Publish: Choose the Code option.
- Runtime stack: Choose the .NET Core Option.
- Version: You can choose the 3.1
- Region: Select the Region for the Function App.
Click on the Next: Hosting > button now.

On the Hosting tab, Select the storage account or create a new storage account by clicking on the Create new link.

Keep the default option for all other tabs as it is. Next, click on the Review + Create button. Now, it will validate all the fields and show the Create button. Now click on the Create button to create the Function App.
Now, you can see the deployment is completed successfully.

Now you can see the new Azure function app is created Successfully.

So, we have created our Azure Function App. Now, we need to create the Functions. So click on the Functions link from the left navigation and click the + Add button to create the Functions.

The next is to select the HTTP trigger on the New Function window.

On the New Function Window, you can keep the default name, provide a new name, and then Choose the Authorization level as Function. Finally, click on the Create Function to create the function.

Now, you can see the Function created successfully.

Now you can see the function created successfully, click on the Code + Test link from the left navigation, Now you can able to see the inbuilt code in the right-side editor. You can modify the code as per your requirement and then click on the save button. It will save the changes.

Test Azure Function In Portal
Now, you can test the function to see if it works as expected. Click on the Test/Run button to test the function.
Then, on the Input window, select the POST method; you can change the name parameter value in the Body and click the Run button.