You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
4
ms.topic: conceptual
5
5
author: guywi-ms
6
6
ms.author: guywild
@@ -18,12 +18,12 @@ This article provides troubleshooting information to help you with problems that
18
18
When you onboard an Azure virtual machine from the Azure portal, the following actions occur:
19
19
20
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.
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.
23
23
24
24
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.
25
25
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.
27
27
28
28
### Is the virtual machine running?
29
29
@@ -34,11 +34,11 @@ If the virtual machine has been turned off for a while, is off currently, or was
34
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.
35
35
36
36
> [!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.
38
38
39
39
### Was the extension installed properly?
40
40
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:
42
42
43
43
| Operating system | Agents |
44
44
|:---|:---|
@@ -47,119 +47,120 @@ If you still see a message that the virtual machine needs to be onboarded, it mi
47
47
48
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.
49
49
50
-
### Do you have connectivity issues?
50
+
### Do you have connectivity problems?
51
51
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*.
53
53
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.
55
55
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.":::
57
57
58
-
### Identify the issue
58
+
##DCR created by the VM insights process was modified and now data is missing
59
59
60
-
To identify whether a data collection rule (DCR) was modified:
60
+
### Identify the problem
61
61
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.
65
63
66
-

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.":::
67
65
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.
69
67
70
-

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.":::
71
69
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`.
73
71
74
-
### Resolve the issue
72
+
### Resolve the problem
75
73
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.
77
75
78
76
#### Export the DCR and save locally
79
77
80
78
1. On the Azure Monitor dashboard, go to the DCR.
81
79
82
80
2. Select **Export template**.
83
81
84
-

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.":::
85
83
86
84
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.
87
85
88
-

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.":::
89
87
90
88
4. Select **Open file**.
91
89
92
-

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.":::
93
91
94
92
5. Copy the two .json files to a local folder.
95
93
96
-

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.":::
97
95
98
96
#### Modify the template
99
97
100
98
1. Open the template file in the editor of your choice. Then locate the invalid stream name under the performance counter data source.
101
99
102
-

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.":::
103
101
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.
105
103
106
-

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.":::
107
105
108
106
#### Import the template by using the custom deployment feature
109
107
110
108
1. Back in the portal, search for and then select **Deploy a custom template**.
111
109
112
-

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.":::
113
111
114
112
2. On the **Custom deployment** pane, select **Build your own template in the editor**.
115
113
116
-

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.":::
117
115
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.
119
117
120
-

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.":::
121
119
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**.
123
121
124
-

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.":::
125
123
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.
127
125
128
-

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.":::
129
127
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.
131
129
132
-

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.":::
133
131
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.
135
133
136
-

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.":::
137
135
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.
139
137
140
138
## Performance view has no data
141
139
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.
143
141
144
142
### Has your Log Analytics workspace reached its data limit?
145
143
146
144
Check the [capacity reservations and the pricing for data ingestion](https://azure.microsoft.com/pricing/details/monitor/).
147
145
148
146
### Is your virtual machine agent connected to Azure Monitor Logs?
149
147
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:
151
149
152
150
```kusto
153
151
Heartbeat
154
152
| where Computer == "my-computer"
155
153
| sort by TimeGenerated desc
156
154
```
157
155
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)
159
160
160
161
## Virtual machine doesn't appear in the Map view
161
162
162
-
See the following sections for issues with the **Map** view.
163
+
The following sections help you resolve problems with the **Map** view.
163
164
164
165
### Is the Dependency Agent installed?
165
166
@@ -171,11 +172,11 @@ The [Log Analytics free tier](https://azure.microsoft.com/pricing/details/monito
171
172
172
173
### Is your virtual machine sending log and performance data to Azure Monitor Logs?
173
174
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.
175
176
176
177
## Virtual machine appears in the Map view but has missing data
177
178
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:
179
180
180
181
| Operating system | Log |
181
182
|:---|:---|
@@ -186,6 +187,4 @@ The last lines of the file should indicate why the kernel didn't load. For examp
186
187
187
188
## Related content
188
189
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