How to create Azure Function App in Azure Portal
Tags: microsoftazure
Published: 2019-02-04 10:07:53

---
title: How to create Azure Function App in Azure Portal

published: true
description: This article helps you to learn how to create Azure Function App in Azure Portal.

tags: Microsoft Azure
---
How to create Azure Function App in Azure Portal

This article helps you to learn how to create Azure Function App in Azure Portal.

Azure Function Apps
Azure functions is a solution for executing small lines of code or the functions in the Cloud.  We can also select the our programming languages, as per our desire. We  pay only for the time your code executes, that is Pay per use. Its support a variety of programming languages like C#, F#, Node.js, Python, PHP or Java. Its support continuous Deployment and Integration. Azure functions Applications let us develop Serverless Applications. Please refer official page of Azure Functions for more details




Prerequisites
•	Microsoft Azure Account.
Follow the below steps to create a 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,

https://thepracticaldev.s3.amazonaws.com/i/gu6ar65eqj2wl786vbbz.png
  

Click on Create

 https://thepracticaldev.s3.amazonaws.com/i/faksq2c4f6gcdg6vobgb.png

Step 2

Enter the name you want to assign to the logic, choose the subscription, and resource group where you organize related resources, 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.) and location where your Function app is stored. Then, click on "Create".

https://thepracticaldev.s3.amazonaws.com/i/c8sl3wgllpp1daepew2i.png  


Here is the dashboard. Click on Function App.

https://thepracticaldev.s3.amazonaws.com/i/u9cgyb6hp3klebscho2q.png
  
Step 3

Create Function App
•	Now, click on the Function to create a new Function App.
 
https://thepracticaldev.s3.amazonaws.com/i/czn5d1mj2cgvvdfo5t8w.png

 
•	Next, we have to Choose the Portal.


https://thepracticaldev.s3.amazonaws.com/i/9bn7hz2kjfxzz23bfkgk.png

 
•	Next, we choose Webhook + API.

 
https://thepracticaldev.s3.amazonaws.com/i/w6rutcj2d1ucaev11c8t.png


•	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  "Save" button is used to save the changes done in the code editor

 
https://thepracticaldev.s3.amazonaws.com/i/h4l0osligk9sulsed68o.png


Step 4
Test the Function App

•	To test the app, we have an test functionality which is available in the right corner of the screen
 
https://thepracticaldev.s3.amazonaws.com/i/mw35h47dqonjomo33adi.png


•	Click on Test.

https://thepracticaldev.s3.amazonaws.com/i/dgc2zohckth7hc1sgeb0.png

 
•	We will have the output.
 
https://thepracticaldev.s3.amazonaws.com/i/pe2o2k4yby4jfeh0lwc8.png


Step 5
Run the Function App
•	Let us test the Azure Function app in the browser. Now we save and run the workflow and run it. Now click on the Get Function URL

https://thepracticaldev.s3.amazonaws.com/i/pb5keha2r3qwea333841.png
 
•	Copy the URL 
 
 
https://thepracticaldev.s3.amazonaws.com/i/t0lv60w4m9br5bao6lpj.png


•	Paste on the browser with &name=Alagunila.
 
https://thepracticaldev.s3.amazonaws.com/i/xe5noql10dl4xjc7meiv.png


•	Output
 

https://thepracticaldev.s3.amazonaws.com/i/tt5jh2jtp7f7p4d8qh6m.png


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