Search code examples
.netazure-functions

Azure Function App - How to upgrade .NET runtime


I currently have an Azure Function app created as a .NET 7 LTS isolated runtime stack. I'm running Consumption (Serverless) in Linux.

I've upgraded my codebase to .NET 8. How can I update my existing Function App to .NET 8 before deploying my new relase?

Existing Azure Function app


Solution

  • I was able to upgrade my Function App using Azure CLI

    az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "DOTNET-ISOLATED|8.0
    

    The General settings page was not available. I don't if that because it's Consumption (Serverless) plan or because it is running in Linux.