.NET Core 2.1 Application Insights auto-instrumentation support removal from App Services

Published Sep 24 2021 09:00 AM 2,558 Views
Microsoft

Application Insights support for .NET Core 2.1 on App Service will be retired in an upcoming upgrade to App Service. To continue using Application Insights for your .NET Core apps, update to .NET Core 3.1, or .NET 5. .NET Core 2.1 has reach End-of-Support on August 21, 2021.

Upgrade to a newer version of .NET Core

You can update your .NET Core 2.1 applications to a newer version of .NET Core by updating the <TargetFramework> of your project file. For detailed instructions, please see this article.

Mitigations

The following mitigations should only be used as an interim. We suggest that you upgrade to a supported .NET version in the future and do not rely on these in the long-term.

  • If you cannot upgrade your .NET Core application to a newer version, you can include the Application Insights SDK directly in your application. Once you have updated your application to include the SDK, re-deploy your application to App Service.
  • Set the app setting, ApplicationInsightsAgent_EXTENSION_VERSION to a value of 2.8.37. This will trigger App Service to use the old Application Insights extension.

.NET Core and .NET 5 Support Policy

 

-App Insights and App Services product groups

 

 

Co-Authors
Version history
Last update:
‎Sep 24 2021 09:00 AM
Updated by: