Create a new folder where to place the application
Open VSCode with the command:
code .
Create a new .NET 8 WebAPI with this command:
dotnet new webapi --framework net8.0
Run the application to verify
dotnet run
In the left menu select Azure extension
Set the .NET 8 Web API name
Select the .NET 8 framework
Select the operating system linux
Select the location East US
Create a new Service Plan
Enter the new Service Plan name
Select the App Service plan Basic (B1)
Skip creating a new Application Insights resource
Create a new deployment
Place the Web API in a folder