Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article describes how to disable VM insights monitoring for your monitored virtual machines.
The following steps are completed when you enable VM insights on a virtual machine. Depending on how you onboarded the machine, you may have performed all of these steps individually or had them performed for you. Each of these steps needs to be reversed for complete removal of VM insights monitoring, but you may want to leave some in place depending on your requirements.
You can disable VM insights for a single machine by simply removing the DCR association between that VM and the VM insights DCR. This leaves the agents installed on the VM and the VM insights DCR intact, but it stops the collection of all VM insights data from the VM. While multiple machines can use a common DCR, they will each have a separate DCR association.
If you disable VM insights monitoring from the Azure portal, it will remove the DCR association but leave the agents and VM insights DCR intact.
If there are no associations with the VM insights DCR, then it doesn't need to be removed since it won't be affecting any VMs. Be careful to not remove this DCR if there are any existing associations, since that will cause those VMs to stop monitoring.
Select the Delete option from the DCR in the Monitor menu.
You should remove the Dependency agent from the VM if the VM is no longer using VM insights. Only remove the Azure Monitor agent if you're no longer using it for any other monitoring purposes.
Important
This section describes how to disable monitoring of your virtual machines in VM insights if you enabled it using the deprecated Log Analytics agent. This required a solution being added to the Log Analytics workspace that's no longer required for Azure Monitor agent.
VM insights doesn't support selective disabling of VM monitoring with Log Analytics agent. Your Log Analytics workspace might support VM insights 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.
VM insights relies on the following components to deliver its experience:
VMInsights
monitoring solution is configured in the workspace. This solution updates the monitoring configuration on all VMs connected to the workspace.MicrosoftMonitoringAgent
(for Windows) or OmsAgentForLinux
(for Linux) and DependencyAgent
. These extensions collect and send data to the workspace.As you prepare to disable monitoring of your VMs, keep these considerations in mind:
Note
After you remove the solution components from your workspace, you might continue to see performance and map data for your Azure VMs. Data eventually stops appearing in the Performance and Map views. The Enable option is available from the selected Azure VM so that you can reenable monitoring in the future.
If you still need the Log Analytics workspace, you can remove the VMInsights
solution from the workspace.
If your Log Analytics workspace still needs to support monitoring from other sources, you can disable monitoring on the VM that you used to evaluate VM insights. For Azure VMs, you remove the dependency agent VM extension and the Log Analytics agent VM extension for Windows or Linux directly from the VM.
Note
Don't remove the Log Analytics agent if:
If you do remove the Log Analytics agent, you'll prevent those services and solutions from proactively managing your VM.
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Configure monitoring for virtual machines - Training
In this module, you learn how the Azure Monitor Agent can be deployed to IaaS VMs, how VM Insights can be used to monitor IaaS VM performance, and how to enable data collection rules to collect operating system and application logs.
Certification
Microsoft Certified: Azure Virtual Desktop Specialty - Certifications
Plan, deliver, manage, and monitor virtual desktop experiences and remote apps on Microsoft Azure for any device.