Introduction
In this article, we are going to discuss Azure Functions and how you can easily create your first Azure function app using Azure Portal. This is the first article of my new series called Azure Functions for Beginners. So let's grab a cup of coffee and start learning.
What are Azure Functions?
Function As A Service (FaaS) is a category of cloud computing services that provides a platform in which you just need to think about writing business logic without thinking about the infrastructure required for its execution. Microsoft Azure provides two types of FaaS i.e. Azure Logic Apps and Azure Functions. So in this article, we are going to discuss Azure functions only.
According to Microsoft Docs.
Azure Functions allows you to run small pieces of code (called "functions") without worrying about application infrastructure. With Azure Functions, the cloud infrastructure provides all the up-to-date servers you need to keep your application running at scale.
Azure functions are event-driven which means that you can run your function code when some event is triggered from either an existing on-premise service or any other Azure service or third-party service. The Azure function can be scaled and you need to pay only for the resources you consume. Azure functions support lots of trigger points such as Http trigger, queue trigger, etc.
Some of the features of Azure functions are.
- Azure Functions has great language support such as C#, Java, JavaScript, Python, and PowerShell.
- Supports lots of triggers such as Service bus triggers, HTTP triggers, Queue triggers, etc.
- We need to pay only for the resources as you consume i.e.Pay-per-use pricing model
- We can install any of the libraries of your choice using NuGet or NPM
- We can easily implement CI/CD using Github, Azure DevOps Service
- We can also add integrated security on HTTP-triggered-based Azure functions using OAuth providers such as Azure Active Directory, Facebook, Google, Twitter, and Microsoft Account.
Below are several templates available for creating Azure functions for performing different operations.
- HTTP trigger
- Blob storage trigger
- Queue storage trigger
- Service Bus Queuetrigger
- Service Bus Topictrigger
- Timer trigger
- Event Gridtrigger
- Event Hubtrigger
- Azure Cosmos DBtrigger
You can get more information about Azure Functions here. So in this article, we are going to create an HTTP trigger-based Azure function using C# from Azure Portal. I will cover all other types of templates in my next article.
Create Azure function using Azure Portal
Prerequisites
Azure account (If you don't have an Azure subscription, create a free trial account)
Step 1. Creating a Function App
While creating a function you must have a function app to host the execution of your functions. You can group multiple functions into one function app which helps with deployment, scaling, ease of development & sharing of resources One function app can have multiple functions.
Log in to the Azure portal.
In the Search bar, search "function app" and then select the Function app.


After that click on the "Add" button to add a new function app. Fill out the basic details.

- Azure has Resource Groups(RG) which acts as a container for your resources. So now we are going to create a function app resource then first we need to create a Resource Group. If you have already created RG then you can use the same here. Under the Resource group click on the Create New button and give a unique RG name. I have selected an existing resource group.
- You need to provide a unique name for your function app.
- Select an appropriate run time for your app. Since we are going to create a function using C# I have used .net core as runtime.
- Select a version and region.
Once we fill out the basic details, then click on the Next "Hosting button".
















ankitPosted Sep 12, 2020, 2:17 PM
Very helpful. Thanks much