Action recommended: Update your Azure Functions apps to use runtime version 4.x

MikeUrnun 9,777 Reputation points Moderator
2022-05-11T03:58:14.117+00:00

Following the retirement of .NET 3.1 on 3 December 2022, Azure Functions runtime versions 2.x and 3.x will go out of support on the same date.

After that date, your applications that are hosted on Functions will continue to run and your existing workloads will not be affected. However, we'll no longer provide patches or customer service for applications running on runtime version 2 or 3. Update your Functions applications to runtime version 4.x.

Upgrading to runtime version 4.x provides these benefits:

  • Security updates to your Functions applications
  • Support for the latest programming languages e.g. .NET 6 and Node 16
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,932 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-05-11T03:59:30.373+00:00

    Recommended action:

    To avoid potential service disruptions or security vulnerabilities, update your Functions applications to runtime version 4.x, before 3 December 2022.

    Help and support:

    If you have questions, get answers from community experts in Microsoft Q&A. If you have a support plan and you need technical help, please create a support request:

    • Under Issue type, select Technical.
    • Under Subscription, select your subscription.
    • Under Service, select My services.
    • Under Service type, select Function App.
    • Under Resource, select your application.
    • Under Summary, type a description of your issue.
    • Under Problem type, select Configuring and Managing Function Apps.
    • Under Problem subtype, select Updating Function App Language Version.

2 additional answers

Sort by: Most helpful
  1. Bevan, John 11 Reputation points
    2022-06-15T08:43:38.703+00:00

    Here's a script to list all function apps under your subscriptions along with their runtime versions; to help folk figure out where upgrades may be required:

       powershell  
       #Requires -Modules @('Az')  
         
        # open the browser for you to authenticate  
       Connect-AzAccount  
         
       # Loop through subscriptions listing all functions under those.  Outputs to console (change `ft -AutoSize` to `export-csv -Path 'c:\temp\azFunctions.csv' -Delimiter ',' -Encoding utf8` or `out-gridview` for CSV or a more interactive output format).  
       Get-AzSubscription | Where-Object{$_.State -eq 'Enabled'} | ForEach-Object{ Set-AzContext -SubscriptionId $_.Id | Out-Null; Get-AzFunctionApp | Select-Object Name, @{N='Version';E={$_.ApplicationSettings.FUNCTIONS_EXTENSION_VERSION}}, ID, OSType, Runtime} | Sort-Object Version | Format-Table -AutoSize  
    
    1 person found this answer helpful.
    0 comments No comments

  2. Sebastian Rodales 6 Reputation points
    2022-06-14T18:48:26.053+00:00

    Hello partners,

    I recive the same communication in reference to my Azure Suscription, the problem is that I don't see the version ~4 to set in my Azure Functions.

    If Microsoft can clarify this be excellent for all of us.

    Thanks in advance.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.