|
|
|
|
|
What is Azure functions template
|
|
While creating Azure Functions with Visual Studio and visual studio code, IDE provides different project templates which are used to create function triggers which can be deployed to Azure Function App. Below are the different function templates available in Visual Studio - Blob Trigger - Creates a function trigger when a blob is added to a container
- Cosmos DB Trigger - Creates a function trigger when a document change in document collection
- Event Grid Trigger - Creates a function trigger when an event grid receives a new event
- Event Hub Trigger - Creates a function trigger when an event hub receive a new event
- HTTP Trigger - Creates function triggered by HTTP Request
- IoT Hub Trigger - Creates a function trigger when an IoT hub receives a new event on the event hub endpoint
- Queue Trigger - Creates a function trigger when a message is added to specified azure storage
- Service Bus Queue Trigger - Creates a function trigger when a message is added to specified service bus queue
- Service Bus Topic Trigger - Creates a function trigger when a message is added to specified service bus topic
- Timer Trigger - Creates a function trigger on a specified schedule
|
|
|
|
|
|
What is Azure Functions Runtime?
|
|
Azure Function Runtime is a specific version runtime where your Function App runs on top of it. Currently Azure function supports 3 versions of runtime host - 1.x - Supports .NET Framework
- 2.x - Supports .NET Core2.1
- 3.x - supports .NET Core3.1
All 3 versions are supported for your production workloads. By default, Function Apps are created in 3.x version runtime. If you are using C# language to develop Azure functions and visual studio gives below options as function runtime while creating Function App - Azure Functions V3(.NET Core)
- Azure Functions V2(.NET Core)
- Azure Functions V1(.NET Framework)
In order to find the function version number in your project, refer .csproj file. 1.x version setting in .csproj file<TargetFramework>net461</TargetFramework> <AzureFunctionsVersion>v1</AzureFunctionsVersion>
2.x version setting in .csproj file<TargetFramework>netcoreapp2.1</TargetFramework> <AzureFunctionsVersion>v2</AzureFunctionsVersion>
3.x version setting in .csproj file<TargetFramework>netcoreapp2.1</TargetFramework> <AzureFunctionsVersion>v2</AzureFunctionsVersion>
We are just referring C# as language, for other languages refer Azure Functions documentation.
|
|
|
|