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"
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.