My web app only works on .Net6

Kev Martin 0 Reputation points
2025-02-20T08:01:49.5933333+00:00

I am only able to install a version of my web app which uses .Net 6.0. When I try to install my .Net version of the app it does not start.

My resource group is as follows

User's image

Is this a limitation of my resource group? Do I have to upgrade the pricing plan or switch to Windows in order to run .Net8?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,099 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prabhavathi Manchala 80 Reputation points Microsoft External Staff
    2025-03-07T11:54:59.4766667+00:00

    Hi Kev Martin,

    If your app currently works on .NET 6.0, the problem could be due to the App Service plan or the operating system configuration.

    • You can review the pricing plan, as the pricing tier of your App Service plan can influence the available features and runtimes. If you are on a free or lower-tier plan, it may not support the latest .NET versions. Consider upgrading to a higher pricing tier that supports .NET 8.0.

    If you are using a Linux-based App Service, verify whether .NET 8.0 is supported on that OS. If it is not supported, you may need to switch to a Windows-based App Service to run .NET 8.0 applications.

    Make sure that your App Service configuration is correctly set up to use .NET 8.0.

    You can configure the .NET Core version using the Azure CLI with the following command

    az webapp config set --name <app-name> --resource-group <resource-group-name> --linux-fx-version "DOTNETCORE|8.0"
    

    Make sure to replace <app-name> and <resource-group-name> with your actual app and resource group names.

    Kindly refer below document

    https://learn.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore?pivots=platform-linux

    0 comments No comments

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.