Open LeventHAN opened 8 months ago
Hi @LeventHAN ,
I encountered the same error message in a workshop yesterday. The reason is the fact that the labs mention NET 7 runtime which is no longer supported as it has reached end of life. The .NET 7 runtime is no longer available for Azure Web Apps. Even though it is still an option in the VS Code dropdown options, if you try creating the Web App in the Azure Portal you will see that only .NET 6 and .NET 8 runtimes are available.
As a solution, we selected the .NET 8 runtime but in order for you to be able to successfully publish the apps, you will need to upgrade the sample code to .NET 8. I've created a Pull request to update the documentation and sample code here: https://github.com/MicrosoftLearning/APL-2002-develop-aspnet-core-consumes-api/pull/22
Module: Develop an ASP.NET Core web app that consumes an API - Interact with an ASP.NET Core minimal API
Lab/Demo: Publish the API to Azure App Service
Task: Task 2: Create a new web app
Step: After 10 (latest) [Creation of service]
Description of issue
Repro steps: No idea as I didn't do anything special and used this account only for training and learning paths. Followed every step of the process as described.
Please let me know if this has to do with me or with the automatica generated resource group :)