Skip to content

Commit 9454b1d

Browse files
committed
edit pass: vminsights-troubleshoot
1 parent 1df1b03 commit 9454b1d

File tree

1 file changed

+49
-50
lines changed

1 file changed

+49
-50
lines changed
Lines changed: 49 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Troubleshoot VM insights
3-
description: Get troubleshooting information for installation of VM insights.
3+
description: Get troubleshooting information about agent installation and the use of VM insights in Azure Monitor.
44
ms.topic: conceptual
55
author: guywi-ms
66
ms.author: guywild
@@ -18,12 +18,12 @@ This article provides troubleshooting information to help you with problems that
1818
When you onboard an Azure virtual machine from the Azure portal, the following actions occur:
1919

2020
- 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.
21+
- The Azure Monitor Agent is installed on the virtual machine through an extension, if the agent is already installed.
22+
- The Dependency Agent is installed on the virtual machine through an extension, if it's required.
2323

2424
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.
2525

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.
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 problem persists, see the following sections for possible causes.
2727

2828
### Is the virtual machine running?
2929

@@ -34,11 +34,11 @@ If the virtual machine has been turned off for a while, is off currently, or was
3434
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.
3535

3636
> [!IMPORTANT]
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.
37+
> If a virtual machine that you onboarded on or after April 11, 2022, 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 virtual machines that you onboarded before April 11, 2022.
3838
3939
### Was the extension installed properly?
4040

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.
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:
4242

4343
| Operating system | Agents |
4444
|:---|:---|
@@ -47,119 +47,120 @@ If you still see a message that the virtual machine needs to be onboarded, it mi
4747

4848
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.
4949

50-
### Do you have connectivity issues?
50+
### Do you have connectivity problems?
5151

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.
52+
For Windows machines, you can use the TestCloudConnectivity tool to identify a connectivity problem. This tool is installed by default with the agent in the folder *%SystemDrive%\Program Files\Microsoft Monitoring Agent\Agent*.
5353

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":::
54+
Run the tool from an elevated command prompt. It returns results and highlights where the test fails.
5555

56-
## DCR created by the VM insights process was modified and now data is missing
56+
:::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.":::
5757

58-
### Identify the issue
58+
## DCR created by the VM insights process was modified and now data is missing
5959

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

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.
62+
To identify whether a data collection rule (DCR) was modified, go to the Azure Monitor dashboard and locate the DCR. View the JSON properties by using the **JSON View** link on the upper-right side of the overview pane.
6563

66-
![Screenshot of JSON for a data collection rule.](media/vminsights-troubleshoot/dcr-overview.png)
64+
:::image type="content" source="media/vminsights-troubleshoot/dcr-overview.png" lightbox="media/vminsights-troubleshoot/dcr-overview.png" alt-text="Screenshot of JSON for a data collection rule.":::
6765

68-
In this example, the original stream name was changed to reflect the name of the performance counter stream.
66+
In this example, the original stream name was changed to reflect the name of the performance counter stream.
6967

70-
![Screenshot that shows a changed stream name in a data collection rule.](media/vminsights-troubleshoot/dcr-json.png)
68+
:::image type="content" source="media/vminsights-troubleshoot/dcr-json.png" lightbox="media/vminsights-troubleshoot/dcr-json.png" alt-text="Screenshot that shows a changed stream name in a data collection rule.":::
7169

72-
Although the counter sections are pointing the `perf` table, the stream dataflow is still configured for the proper destination `Microsoft-InsightsMetrics`.
70+
Although the counter sections are pointing the `perf` table, the stream dataflow is still configured for the proper destination `Microsoft-InsightsMetrics`.
7371

74-
### Resolve the issue
72+
### Resolve the problem
7573

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.
74+
You can't resolve this problem 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.
7775

7876
#### Export the DCR and save locally
7977

8078
1. On the Azure Monitor dashboard, go to the DCR.
8179

8280
2. Select **Export template**.
8381

84-
![Screenshot of the menu option to export a template for a data collection rule.](media/vminsights-troubleshoot/dcr-export.png)
82+
:::image type="content" source="media/vminsights-troubleshoot/dcr-export.png" lightbox="media/vminsights-troubleshoot/dcr-export.png" alt-text="Screenshot of the menu option to export a template for a data collection rule.":::
8583

8684
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.
8785

88-
![Screenshot of the button for downloading a template for a data collection rule.](media/vminsights-troubleshoot/template-download.png)
86+
:::image type="content" source="media/vminsights-troubleshoot/template-download.png" lightbox="media/vminsights-troubleshoot/template-download.png" alt-text="Screenshot of the button for downloading a template for a data collection rule.":::
8987

9088
4. Select **Open file**.
9189

92-
![Screenshot that shows the link for opening a downloaded file package.](media/vminsights-troubleshoot/downloads.png)
90+
:::image type="content" source="media/vminsights-troubleshoot/downloads.png" lightbox="media/vminsights-troubleshoot/downloads.png" alt-text="Screenshot that shows the link for opening a downloaded file package.":::
9391

9492
5. Copy the two .json files to a local folder.
9593

96-
![Screenshot that shows parameter and template files copied to a local folder.](media/vminsights-troubleshoot/copy-file.png)
94+
:::image type="content" source="media/vminsights-troubleshoot/copy-file.png" lightbox="media/vminsights-troubleshoot/copy-file.png" alt-text="Screenshot that shows parameter and template files copied to a local folder.":::
9795

9896
#### Modify the template
9997

10098
1. Open the template file in the editor of your choice. Then locate the invalid stream name under the performance counter data source.
10199

102-
![Screenshot of a template file.](media/vminsights-troubleshoot/update-template.png)
100+
:::image type="content" source="media/vminsights-troubleshoot/update-template.png" lightbox="media/vminsights-troubleshoot/update-template.png" alt-text="Screenshot of a template file.":::
103101

104-
2. Using the valid stream name from the dataflow node, fix the invalid reference. Then save and close your file.
102+
2. By using the valid stream name from the dataflow node, fix the invalid reference. Then save and close your file.
105103

106-
![Screenshot of an updated stream name in a template file.](media/vminsights-troubleshoot/correct-template.png)
104+
:::image type="content" source="media/vminsights-troubleshoot/correct-template.png" lightbox="media/vminsights-troubleshoot/correct-template.png" alt-text="Screenshot of an updated stream name in a template file.":::
107105

108106
#### Import the template by using the custom deployment feature
109107

110108
1. Back in the portal, search for and then select **Deploy a custom template**.
111109

112-
![Screenshot of search results for the service that deploys a custom template.](media/vminsights-troubleshoot/deploy-template.png)
110+
:::image type="content" source="media/vminsights-troubleshoot/deploy-template.png" lightbox="media/vminsights-troubleshoot/deploy-template.png" alt-text="Screenshot of search results for the service that deploys a custom template.":::
113111

114112
2. On the **Custom deployment** pane, select **Build your own template in the editor**.
115113

116-
![Screenshot of the option to build your own template in the editor.](media/vminsights-troubleshoot/build-template.png)
114+
:::image type="content" source="media/vminsights-troubleshoot/build-template.png" lightbox="media/vminsights-troubleshoot/build-template.png" alt-text="Screenshot of the option to build your own template in the editor.":::
117115

118-
3. Select **Load file**, and then browse to your saved template and parameter file.
116+
3. Select **Load file**, and then browse to your saved template and parameter files.
119117

120-
![Screenshot of Load File.](media/vminsights-troubleshoot/load-file.png)
118+
:::image type="content" source="media/vminsights-troubleshoot/load-file.png" lightbox="media/vminsights-troubleshoot/load-file.png" alt-text="Screenshot of the button for loading a file.":::
121119

122-
4. Visually inspect the template to validate the change is in place and select the Save button.
120+
4. Visually inspect the template to validate that the change is in place, and then select **Save**.
123121

124-
![Screenshot of Edit Template.](media/vminsights-troubleshoot/save-template.png)
122+
:::image type="content" source="media/vminsights-troubleshoot/save-template.png" lightbox="media/vminsights-troubleshoot/save-template.png" alt-text="Screenshot of the pane for editing a template.":::
125123

126-
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.
124+
5. The portal uses the parameter file to fill in the deployment options (which can be changed or left intact to overwrite the existing DCR). When the portal completes the process, select the **Review + create** button.
127125

128-
![Screenshot of Custom Deployment.](media/vminsights-troubleshoot/deploy.png)
126+
:::image type="content" source="media/vminsights-troubleshoot/deploy.png" lightbox="media/vminsights-troubleshoot/deploy.png" alt-text="Screenshot of the pane for custom deployment.":::
129127

130-
6. After validation then we can select the Create button to finalize the deployment.
128+
6. After validation, select **Create** to finish the deployment.
131129

132-
![Screenshot of Create Deployment.](media/vminsights-troubleshoot/create-deployment.png)
130+
:::image type="content" source="media/vminsights-troubleshoot/create-deployment.png" lightbox="media/vminsights-troubleshoot/create-deployment.png" alt-text="Screenshot of the button for creating a custom deployment.":::
133131

134-
7. After the deployment is complete, we can browse to the DCR again and review the JSON in overview blade:
132+
7. After the deployment is complete, browse to the DCR again and review the JSON in the overview pane.
135133

136-
![Screenshot of Review JSON.](media/vminsights-troubleshoot/updated-json.png)
134+
:::image type="content" source="media/vminsights-troubleshoot/updated-json.png" lightbox="media/vminsights-troubleshoot/updated-json.png" alt-text="Screenshot of the pane for reviewing JSON.":::
137135

138-
8. The agent will detect this change and download the new configuration, and this should restore ingestion to the insight metrics table.
136+
8. The agent detects the change and downloads the new configuration, which restores ingestion to the `Microsoft-InsightsMetrics` table.
139137

140138
## Performance view has no data
141139

142-
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.
140+
If the agents appear to be installed correctly but no data appears in the **Performance** view, see the following sections for possible causes.
143141

144142
### Has your Log Analytics workspace reached its data limit?
145143

146144
Check the [capacity reservations and the pricing for data ingestion](https://azure.microsoft.com/pricing/details/monitor/).
147145

148146
### Is your virtual machine agent connected to Azure Monitor Logs?
149147

150-
Open Log Analytics from **Logs** in the Azure Monitor menu in the Azure portal. Run the following query for your computer:
148+
In the Azure portal, on the **Azure Monitor** menu, select **Logs** to open the Log Analytics workspace. Run the following query for your computer:
151149

152150
```kusto
153151
Heartbeat
154152
| where Computer == "my-computer"
155153
| sort by TimeGenerated desc
156154
```
157155

158-
If you don't see any data or if the computer hasn't sent a heartbeat recently, you might have problems with your agent. See the preceding section for agent troubleshooting information.
156+
If no data appears or if the computer didn't send a heartbeat recently, you might have problems with your agent. For agent troubleshooting information, see these articles:
157+
158+
- [Troubleshoot issues with the Log Analytics agent for Windows](../agents/agent-windows-troubleshoot.md)
159+
- [Troubleshoot issues with the Log Analytics agent for Linux](../agents/agent-linux-troubleshoot.md)
159160

160161
## Virtual machine doesn't appear in the Map view
161162

162-
See the following sections for issues with the **Map** view.
163+
The following sections help you resolve problems with the **Map** view.
163164

164165
### Is the Dependency Agent installed?
165166

@@ -171,11 +172,11 @@ The [Log Analytics free tier](https://azure.microsoft.com/pricing/details/monito
171172

172173
### Is your virtual machine sending log and performance data to Azure Monitor Logs?
173174

174-
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.
175+
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 problems.
175176

176177
## Virtual machine appears in the Map view but has missing data
177178

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+
If the virtual machine is in the **Map** view and the Dependency Agent is installed and running, but the kernel driver didn't load, check the log file at the following locations:
179180

180181
| Operating system | Log |
181182
|:---|:---|
@@ -186,6 +187,4 @@ The last lines of the file should indicate why the kernel didn't load. For examp
186187

187188
## Related content
188189

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)
190+
- For more information about installing VM insights agents, see [Enable VM insights overview](vminsights-enable-overview.md)

0 commit comments

Comments
 (0)