Hello,
Welcome to Microsoft Q&A,
I see your concern about the OS not being able to be changed to Windows from Linux when using the "Web App + Database" option. As per the answer provided in the below question, this option is still not being implemented. https://learn.microsoft.com/en-us/answers/questions/1153250/can-you-create-a-web-app-database-using-windows
In the meantime, a workaround is to use CLI to create a web app + SQL database and connect them. You can use the below CLI commands:
# Create a web app
az webapp create --resource-group myResourceGroup --plan myHostingPlan --name myWebApp
# Create a database
az sql db create --resource-group myResourceGroup --server myServer --name myDatabase --service-objective S0
After creating your web app and database, you can use the az webapp config connection-string set
command to set the connection string for your web app. You can use the below CLI commands:
az webapp config connection-string set --resource-group myResourceGroup --name myWebApp --settings myDatabaseConnectionString="connection string"
You can also achieve the same results in the portal by following this tutorial: Deploy an ASP.NET Core and Azure SQL Database app to Azure App Service
Please Upvote and Accept the answer if it helps!!