Skip to content

Commit 1037a5c

Browse files
authored
Merge pull request #221123 from guywi-ms/VM-insights-clarifications-and-updates
Vm insights clarifications and updates
2 parents 5df9146 + f33e372 commit 1037a5c

11 files changed

+153
-165
lines changed

articles/azure-monitor/toc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,6 @@ items:
10391039
href: vm/vminsights-overview.md
10401040
- name: FAQ
10411041
href: /azure/azure-monitor/faq#vm-insights
1042-
- name: Configure workspace
1043-
href: vm/vminsights-configure-workspace.md
10441042
- name: Enable and configure
10451043
items:
10461044
- name: Overview
@@ -1051,12 +1049,14 @@ items:
10511049
href: vm/vminsights-enable-powershell.md
10521050
- name: ARM templates
10531051
href: vm/vminsights-enable-resource-manager.md
1054-
- name: Azure Policy
1052+
- name: Azure Policy
10551053
href: vm/vminsights-enable-policy.md
10561054
- name: Hybrid VMs
10571055
href: vm/vminsights-enable-hybrid.md
10581056
- name: Dependency Agent
10591057
href: vm/vminsights-dependency-agent-maintenance.md
1058+
- name: Configure workspace
1059+
href: vm/vminsights-configure-workspace.md
10601060
- name: Map dependencies
10611061
href: vm/vminsights-maps.md
10621062
- name: Monitor performance
Loading
66.9 KB
Loading

articles/azure-monitor/vm/vminsights-dependency-agent-maintenance.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Update the agent on a Windows VM from the command prompt, with a script or other
6060
6161
### Upgrade Linux agent
6262
63-
Upgrade from prior versions of the Dependency agent on Linux is supported and performed following the same command as a new installation.
63+
Upgrade from prior versions of the Dependency Agent on Linux is supported and performed following the same command as a new installation.
6464
6565
You can download the latest version of the Linux agent from [here](https://aka.ms/dependencyagentlinux).
6666
@@ -74,6 +74,15 @@ You can download the latest version of the Linux agent from [here](https://aka.m
7474
7575
If the Dependency agent fails to start, check the logs for detailed error information. On Linux agents, the log directory is */var/opt/microsoft/dependency-agent/log*.
7676
77+
## Uninstall Dependency Agent
78+
79+
To uninstall Dependency Agent:
80+
81+
1. From the **Virtual Machines** menu in the Azure portal, select your virtual machine.
82+
1. Select **Extensions + applications** > **DependencyAgentWindows** or **DependencyAgentLinux** > **Uninstall**.
83+
84+
:::image type="content" source="media/vminsights-dependency-agent-maintenance/azure-monitor-uninstall-dependency-agent.png" alt-text="Screenshot showing the Extensions and applications screen for a virtual machine." lightbox="media/vminsights-dependency-agent-maintenance/azure-monitor-uninstall-dependency-agent.png":::
85+
7786
## Dependency Agent Linux support
7887
7988
Since the Dependency agent works at the kernel level, support is also dependent on the kernel version. As of Dependency agent version 9.10.* the agent supports * kernels. The following table lists the major and minor Linux OS release and supported kernel versions for the Dependency agent.

articles/azure-monitor/vm/vminsights-enable-overview.md

Lines changed: 34 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.custom: references_regions
1414
This article provides an overview of the options available to enable VM insights to monitor the health and performance of:
1515

1616
- Azure virtual machines.
17-
- Azure virtual machine scale sets.
17+
- Azure Virtual Machine Scale Sets.
1818
- Hybrid virtual machines connected with Azure Arc.
1919
- On-premises virtual machines.
2020
- Virtual machines hosted in another cloud environment.
@@ -66,44 +66,28 @@ Output for this command will look similar to the following and specify whether a
6666
/sys/devices/system/cpu/vulnerabilities/spectre_v2:Vulnerable: Minimal generic ASM retpoline
6767
```
6868

69-
## Log Analytics workspace
70-
71-
VM insights requires a Log Analytics workspace. For requirements of this workspace, see [Configure Log Analytics workspace for VM insights](vminsights-configure-workspace.md).
72-
73-
> [!NOTE]
74-
> VM Insights doesn't support sending data to more than one Log Analytics workspace (multi-homing).
75-
>
76-
77-
## Network requirements
78-
79-
- For the network requirements for the Log Analytics agent, see [Network requirements](../agents/log-analytics-agent.md#network-requirements).
80-
- The Dependency agent requires a connection from the virtual machine to the address 169.254.169.254. This address identifies the Azure metadata service endpoint. Ensure that firewall settings allow connections to this endpoint.
81-
8269
## Agents
8370

8471
When you enable VM insights for a machine, the following agents are installed. For the network requirements for these agents, see [Network requirements](../agents/log-analytics-agent.md#network-requirements).
8572

8673
> [!IMPORTANT]
8774
> VM insights support for the Azure Monitor agent is currently in public preview. The Azure Monitor agent has several advantages over the Log Analytics agent. It's the preferred agent for virtual machines and virtual machine scale sets. For a comparison of the agent and information on migrating, see [Migrate to Azure Monitor agent from Log Analytics agent](../agents/azure-monitor-agent-migration.md).
8875
89-
- **[Azure Monitor agent](../agents/azure-monitor-agent-overview.md) or [Log Analytics agent](../agents/log-analytics-agent.md):** Collects data from the virtual machine or virtual machine scale set and delivers it to the Log Analytics workspace.
76+
- **[Azure Monitor agent](../agents/azure-monitor-agent-overview.md) or [Log Analytics agent](../agents/log-analytics-agent.md):** Collects data from the virtual machine or Virtual Machine Scale Set and delivers it to the Log Analytics workspace.
9077
- **Dependency agent**: Collects discovered data about processes running on the virtual machine and external process dependencies, which are used by the [Map feature in VM insights](../vm/vminsights-maps.md). The Dependency agent relies on the Azure Monitor agent or Log Analytics agent to deliver its data to Azure Monitor.
9178

92-
## Changes for the Azure Monitor agent
93-
94-
There are several changes in the process for enabling VM insights when you use the Azure Monitor agent:
95-
96-
- **Workspace configuration:** You no longer need to [enable VM insights on the Log Analytics workspace](vminsights-configure-workspace.md) because the Azure Monitor agent doesn't use the *VMInsights* management pack.
97-
- **Data collection rule (DCR):** The Azure Monitor agent uses [data collection rules](../essentials/data-collection-rule-overview.md) to configure its data collection. VM insights creates a DCR that's automatically deployed if you enable your machine by using the Azure portal. If you use other methods to onboard your machines, you might need to install the DCR first.
98-
- **Agent deployment:** There are minor changes to the process for onboarding virtual machines and virtual machine scale sets to VM insights in the Azure portal. You must now select which agent you want to use, and you must select a DCR for the Azure Monitor agent. For more information, see [Enable VM insights in the Azure portal](vminsights-enable-portal.md).
79+
### Network requirements
9980

100-
## Data collection rule (Azure Monitor agent)
81+
- For Azure Monitor Agent, the machine must have access to the following HTTPS endpoints:
82+
- global.handler.control.monitor.azure.com
83+
- `<virtual-machine-region-name>`.handler.control.monitor.azure.com (example: westus.handler.control.azure.com)
84+
- `<log-analytics-workspace-id>`.ods.opinsights.azure.com (example: 12345a01-b1cd-1234-e1f2-1234567g8h99.ods.opinsights.azure.com)
85+
(If using private links on the agent, you must also add the [data collection endpoints](../essentials/data-collection-endpoint-overview.md#components-of-a-data-collection-endpoint))
10186

102-
When you enable VM insights on a machine with the Azure Monitor agent, you must specify a [data collection rule](../essentials/data-collection-rule-overview.md) to use. The DCR specifies the data to collect and the workspace to use. VM insights creates a default DCR if one doesn't already exist. For more information on how to create and edit the VM insights DCR, see [Enable VM insights for the Azure Monitor agent
103-
](vminsights-enable-portal.md#enable-vm-insights-for-azure-monitor-agent).
87+
- The Dependency agent requires a connection from the virtual machine to the address 169.254.169.254. This address identifies the Azure metadata service endpoint. Ensure that firewall settings allow connections to this endpoint.
88+
## Data collection rule
10489

105-
> [!IMPORTANT]
106-
> Don't create your own DCR to support VM insights. The DCR created by VM insights includes a special data stream required for its operation. You can edit this DCR to collect more data, such as Windows and Syslog events, but you should create more DCRs and associate them with the machine.
90+
When you enable VM insights on a machine with the Azure Monitor agent, you must specify a [data collection rule (DCR)](../essentials/data-collection-rule-overview.md) to use. The DCR specifies the data to collect and the workspace to use. VM insights creates a default DCR if one doesn't already exist. For more information on how to create and edit the VM insights DCR, see [Enable VM insights for Azure Monitor Agent](vminsights-enable-portal.md#enable-vm-insights-for-azure-monitor-agent).
10791

10892
The DCR is defined by the options in the following table.
10993

@@ -113,37 +97,36 @@ The DCR is defined by the options in the following table.
11397
| Processes and dependencies | Collects information about processes running on the virtual machine and dependencies between machines. This information enables the [Map feature in VM insights](vminsights-maps.md). This is optional and enables the [VM insights Map feature](vminsights-maps.md) for the machine. |
11498
| Log Analytics workspace | Workspace to store the data. Only workspaces with VM insights are listed. |
11599

116-
## Management packs (Log Analytics agent)
117-
118-
When a Log Analytics workspace is configured for VM insights, two management packs are forwarded to all the Windows computers connected to that workspace. The management packs are named *Microsoft.IntelligencePacks.ApplicationDependencyMonitor* and *Microsoft.IntelligencePacks.VMInsights*. They're written to *%Programfiles%\Microsoft Monitoring Agent\Agent\Health Service State\Management Packs*.
119-
120-
The data source used by the *ApplicationDependencyMonitor* management pack is **%Program files%\Microsoft Monitoring Agent\Agent\Health Service State\Resources\<AutoGeneratedID>\Microsoft.EnterpriseManagement.Advisor.ApplicationDependencyMonitorDataSource.dll*. The data source used by the *VMInsights* management pack is *%Program files%\Microsoft Monitoring Agent\Agent\Health Service State\Resources\<AutoGeneratedID>\ Microsoft.VirtualMachineMonitoringModule.dll*.
121-
122-
## Migrate from Log Analytics agent
100+
> [!IMPORTANT]
101+
> Don't create your own DCR to support VM insights. The DCR created by VM insights includes a special data stream required for its operation. You can edit this DCR to collect more data, such as Windows and Syslog events, but you should create more DCRs and associate them with the machine.
123102
124-
The Azure Monitor agent and the Log Analytics agent can both be installed on the same machine during migration. Running both agents might lead to duplication of data and increased cost. If a machine has both agents installed, you'll see a warning in the Azure portal that you might be collecting duplicate data.
103+
If you associate a data collection rule with the Map feature enabled to a machine on which Dependency Agent isn't installed, the Map view won't be available. To enable the Map view, set `enableAMA property = true` in the Dependency Agent extension when you install Dependency Agent. We recommend following the procedure described in [Enable VM insights for Azure Monitor Agent](vminsights-enable-portal.md#enable-vm-insights-for-azure-monitor-agent).
125104

126-
> [!WARNING]
127-
> Collecting duplicate data from a single machine with both the Azure Monitor agent and Log Analytics agent can result in the following consequences:
128-
>
129-
> - Extra ingestion cost from sending duplicate data to the Log Analytics workspace.
130-
> - The Map feature of VM insights might be inaccurate because it doesn't check for duplicate data.
105+
## Migrate from Log Analytics agent to Azure Monitor Agent
131106

132-
:::image type="content" source="media/vminsights-enable-portal/both-agents-installed.png" lightbox="media/vminsights-enable-portal/both-agents-installed.png" alt-text="Screenshot that shows both agents installed.":::
107+
- You can install both Azure Monitor Agent and Log Analytics agent on the same machine during migration. If a machine has both agents installed, you'll see a warning in the Azure portal that you might be collecting duplicate data.
108+
109+
:::image type="content" source="media/vminsights-enable-portal/both-agents-installed.png" lightbox="media/vminsights-enable-portal/both-agents-installed.png" alt-text="Screenshot that shows both agents installed.":::
133110

134-
You must remove the Log Analytics agent yourself from any machines that are using it. Before you do this step, ensure that the machine isn't relying on any other solutions that require the Log Analytics agent. For more information, see [Migrate to Azure Monitor agent from Log Analytics agent](../agents/azure-monitor-agent-migration.md).
111+
> [!WARNING]
112+
> Collecting duplicate data from a single machine with both Azure Monitor Agent and Log Analytics agent can result in:
113+
>
114+
> - Extra ingestion costs from sending duplicate data to the Log Analytics workspace.
115+
> - Inaccuracy in the Map feature of VM insights because the feature doesn't check for duplicate data.
135116
136-
After you verify that no Log Analytics agents are still connected to your Log Analytics workspace, you can [remove the *VMInsights* solution from the workspace](vminsights-configure-workspace.md#remove-vminsights-solution-from-workspace). It's no longer needed.
117+
- You must remove the Log Analytics agent yourself from any machines that are using it. Before you do this step, ensure that the machine isn't relying on any other solutions that require the Log Analytics agent. For more information, see [Migrate to Azure Monitor Agent from Log Analytics agent](../agents/azure-monitor-agent-migration.md).
137118

138-
> [!NOTE]
139-
> To check if you have any machines with both agents sending data to your Log Analytics workspace, run the following [log query](../logs/log-query-overview.md) in [Log Analytics](../logs/log-analytics-overview.md). This query will show the last heartbeat for each computer. If a computer has both agents, it will return two records, each with a different `category`. The Azure Monitor agent will have a `category` of *Azure Monitor Agent*. The Log Analytics agent will have a `category` of *Direct Agent*.
140-
>
141-
> ```KQL
142-
> Heartbeat
143-
> | summarize max(TimeGenerated) by Computer, Category
144-
> | sort by Computer
145-
> ```
119+
- After you verify that no Log Analytics agents are still connected to your Log Analytics workspace, you can [remove the VM Insights solution from the workspace](vminsights-configure-workspace.md#remove-vminsights-solution-from-workspace). It's no longer needed.
146120

121+
> [!NOTE]
122+
> To check if you have any machines with both agents sending data to your Log Analytics workspace, run the following [log query](../logs/log-query-overview.md) in [Log Analytics](../logs/log-analytics-overview.md). This query will show the last heartbeat for each computer. If a computer has both agents, it will return two records, each with a different `category`. The Azure Monitor agent will have a `category` of *Azure Monitor Agent*. The Log Analytics agent will have a `category` of *Direct Agent*.
123+
>
124+
> ```KQL
125+
> Heartbeat
126+
> | summarize max(TimeGenerated) by Computer, Category
127+
> | sort by Computer
128+
> ```
129+
147130
## Diagnostic and usage data
148131
149132
Microsoft automatically collects usage and performance data through your use of Azure Monitor. Microsoft uses this data to improve the quality, security, and integrity of the service.

0 commit comments

Comments
 (0)