Skip to content

Commit d7ac3b1

Browse files
committed
edit pass: vminsights-troubleshoot
1 parent 57ff1c7 commit d7ac3b1

File tree

1 file changed

+76
-65
lines changed

1 file changed

+76
-65
lines changed
Lines changed: 76 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Troubleshoot VM insights
3-
description: Troubleshooting information for VM insights installation.
3+
description: Get troubleshooting information for installation of VM insights.
44
ms.topic: conceptual
55
author: guywi-ms
66
ms.author: guywild
@@ -10,126 +10,130 @@ ms.custom: references_regions
1010
---
1111

1212
# Troubleshoot VM insights
13-
This article provides troubleshooting information to help you with problems you might have experienced when you tried to enable or use VM insights.
13+
14+
This article provides troubleshooting information to help you with problems that you might experience when you try to enable or use virtual machine (VM) insights in Azure Monitor.
1415

1516
## Can't enable VM insights on a machine
16-
When you onboard an Azure virtual machine from the Azure portal, the following steps occur:
1717

18-
- A default Log Analytics workspace is created if that option was selected.
19-
- Azure Monitor Agent is installed on Azure virtual machines by using a VM extension if the agent is already installed.
20-
- The Dependency agent is installed on Azure virtual machines by using an extension if it's required.
18+
When you onboard an Azure virtual machine from the Azure portal, the following actions occur:
19+
20+
- A default Log Analytics workspace is created if you selected that option.
21+
- The Azure Monitor Agent is installed on Azure virtual machines through a VM extension, if the agent is already installed.
22+
- The Dependency Agent is installed on Azure virtual machines through an extension, if it's required.
2123

2224
During the onboarding process, each of these steps is verified and a notification status appears in the portal. Configuration of the workspace and the agent installation typically takes 5 to 10 minutes. It takes another 5 to 10 minutes for data to become available to view in the portal.
2325

24-
If you receive a message that the virtual machine needs to be onboarded after you've performed the onboarding process, allow for up to 30 minutes for the process to finish. If the issue persists, see the following sections for possible causes.
26+
If you receive a message that the virtual machine needs to be onboarded after you perform the onboarding process, allow up to 30 minutes for the process to finish. If the issue persists, see the following sections for possible causes.
2527

2628
### Is the virtual machine running?
27-
If the virtual machine has been turned off for a while, is off currently, or was only recently turned on, you won't have data to display until data arrives.
29+
30+
If the virtual machine has been turned off for a while, is off currently, or was only recently turned on, you won't have data to display until data arrives.
2831

2932
### Is the operating system supported?
30-
If the operating system isn't in the list of [supported operating systems](vminsights-enable-overview.md#supported-operating-systems), the extension fails to install and you see a message that we're waiting for data to arrive.
33+
34+
If the operating system isn't in the [list of supported operating systems](vminsights-enable-overview.md#supported-operating-systems), installation of the extension fails and you get a message about waiting for data to arrive.
3135

3236
> [!IMPORTANT]
33-
> Post April 11, 2022, if you aren't seeing your virtual machine in the VM insights solution, you might be running an older version of the Dependency agent. For more information, see the blog post [Potential breaking changes for VM insights Linux customers](https://techcommunity.microsoft.com/t5/azure-monitor-status/potential-breaking-changes-for-vm-insights-linux-customers/ba-p/3271989). Not applicable for Windows machines and before April 11, 2022.
37+
> As of April 11, 2022, if your virtual machine doesn't appear in VM insights, you might be running an older version of the Dependency Agent. For more information, see the blog post [Potential breaking changes for VM insights Linux customers](https://techcommunity.microsoft.com/t5/azure-monitor-status/potential-breaking-changes-for-vm-insights-linux-customers/ba-p/3271989). This consideration doesn't apply for Windows machines and for VMs that you onboarded before April 11, 2022.
38+
39+
### Was the extension installed properly?
3440

35-
### Did the extension install properly?
36-
If you still see a message that the virtual machine needs to be onboarded, it might mean that one or both of the extensions failed to install correctly. Check the **Extensions** page for your virtual machine in the Azure portal to verify that the following extensions are listed.
41+
If you still see a message that the virtual machine needs to be onboarded, it might mean that one or both of the extensions failed to be installed correctly. In the Azure portal, on the **Extensions** pane for your virtual machine, check whether the following extensions appear.
3742

38-
| Operating system | Agents |
43+
| Operating system | Agents |
3944
|:---|:---|
4045
| Windows | MicrosoftMonitoringAgent<br>Microsoft.Azure.Monitoring.DependencyAgent |
4146
| Linux | OMSAgentForLinux<br>DependencyAgentLinux |
4247

43-
If you don't see both the extensions for your operating system in the list of installed extensions, they must be installed. If the extensions are listed but their status doesn't appear as *Provisioning succeeded*, remove the extensions and reinstall them.
48+
If you don't see both extensions for your operating system in the list of installed extensions, you must install them. If the extensions are listed but their status doesn't appear as **Provisioning succeeded**, remove the extensions and reinstall them.
4449

4550
### Do you have connectivity issues?
46-
For Windows machines, you can use the TestCloudConnectivity tool to identify connectivity issue. This tool is installed by default with the agent in the folder *%SystemDrive%\Program Files\Microsoft Monitoring Agent\Agent*. Run the tool from an elevated command prompt. It returns results and highlights where the test fails.
47-
<!-- convertborder later -->
48-
:::image type="content" source="media/vminsights-troubleshoot/test-cloud-connectivity.png" lightbox="media/vminsights-troubleshoot/test-cloud-connectivity.png" alt-text="Screenshot that shows the TestCloudConnectivity tool." border="false":::
4951

50-
### More agent troubleshooting
52+
For Windows machines, you can use the TestCloudConnectivity tool to identify the connectivity issue. This tool is installed by default with the agent in the folder *%SystemDrive%\Program Files\Microsoft Monitoring Agent\Agent*. Run the tool from an elevated command prompt. It returns results and highlights where the test fails.
5153

52-
See the following articles for troubleshooting issues with the Log Analytics agent:
54+
:::image type="content" source="media/vminsights-troubleshoot/test-cloud-connectivity.png" lightbox="media/vminsights-troubleshoot/test-cloud-connectivity.png" alt-text="Screenshot that shows the tool for testing cloud connectivity." border="false":::
5355

54-
- [Troubleshoot issues with the Log Analytics agent for Windows](../agents/agent-windows-troubleshoot.md)
55-
56-
- [Troubleshoot issues with the Log Analytics agent for Linux](../agents/agent-linux-troubleshoot.md)
56+
## DCR created by the VM insights process was modified and now data is missing
5757

58-
## DCR created by VMInsight Process was modified and now data is missing
58+
### Identify the issue
5959

60-
### Identifying the Issue
60+
To identify whether a data collection rule (DCR) was modified:
6161

62-
To identify if this is the case you would first browse to the Monitor Dashboard, locate the Data Collection Rule in Question and view the JSON properties using the link on the top right-hand side of the overview blade:
62+
1. Go to the Azure Monitor dashboard.
63+
1. Locate the DCR.
64+
1. View the JSON properties by using the **JSON View** link on the upper-right side of the overview pane.
6365

64-
![Screenshot of DCR Dashboard.](media/vminsights-troubleshoot/dcr-overview.png)
66+
![Screenshot of JSON for a data collection rule.](media/vminsights-troubleshoot/dcr-overview.png)
6567

66-
You will see that stream name has been changed from its original name to reflect the performance counter stream name:
68+
In this example, the original stream name was changed to reflect the name of the performance counter stream.
6769

68-
![Screenshot of DCR JSON.](media/vminsights-troubleshoot/dcr-json.png)
70+
![Screenshot that shows a changed stream name in a data collection rule.](media/vminsights-troubleshoot/dcr-json.png)
6971

70-
We can see while the counter sections are pointing the perf table, the stream dataflow is still configured for the proper destination Microsof-InsightsMetrics.
72+
Although the counter sections are pointing the `perf` table, the stream dataflow is still configured for the proper destination `Microsoft-InsightsMetrics`.
7173

72-
### Resolving the Issue
74+
### Resolve the issue
7375

74-
This issue can't be resolved using the Monitor Dashboard directly, but we can fix this by exporting the template, normalizing the name and then import the modified rule over itself.
76+
You can't resolve this issue by using the Azure Monitor dashboard directly. But you can resolve it by exporting the template, normalizing the name, and then importing the modified rule over itself.
7577

7678
#### Export the DCR and save locally
7779

78-
1. To do this first we must export the DCR:
79-
80-
![Screenshot of Export DCR.](media/vminsights-troubleshoot/dcr-export.png)
80+
1. On the Azure Monitor dashboard, go to the DCR.
81+
82+
2. Select **Export template**.
83+
84+
![Screenshot of the menu option to export a template for a data collection rule.](media/vminsights-troubleshoot/dcr-export.png)
8185

82-
2. After selecting the Export Template blade for the selected DCR the portal will create the template file and a matching parameter file. Once this is complete, we can download the template package save and save it locally.
86+
3. On the **Export template** pane for the selected DCR, the portal creates the template file and a matching parameter file. After this process is complete, select **Download** to download the template package and save it locally.
8387

84-
![Screenshot of Download DCR Template.](media/vminsights-troubleshoot/template-download.png)
88+
![Screenshot of the button for downloading a template for a data collection rule.](media/vminsights-troubleshoot/template-download.png)
8589

86-
3. Open the file
90+
4. Select **Open file**.
8791

88-
![Screenshot of Open File.](media/vminsights-troubleshoot/downloads.png)
92+
![Screenshot that shows the link for opening a downloaded file package.](media/vminsights-troubleshoot/downloads.png)
8993

90-
4. Copy these to a local folder:
94+
5. Copy the two .json files to a local folder.
9195

92-
![Screenshot of Copy Files.](media/vminsights-troubleshoot/copy-file.png)
96+
![Screenshot that shows parameter and template files copied to a local folder.](media/vminsights-troubleshoot/copy-file.png)
9397

94-
#### Modify the Template
98+
#### Modify the template
9599

96-
1. Open the template file in the editor of your choice and locate the invalid stream name under the performance counter data source.
97-
98-
![Screenshot of Template.json.](media/vminsights-troubleshoot/update-template.png)
100+
1. Open the template file in the editor of your choice. Then locate the invalid stream name under the performance counter data source.
99101

100-
2. Using the valid stream name from the dataflow node fix the invalid reference, then save and close your file:
101-
102-
![Screenshot of Updated Stream.](media/vminsights-troubleshoot/correct-template.png)
102+
![Screenshot of a template file.](media/vminsights-troubleshoot/update-template.png)
103103

104-
#### Import the Template using the Custom Deployment Feature
104+
2. Using the valid stream name from the dataflow node, fix the invalid reference. Then save and close your file.
105105

106-
1. Back in the portal, search for and navigate to the custom template deployment:
106+
![Screenshot of an updated stream name in a template file.](media/vminsights-troubleshoot/correct-template.png)
107107

108-
![Screenshot of Deploy a custom template.](media/vminsights-troubleshoot/deploy-template.png)
108+
#### Import the template by using the custom deployment feature
109109

110-
2. Choose the Option to "Build Your Own Template"
110+
1. Back in the portal, search for and then select **Deploy a custom template**.
111111

112-
![Screenshot of Build your own template in the editor.](media/vminsights-troubleshoot/build-template.png)
112+
![Screenshot of search results for the service that deploys a custom template.](media/vminsights-troubleshoot/deploy-template.png)
113113

114-
3. Using the "Load File" link browse to your saved template and parameter file:
114+
2. On the **Custom deployment** pane, select **Build your own template in the editor**.
115115

116-
![Screenshot of Load File.](media/vminsights-troubleshoot/load-file.png)
116+
![Screenshot of the option to build your own template in the editor.](media/vminsights-troubleshoot/build-template.png)
117117

118-
4. Visually inspect the template to validate the change is in place and select the Save button
118+
3. Select **Load file**, and then browse to your saved template and parameter file.
119119

120-
![Screenshot of Edit Template.](media/vminsights-troubleshoot/save-template.png)
120+
![Screenshot of Load File.](media/vminsights-troubleshoot/load-file.png)
121+
122+
4. Visually inspect the template to validate the change is in place and select the Save button.
123+
124+
![Screenshot of Edit Template.](media/vminsights-troubleshoot/save-template.png)
121125

122126
5. From here the portal will use the parameter file to fill in the deployment options (which can be changed) or left intact to overwrite the existing DCR, Once completed select the review and Create button.
123127

124-
![Screenshot of Custom Deployment.](media/vminsights-troubleshoot/deploy.png)
128+
![Screenshot of Custom Deployment.](media/vminsights-troubleshoot/deploy.png)
125129

126130
6. After validation then we can select the Create button to finalize the deployment.
127131

128-
![Screenshot of Create Deployment.](media/vminsights-troubleshoot/create-deployment.png)
132+
![Screenshot of Create Deployment.](media/vminsights-troubleshoot/create-deployment.png)
129133

130134
7. After the deployment is complete, we can browse to the DCR again and review the JSON in overview blade:
131135

132-
![Screenshot of Review JSON.](media/vminsights-troubleshoot/updated-json.png)
136+
![Screenshot of Review JSON.](media/vminsights-troubleshoot/updated-json.png)
133137

134138
8. The agent will detect this change and download the new configuration, and this should restore ingestion to the insight metrics table.
135139

@@ -138,6 +142,7 @@ This issue can't be resolved using the Monitor Dashboard directly, but we can fi
138142
If the agents appear to be installed correctly but you don't see any data in the **Performance** view, see the following sections for possible causes.
139143

140144
### Has your Log Analytics workspace reached its data limit?
145+
141146
Check the [capacity reservations and the pricing for data ingestion](https://azure.microsoft.com/pricing/details/monitor/).
142147

143148
### Is your virtual machine agent connected to Azure Monitor Logs?
@@ -156,25 +161,31 @@ If you don't see any data or if the computer hasn't sent a heartbeat recently, y
156161

157162
See the following sections for issues with the **Map** view.
158163

159-
### Is the Dependency agent installed?
160-
Use the information in the preceding sections to determine if the Dependency agent is installed and working properly.
164+
### Is the Dependency Agent installed?
165+
166+
Use the information in the preceding sections to determine if the Dependency Agent is installed and working properly.
161167

162168
### Are you on the Log Analytics free tier?
169+
163170
The [Log Analytics free tier](https://azure.microsoft.com/pricing/details/monitor/) is a legacy pricing plan that allows for up to five unique Service Map machines. Any subsequent machines won't appear in Service Map, even if the prior five are no longer sending data.
164171

165172
### Is your virtual machine sending log and performance data to Azure Monitor Logs?
173+
166174
Use the log query in the [Performance view has no data](#performance-view-has-no-data) section to determine if data is being collected for the virtual machine. If no data is being collected, use the TestCloudConnectivity tool to determine if you have connectivity issues.
167175

168176
## Virtual machine appears in the Map view but has missing data
169-
If the virtual machine is in the **Map** view, the Dependency agent is installed and running, but the kernel driver didn't load, check the log file at the following locations:
170177

171-
| Operating system | Log |
178+
If the virtual machine is in the **Map** view, the Dependency Agent is installed and running, but the kernel driver didn't load, check the log file at the following locations:
179+
180+
| Operating system | Log |
172181
|:---|:---|
173182
| Windows | C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log |
174183
| Linux | /var/opt/microsoft/dependency-agent/log/service.log |
175184

176185
The last lines of the file should indicate why the kernel didn't load. For example, the kernel might not be supported on Linux if you updated your kernel.
177186

178-
## Next steps
187+
## Related content
179188

180-
For more information on onboarding VM insights agents, see [Enable VM insights overview](vminsights-enable-overview.md).
189+
- [Enable VM insights overview](vminsights-enable-overview.md).
190+
- [Troubleshoot issues with the Log Analytics agent for Windows](../agents/agent-windows-troubleshoot.md)
191+
- [Troubleshoot issues with the Log Analytics agent for Linux](../agents/agent-linux-troubleshoot.md)

0 commit comments

Comments
 (0)