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
Prerequisites
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".
Click on "Create".
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".
Here is the dashboard. Click on the newly created "Function App".
Step 3 - Create Function App
Now, click "Functions" to create a new function app.
Next, we have to choose the "In-portal" option.
Select Webhook + API.
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.
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.
Click on "Test".
We will get the output.
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.
Copy the URL
Paste in the browser and add the following text before hitting Enter.
&name=Alagunila.
Output
Summary
I hope you understood how to create an Azure Function App on the portal. Stay tuned for more Azure Function App articles.