Functions_Extension_Version

In this comprehensive article, I’ll walk you through everything you need to know about Functions_Extension_Version – from basic concepts to advanced implementation strategies.

Functions_Extension_Version

What is FUNCTIONS_EXTENSION_VERSION?

Functions_Extension_Version is an application setting that determines which version of the Azure Functions runtime your function app uses. This setting is crucial because it:

  • Controls which language features are available
  • Determines API compatibility
  • Affects performance characteristics
  • Influences the security posture

This setting lets you target specific runtime versions for each function app in your environment.

By using this settings, you can target a particular version for your Azure Function App. You can also use it to update the version of your Azure Function to a previous or current version.

Available Runtime Versions

Below are the major Azure Functions runtime versions

VersionStatusKey FeaturesSupport Status
~4CurrentEnhanced performance, expanded language supportFully supported
~3Legacy.NET Core 3.1 supportEnd of extended support
~2Legacy.NET Core 2.x supportEnd of extended support
~1Legacy.NET Framework supportEnd of extended support

How to Check Your Current Runtime Version

Before making changes, let’s verify which runtime version our function app is using

Approach-1 Using Azure Portal

  1. Navigate to your function app in the Azure portal
  2. Select “Configuration” from the left menu
  3. Look for the FUNCTIONS_EXTENSION_VERSION Setting under Application Settings as shown in the screenshot below.
functions_extension_version azure function

Approach-2 Using Azure CLI

We can execute the following Azure CLI command for the same purpose

az functionapp config appsettings list --name <FUNCTION_APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --query "[?name=='FUNCTIONS_EXTENSION_VERSION']"

Setting the Runtime Version

There are several methods to set or update your Azure FUNCTIONS_EXTENSION_VERSION. Let’s explore each approach

Approach 1: Using Azure Portal

  1. Log in to the Azure Portal (https://portal.azure.com/)
  2. Navigate to the Azure Function App, click on the configuration from the left navigation, and then click FUNCTIONS_EXTENSION_VERSION.
FUNCTIONS_EXTENSION_VERSION

3. Once you click on that, you can change the FUNCTIONS_EXTENSION_VERSION value and then click on the OK button as shown below