Can I deploy out of support versions like .Net Core 2.0,3.1 and 2.1 without upgrading in Azure App Service

Sadhana Shree 0 Reputation points
2023-05-04T13:12:42.74+00:00

Can I deploy "out of support" versions like .NET Core 2.0, 3.1 and 2.1 without upgrading to Azure App Service. I am trying to move my components from on Prem VM to Azure App service currently. I have tested this by deploying these older components to Azure app service by

creating web app using runtime stack: .NET 6 and Operating System windows 

It looks like internally it picks the right runtime and executes successfully. For instance, .NET core 2.0 component runs on .NET core 2.0 runtime etc. Is there any issue with this? Can I keep this as it as until I upgrade to LTS version sometime soon ? Is it a mandate to upgrade to LTS version before deploying on Azure app service?

Thanks

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
9,007 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 19,381 Reputation points Moderator
    2023-07-13T23:03:21.44+00:00

    Hi @Sadhana Shree thanks for your patience.

    While it is possible to deploy "out of support" versions of .NET Core, such as 2.0, 3.1, and 2.1, to Azure App Service, it is not recommended. Microsoft recommends that you use the latest LTS (Long-Term Support) version of .NET Core for your applications to ensure that you receive security updates and bug fixes.

    That being said, if you need to deploy an older version of .NET Core to Azure App Service, you can do so by creating a web app using the runtime stack that matches the version of .NET Core you want to use. As you mentioned, it looks like internally it picks the right runtime and executes successfully. However, keep in mind that using an out-of-support version of .NET Core may expose your application to security vulnerabilities and other issues that may not be addressed by Microsoft.

    It is not a mandate to upgrade to the latest LTS version before deploying on Azure App Service, but it is highly recommended. If you cannot upgrade to the latest LTS version immediately, you should at least consider upgrading to a supported version of .NET Core that is not yet out of support.

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.