Introduction
Azure function is a serverless concept of cloud native design that allows a piece of code to be deployed and executed without any need of server infrastructure, web server, or any configurations. Azure functions can be written in multiple language such as c#, Java, JavaScript, TypeScript, and Python.

You can write, debug, and deploy an Azure Function using Azure Portal . However, there are many scenarios when writing functions directly in the production and test environment might be risky and customizing and adding unit testing feasibility in azure portal is more complex, most developers prefer to use visual studio code editors.
Developer easily maintain from same service API solutions project, we have shared one more article with same topic for create azure function using Visual studio 2017, We will cover in this article very detail to create azure function including new feature using Visual studio 2019 and Microsoft released following version of azure function and make sure you are updated visual studio and having latest version Azure function V3.
-
Azure Function V1 – uses the .net Framework 4.7 and trigger can only be create using Windows
-
Azure Function V2(v2x) – runs using .Net Core 2 and trigger wherever possible
-
Azure Function V3(v3x) – Contains JavaScript and .Net Changes
Create new Azure Function Project
In Visual Studio, select New, create a new project page. In that you can select language as c#, platform as Azure and project type as Cloud after that you can easily search the Azure function or Scroll down, select Azure Functions, and then select Next.

You can provide the Project Name and location information and click on next.

Azure Function Triggered
The azure functions are triggered by an event rather than being called directly from an app. you specify the type of event that will trigger the functions in your azure function app. The following screen you can azure function triggers.
Select Azure Function V3(.Net Core), and then select HTTP Trigger for now, leave the storage account dropdown set to storage emulator and authorization level select as “Anonymous” because we are running the app locally and select the create

Here, The following azure function trigger is available.
|
Blob Trigger
|
Blob Trigger function will run when a file is upload or modified in azure Blob Storage
|
|
Event Hub Trigger
|
Event Hub trigger azure function will run when event hub receives the message
|
|
Azure Cosmos DB trigger
|
Azure Cosmos DB trigger will use when document is added or modified in Cosmos DB.
|
|
Http Trigger
|
Http Trigger runs the function when an http request occurs in a web app.
|
|
Queue Trigger
|
Queue trigger occurs when new item added to an azure storage queue.
|
|
Service Bus Queue Trigger
|
Service bus queue trigger will run when new item added in the azure bus queue.
|
|
Service Bus Topic Trigger
|
Service bus topic trigger will run when new message arriving on the azure bus topic.
|
|
Timer Trigger
|
Use this event to run the Azure Function at regular intervals.
|









Aman VermaPosted May 12, 2022, 11:17 AM
Thank you very much for explaining Azure function working in detail. It is really helpful for me.