Challenges Deploying .NET 10 Apps on Azure App Service (Linux)
Asked by
apples or pears
I've been trying to set up an Azure App Service with .NET 10 on Linux since its release and it's been frustrating. I created a new web app with the settings for Linux and selected the .NET 10 (LTS) stack. However, when I checked the runtime using Kudu Bash, it only listed .NET 8.0.21.
I attempted to set up a self-contained build in Azure Pipelines but encountered a problem where the pipeline doesn't recognize 'net10.0/linux-x64' as a target, despite having the UseDotNet@2 task set to '10.0.x'. While I know I could run it in a container (which I've done with .NET 9), I'm trying to avoid that extra layer for simplicity. I expected the LTS versions to be preinstalled on Microsoft's imagesโam I being unreasonable in that expectation? Has anyone successfully built and deployed a .NET 10 app on Linux via Azure Pipelines?
Answers
I've had similar issues with .NET 10 screwing up my Azure Functions as well. I think Iโm going to hold off for a bit until Microsoft sorts these problems out.
Reply to this answer
While I can't speak for Azure, I have several apps running on Linux with .NET 10 on AWS. It's been smoother for me since I compile with AoT and run under systemd, avoiding ASP.NET entirely, so it's a different setup.
Reply to this answer
I was also looking to compare memory usage between .NET 10 on Linux and Windows, but nothing seems functional at the moment. It's baffling how they can announce GA and yet have so many issues.
Reply to this answer
It's pretty common for Azure to have delays in rolling out the latest stack updates, even for their own products. This is especially true around the holiday season. It might be a good idea to temper your expectations. As a workaround, you can deploy your apps using custom container images based on the official .NET 10 images, which you can control yourself. This works well for Azure App Service and Azure DevOps too.
Reply to this answer
Honestly, at this point, I wouldnโt even bother with Azure App Services anymore. They seem to have a lot of issues lately.
Reply to this answer
If you're still struggling, consider just using your own Docker container. This can bypass a lot of the issues youโre hitting with the standard Azure setup.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions