Skip to content

Commit 7b9e328

Browse files
authored
Merge pull request #79169 from ShannonLeavitt/vminsights-optout
edit pass: vminsights-optout
2 parents 819a7f4 + ff637b6 commit 7b9e328

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed
Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: How to Disable Monitoring with Azure Monitor for VMs (preview) | Microsoft Docs
3-
description: This article describes how you can discontinue monitoring of your virtual machines with Azure Monitor for VMs.
2+
title: Disable monitoring in Azure Monitor for VMs (preview) | Microsoft Docs
3+
description: This article describes how to stop monitoring your virtual machines in Azure Monitor for VMs.
44
services: azure-monitor
55
documentationcenter: ''
66
author: mgoedtel
@@ -15,54 +15,59 @@ ms.date: 11/05/2018
1515
ms.author: magoedte
1616
---
1717

18-
# How to disable monitoring of your virtual machines with Azure Monitor for VMs (preview)
18+
# Disable monitoring of your VMs in Azure Monitor for VMs (preview)
1919

20-
If after you enable monitoring of your virtual machines you decide you no longer want to monitor them with Azure Monitor for VMs, you can disable monitoring. This article shows how to accomplish this for a single or multiple VMs.
20+
After you enable monitoring of your virtual machines (VMs), you can later choose to disable monitoring in Azure Monitor for VMs. This article shows how to disable monitoring for one or more VMs.
2121

22-
Currently, Azure Monitor for VMs does not support selectively disabling monitoring of your VMs. If your Log Analytics workspace is configured to support this solution and other solutions, as well as collect other monitoring data, it's important you understand the impact and methods described below before proceeding.
22+
Currently, Azure Monitor for VMs doesn't support selective disabling of VM monitoring. Your Log Analytics workspace might support Azure Monitor for VMs and other solutions. It might also collect other monitoring data. If your Log Analytics workspace provides these services, you need to understand the effect and methods of disabling monitoring before you start.
2323

2424
Azure Monitor for VMs relies on the following components to deliver its experience:
2525

26-
* A Log Analytics workspace, which stores monitoring data collected from VMs and other sources.
27-
* Collection of performance counters configured in the workspace, which updates monitoring configuration on all VMs connected to the workspace.
28-
* Two monitoring solutions configured in the workspace - **InfrastructureInsights** and **ServiceMap**, which update monitoring configuration on all VMs connected to the workspace.
29-
* Two Azure virtual machine extensions, the **MicrosoftMonitoringAgent** and the **DependencyAgent**, which collect and send data to the workspace.
26+
* A Log Analytics workspace, which stores monitoring data from VMs and other sources.
27+
* A collection of performance counters configured in the workspace. The collection updates the monitoring configuration on all VMs connected to the workspace.
28+
* `InfrastructureInsights` and `ServiceMap`, which are monitoring solutions configured in the workspace. These solutions update the monitoring configuration on all VMs connected to the workspace.
29+
* `MicrosoftMonitoringAgent` and `DependencyAgent`, which are Azure VM extensions. These extensions collect and send data to the workspace.
3030

31-
Consider the following when preparing to disable monitoring of your virtual machines with Azure Monitor for VMs:
31+
As you prepare to disable monitoring of your VMs, keep these considerations in mind:
3232

33-
* If you are evaluating with a single VM and you accepted the pre-selected default Log Analytics workspace, you can disable monitoring by uninstalling the Dependency agent from the VM and disconnecting the Log Analytics agent from this workspace. This approach is appropriate if you intend on using the VM for other purposes and decide later to reconnect it to a different workspace.
34-
* If you are using the Log Analytics workspace to support other monitoring solutions and collection of data from other sources, you can remove Azure Monitor for VMs solution components from the workspace without interruption or impact to your workspace.
33+
* If you evaluated with a single VM and used the preselected default Log Analytics workspace, you can disable monitoring by uninstalling the Dependency agent from the VM and disconnecting the Log Analytics agent from this workspace. This approach is appropriate if you intend to use the VM for other purposes and decide later to reconnect it to a different workspace.
34+
* If you selected a preexisting Log Analytics workspace that supports other monitoring solutions and data collection from other sources, you can remove solution components from the workspace without interrupting or affecting your workspace.
3535

3636
>[!NOTE]
37-
> After removing the solution components from your workspace, you may continue to see health state from your Azure VMs; specifically performance and map data when you navigate to either view in the portal. Data will eventually stop appearing from the Performance and Map view after sometime; however the Health view will continue to show health status for your VMs. The **Try now** option will be available from the selected Azure VM to allow you to re-enable monitoring in the future.
37+
> After removing the solution components from your workspace, you might continue to see health state from your Azure VMs; specifically, you'll see performance and map data when you go to either view in the portal. Data will eventually stop appearing in the **Performance** and **Map** views. But the **Health** view will continue to show health status for your VMs. The **Try now** option will be available from the selected Azure VM so you can re-enable monitoring in the future.
3838
39-
## Complete removal of Azure Monitor for VMs
39+
## Remove Azure Monitor for VMs completely
4040

41-
The following steps describe how to completely remove Azure Monitor for VMs if you still require the Log Analytics workspace. You are going to remove the **InfrastructureInsights** and **ServiceMap** solutions from the workspace.
41+
If you still need the Log Analytics workspace, follow these steps to completely remove Azure Monitor for VMs. You'll remove the `InfrastructureInsights` and `ServiceMap` solutions from the workspace.
4242

4343
>[!NOTE]
44-
>If you were using the Service Map monitoring solution previous to enabling Azure Monitor for VMs and you still rely on it, do not remove that solution as described in step 6 below.
44+
>If you used the Service Map monitoring solution before you enabled Azure Monitor for VMs and you still rely on it, don't remove that solution as described in the last step of the following procedure.
4545
>
4646
47-
1. Sign in to the Azure portal at [https://portal.azure.com](https://portal.azure.com).
48-
2. In the Azure portal, click **All services**. In the list of resources, type Log Analytics. As you begin typing, the list filters based on your input. Select **Log Analytics**.
49-
3. In your list of Log Analytics workspaces, select the workspace you chose when onboarding Azure Monitor for VMs.
50-
4. From the left pane, select **Solutions**.
51-
5. In the list of solutions, select **InfrastructureInsights(workspace name)**, and then on the **Overview** page for the solution, click **Delete**. When prompted to confirm, click **Yes**.
52-
6. From the list of solutions, select **ServiceMap(workspace name)**, and then on the **Overview** page for the solution, click **Delete**. When prompted to confirm, click **Yes**.
47+
1. Sign in to the [Azure portal](https://portal.azure.com).
48+
2. In the Azure portal, select **All services**. In the list of resources, type **Log Analytics**. As you begin typing, the list filters suggestions based on your input. Select **Log Analytics**.
49+
3. In your list of Log Analytics workspaces, select the workspace you chose when you enabled Azure Monitor for VMs.
50+
4. On the left, select **Solutions**.
51+
5. In the list of solutions, select **InfrastructureInsights(workspace name)**. On the **Overview** page for the solution, select **Delete**. When prompted to confirm, select **Yes**.
52+
6. In the list of solutions, select **ServiceMap(workspace name)**. On the **Overview** page for the solution, select **Delete**. When prompted to confirm, select **Yes**.
5353

54-
If before onboarding Azure Monitor for VMs, you were not [collecting the performance counters enabled](vminsights-enable-overview.md#performance-counters-enabled) for the Windows or Linux-based VMs in your workspace, you need to disable those rules by following the steps described [here](../platform/data-sources-performance-counters.md#configuring-performance-counters) for Windows and for Linux.
54+
Before you enabled Azure Monitor for VMs, if you didn't [collect performance counters](vminsights-enable-overview.md#performance-counters-enabled) for the Windows-based or Linux-based VMs in your workspace, [disable those rules](../platform/data-sources-performance-counters.md#configuring-performance-counters) for Windows and for Linux.
5555

56-
## Disable monitoring for an Azure VM and retain workspace
56+
## Disable monitoring and keep the workspace
5757

58-
The following steps describe how to disable monitoring for a virtual machine that was enabled to evaluate Azure Monitor for VMs, but the Log Analytics workspace is still required to support monitoring from other sources. If this is an Azure VM, you are going to remove the Dependency agent VM extension and Log Analytics agent VM extension for Windows/Linux directly from the VM.
58+
If your Log Analytics workspace still needs to support monitoring from other sources, following these steps to disable monitoring on the VM that you used to evaluate Azure Monitor for VMs. For Azure VMs, you'll remove the dependency agent VM extension and the Log Analytics agent VM extension for Windows or Linux directly from the VM.
5959

6060
>[!NOTE]
61-
>If the virtual machine is managed by Azure Automation to orchestrate processes, manage configuration, or manage updates, or managed by Azure Security Center for security management and threat detection, the Log Analytics agent should not be removed. Otherwise, you will prevent those services and solutions from proactively managing your VM.
61+
>Don't remove the Log Analytics agent if:
62+
>
63+
> * Azure Automation manages the VM to orchestrate processes or to manage configuration or updates.
64+
> * Azure Security Center manages the VM for security and threat detection.
65+
>
66+
> If you do remove the Log Analytics agent, you will prevent those services and solutions from proactively managing your VM.
6267
63-
1. Sign in to the Azure portal at [https://portal.azure.com](https://portal.azure.com).
68+
1. Sign in to the [Azure portal](https://portal.azure.com).
6469
2. In the Azure portal, select **Virtual Machines**.
6570
3. From the list, select a VM.
66-
4. From the left pane, select **Extensions** and on the **Extensions** page, select **DependencyAgent**.
67-
5. On the extension properties page, click **Uninstall**.
68-
6. On the **Extensions** page, select **MicrosoftMonitoringAgent** and on the extension properties page, click **Uninstall**.
71+
4. On the left, select **Extensions**. On the **Extensions** page, select **DependencyAgent**.
72+
5. On the extension properties page, select **Uninstall**.
73+
6. On the **Extensions** page, select **MicrosoftMonitoringAgent**. On the extension properties page, select **Uninstall**.

0 commit comments

Comments
 (0)