while creating web app in runtime stack cant see .net6 version

md zunair 0 Reputation points
2025-07-03T20:15:21.42+00:00

While creating web app i cant able to see runtime stack .net 6

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

1 answer

Sort by: Most helpful
  1. Bhargavi Naragani 6,535 Reputation points Microsoft External Staff Moderator
    2025-07-08T07:29:14.2733333+00:00

    Hi md zunair,

    .NET 6 reached end-of-support in May 2024, so the Azure Portal UI no longer shows it when creating new Web Apps. The Portal hides deprecated runtime versions, but they remain available via Azure CLI, ARM templates, or Bicep and the runtime list depends on your selected OS, publish type, and region.

    Use Azure CLI

    Run one of the following commands to explicitly use .NET 6:

    For Windows App Service:

    az webapp create \
      --resource-group <YourResourceGroup> \
      --plan <YourServicePlan> \
      --name <YourWebAppName> \
      --runtime "DOTNET|6.0"
    

    For Linux App Service:

    az webapp create \
      --resource-group <YourResourceGroup> \
      --plan <YourServicePlan> \
      --name <YourWebAppName> \
      --runtime "DOTNETCORE|6.0"
    

    az webapp create

    Deploy with ARM/Bicep

    Specify the runtime version directly in your template:

    siteConfig: {
      linuxFxVersion: 'DOTNETCORE|6.0'  // If on Linux
      windowsFxVersion: 'DOTNET|6.0'    // If on Windows
    }
    

    Check Configure ASP.NET Core apps for App Service: Supported .NET Core on App Service
    For ASP.NET (non-core, Windows): Configure ASP.NET apps on App Service

    Upgrade to .NET 8 (LTS)

    If you're starting a new project, Microsoft recommends using .NET 8, which is the current Long-Term Support version and fully supported by the Azure Portal https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core

    Hope this helps, if you have any further concerns or queries, please feel free to reach out to us.

    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.