.Net runtime version for function app

Salil Singh 20 Reputation points
2024-04-04T11:31:11.24+00:00

Hi Team,

I have a requirement where I need to find the .net runtime version used in my function apps. Below are imp points -

  1. Target framework in csproj file of function app is net6.0.
  2. On Azure portal,. under app settings of function app, value of FUNCTIONS_WORKER_RUNTIME is dotnet.
  3. On Azure portal, under app settings of function app, value of FUNCTIONS_EXTENSION_VERSION is ~4.
  4. On Azure portal. under Function app -> Overview -> Properties -> Runtime stack is .NET - v4.0

Could you please mention what .net runtime version is being used in function app?

Thanks,

Salil

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,352 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,396 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 12,940 Reputation points MVP
    2024-04-04T11:43:44.26+00:00
    1. Target framework in csproj file: The csproj file specifies the target framework as net6.0, indicating that the function app is targeting .NET 6.0.
    2. FUNCTIONS_WORKER_RUNTIME: The value of FUNCTIONS_WORKER_RUNTIME environment variable is set to dotnet, which signifies that the function app is using the .NET runtime.
    3. FUNCTIONS_EXTENSION_VERSION: The value of FUNCTIONS_EXTENSION_VERSION environment variable is ~4, which corresponds to version 4 of the Azure Functions runtime. This version is compatible with .NET 6.0.
    4. Function app overview properties: The "Runtime stack" property in the Function app overview indicates that the runtime stack is ".NET - v4.0". This might seem confusing, but in the context of Azure Functions, it refers to the version of the Azure Functions runtime stack, not the .NET runtime version. The Azure Functions runtime version 4.0 is compatible with .NET 6.0.

    Considering all these points together, the function app is using the .NET 6.0 runtime.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin