How To Create Azure Function Apps In The Azure Portal

Azure Function Apps

Azure Functions is a solution for executing small lines of code or functions in the cloud. We can also select the programming languages we want to use. We pay only for the time our code executes; that is, we pay per usage. It supports a variety of programming languages, like C#, F#, Node.js, Python, PHP or Java. It supports continuous deployment and integration. Azure Functions applications let us develop serverless applications. Please refer to the official page of Azure Functions for more details 

How To Create Azure Function App In Azure Portal
 

Prerequisites

  • Microsoft Azure Account.

Follow the below steps to create an Azure Function.

Step 1

Login to https://portal.azure.com/

In the dashboard, choose to create a resource and click on "Compute". Now, choose "Function App".

How To Create Azure Function App In Azure Portal

Click on "Create".

How To Create Azure Function App In Azure Portal

Step 2

Enter the name you want to assign to the logic, choose the subscription and resource group where you organize related resources and your hosting plan. This plan is based on the executions and resource consumption. It also has a free monthly limit of 1 million requests and 4,00,000 GB-s (Gigabyte seconds) of resource consumption per month. Finally, choose the location where your Function App is stored. Then, click "Create".

How To Create Azure Function App In Azure Portal

Here is the dashboard. Click on the newly created "Function App".

How To Create Azure Function App In Azure Portal

Step 3 - Create Function App

Now, click "Functions" to create a new function app.
 
How To Create Azure Function App In Azure Portal
 
Next, we have to choose the "In-portal" option.
How To Create Azure Function App In Azure Portal
 
Select Webhook + API.
 
How To Create Azure Function App In Azure Portal
 
Next, we have an editor which preloads the run.csx file where you can find a predefined method to be fired when the API is called. The "Run" button is used to build and execute the code and the "Save" button is used to save the changes done in the code editor.
 
How To Create Azure Function App In Azure Portal

Step 4 - Test the Function App

To test the app, we have a test functionality which is available in the right side corner of the screen.
 
How To Create Azure Function App In Azure Portal
 
Click on "Test".
 
How To Create Azure Function App In Azure Portal
 
We will get the output.
 
How To Create Azure Function App In Azure Portal

Step 5 - Run the Function App

Let us test the Azure Functions App in the browser. Now, save the workflow and run it. Click on the "Get Function URL" button.
 
How To Create Azure Function App In Azure Portal
 
Copy the URL
 
How To Create Azure Function App In Azure Portal
 
Paste in the browser and add the following text before hitting Enter.
 
&name=Alagunila.
 
How To Create Azure Function App In Azure Portal
 
Output
 
How To Create Azure Function App In Azure Portal

Summary

I hope you understood how to create an Azure Function App on the portal. Stay tuned for more Azure Function App articles.


Similar Articles