After you enable monitoring of your virtual machines (VMs), you can later choose to disable monitoring in VM insights. This article shows how to disable monitoring for one or more VMs.
Currently, VM insights doesn't support selective disabling of VM monitoring. 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:
A Log Analytics workspace, which stores monitoring data from VMs and other sources.
A collection of performance counters configured in the workspace. The collection updates the monitoring configuration on all VMs connected to the workspace.
The VMInsights monitoring solution is configured in the workspace. This solution updates the monitoring configuration on all VMs connected to the workspace.
Azure VM extensions 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:
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.
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.
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.
Remove VM insights completely
If you still need the Log Analytics workspace, you can remove the VMInsights solution from the workspace.
In the Azure portal, select All services. In the list of resources, enter Log Analytics. As you begin typing, the list filters suggestions based on your input. Select Log Analytics.
In your list of Log Analytics workspaces, select the workspace you chose when you enabled VM insights.
On the left, select Legacy solutions.
In the list of solutions, select VMInsights(workspace name). On the Overview page for the solution, select Delete. When you're prompted to confirm, select Yes.
Disable monitoring and keep 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:
Azure Automation manages the VM to orchestrate processes or to manage configuration or updates.
Microsoft Defender for Cloud manages the VM for security and threat detection.
If you do remove the Log Analytics agent, you'll prevent those services and solutions from proactively managing your VM.
Use the az aks disable-addons CLI command to disable Container insights on a cluster. The command removes the agent from the cluster nodes. It doesn't remove the data already collected and stored in the Log Analytics workspace for your cluster.
It also monitors the performance of your virtual machines and virtual machine scale sets by collecting data on their running processes and dependencies on other resources. VM insights supports Windows and Linux operating systems on: Azure virtual machines. Azure virtual machine scale sets.
To disable it within Visual Studio, you may want to use the actual Visual Studio settings to disable it. To disable it go to “TOOLS –> Options –> Projects and Solutions –> Web Projects” and check “Disable local Application Insights for Asp.Net Core web projects.” Below is the image for disabling local App Insights.
Select Monitoring, then Alerts in the left-hand pane of the Resource group window. Select Alert rules in the Alerts window. Consider the following options: To disable an alert: Make sure the Status is set to Enabled, select the alert, and then click Disable.
The only way to do that is to delete the entire Application Insights service configuration through the portal. And currently Application Insights has 7 days retention policy, so all data will be deleted automatically in 7 days.
With its seamless integration with Azure services, Azure Monitoring provides a unified monitoring experience across the Azure network. Prometheus is flexible but requires more manual configuration due to its extensive range of system integrations and support for multi-cloud scenarios.
From the Log Analytics workspace menu, select Tables. Search for the tables you want to delete by name, or by selecting Search results in the Type field. Select the table you want to delete, select the ellipsis ( ... ) to the right of the table, select Delete, and confirm the deletion by typing yes.
Sign in to a managed computer with an account that is a member of the administrators security group for the computer. In Control Panel, select Uninstall a program.In Programs and Features, select Microsoft Monitoring Agent, select Remove, and then select Yes.
Pricing and Licensing: Azure Monitor is billed based on the volume of monitoring data ingested and stored, while Azure Application Insights offers different pricing options based on the number of data points collected per month.
From the Monitor menu in the Azure portal, select Virtual Machines > Overview > Monitored.Select Configure using Azure Monitor agent next to any machine that you want to enable. If a machine is currently running, you must start it to enable it.
To enable VM Insights on a machine with Azure Monitor Agent, associate a VM insights data collection rule (DCR) with the agent. VM Insights creates a default data collection rule if one doesn't already exist. Specifies whether to collect performance data from the guest operating system.
You now made connection with the VMM server and you are ready to stop the virtual machine. Enter 'Stop-VM –VM <ComputerName> | out-null' to stop the virtual machine. That's all there is to stop your virtual machines.
From the Monitor menu in the Azure portal, select Virtual Machines > Overview > Monitored.Select Configure using Azure Monitor agent next to any machine that you want to enable. If a machine is currently running, you must start it to enable it.
Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.
We notice you're using an ad blocker
Without advertising income, we can't keep making this site awesome for you.