You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/remove-application-insights.md
+14-42Lines changed: 14 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,23 +16,27 @@ To remove Application Insights, you'll need to remove the NuGet packages and ref
16
16
17
17
# [.NET](#tab/net)
18
18
19
-
1. To open the Package Management Console, in the top menu select Tools > NuGet Package Manager > Package ManagerConsole.
19
+
1. To open the Package Management Console, in the top menu select Tools > NuGet Package Manager > Package ManagerConsole.
20
20
21
21

22
+
23
+
> [!NOTE]
24
+
> If trace collection is enabled you need to first uninstall Microsoft.ApplicationInsights.TraceListener. Enter `Uninstall-package Microsoft.ApplicationInsights.TraceListener` then follow the steps below to remove Microsoft.ApplicationInsights.Web
25
+
22
26
1. Enter the following command: `Uninstall-Package Microsoft.ApplicationInsights.Web -RemoveDependencies`
23
27
24
-
After entering the command, the Application Insights package and all of its dependencies will beuninstalled from theproject.
28
+
After entering the command, the Application Insights package and all of its dependencies will beuninstalled from theproject.
25
29
26
30

27
31
28
32
# [.NET Core](#tab/netcore)
29
33
30
-
1. To open the Package Management Console, in the top menu select Tools > NuGet Package Manager > Package ManagerConsole.
34
+
1. To open the Package Management Console, in the top menu select Tools > NuGet Package Manager > Package ManagerConsole.
31
35
32
36

33
37
34
38
1. Enter the following command: ` Uninstall-Package Microsoft.ApplicationInsights.AspNetCore -RemoveDependencies`
35
-
After entering the command, the Application Insights package and all of its dependencies will be uninstalled from theproject
39
+
After entering the command, the Application Insights package and all of its dependencies will be uninstalled from theproject.
36
40
37
41
---
38
42
@@ -41,11 +45,14 @@ To remove Application Insights, you'll need to remove the NuGet packages and ref
41
45
# [.NET](#tab/net)
42
46
43
47
1. In the *Solution Explore* on the right, right click on **Solution** and select **Manage NuGet Packages for Solution**
44
-
You'll then see a screen that allows you to edit all the NuGet packages that are part of theproject.
48
+
You'll then see a screen that allows you to edit all the NuGet packages that are part of theproject.
45
49
46
50

51
+
52
+
> [!NOTE]
53
+
> If trace collection is enabled you need to first uninstall Microsoft.ApplicationInsights.TraceListener without remove dependency selected and then follow the steps below to uninstall Microsoft.ApplicationInsights.Web with remove dependency selected.
47
54
48
-
1. Click on the "Microsoft.ApplicationInsights.Web" package. On the right, check the checkbox next to *Project* to select allprojects.
55
+
1. Click on the "Microsoft.ApplicationInsights.Web" package. On the right, check the checkbox next to *Project* to select allprojects.
49
56
50
57
1. To remove all dependencies when uninstalling, select the **Options** dropdown button below the section where you selected project.
51
58
@@ -54,7 +61,7 @@ To remove Application Insights, you'll need to remove the NuGet packages and ref
54
61
1. Select **Uninstall**
55
62
56
63

57
-
64
+
58
65
A dialog box will display that shows all of the dependencies to be removed from the application. Select **ok** to remove them.
59
66
60
67

@@ -214,41 +221,6 @@ When you add Application Insights Telemetry to a Visual Studio ASP.NET Core temp
Ifyouendupwithanothererrorthatyoucan't uninstall "Microsoft.ApplicationInsights.TraceListener" because another package or packages depend on it you can look through those packages and find one that doesn'tdoesnotdependonanythingtobeuninstalledfirst.
GobacktouninstallMicrosoft.ApplicationInsights.Webbutthistimein*UninstallOptions*select"Force uninstall even if there are dependencies on it" ("Remove dependencies"shouldstillbeselected). Thiswilluninstallthepackageevenifit's still being referenced in the project. This option could lead to broken reference in your project; if that happens you make need to [reinstall](https://docs.microsoft.com/nuget/consume-packages/reinstalling-and-updating-packages) those other packages. Then uninstall "Microsoft.ApplicationInsights.TraceListener".
IfyouwouldliketoonlyuninstallMicrosoft.ApplicationInsights.TraceListener, followthestepsin"Unable to uninstall because another NuGet package depends on it error"butinsteadforceuninstallingMicrosoft.ApplicationInsights.Web, forceuninstall"Microsoft.ApplicationInsights.TraceListener".
0 commit comments