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