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
## Basic troubleshooting steps (installation, agent not running, configuration issues)
15
-
16
15
Follow the steps below to troubleshoot the latest version of the Azure Monitor agent running on your Windows virtual machine:
17
16
18
-
1.**Carefully review the [prerequisites here](./azure-monitor-agent-manage.md#prerequisites).**
17
+
1.**Carefully review the [prerequisites here](./azure-monitor-agent-manage.md#prerequisites).**
19
18
20
-
2.**Verify that the extension was successfully installed and provisioned, which installs the agent binaries on your machine**:
21
-
1. Open Azure portal > select your virtual machine > Open **Settings** : **Extensions + applications** from the pane on the left > 'AzureMonitorWindowsAgent'should show up with Status: 'Provisioning succeeded'
22
-
2. If not, check if machine can reach Azure and find the extension to install using the command below:
19
+
2.**Verify that the extension was successfully installed and provisioned, which installs the agent binaries on your machine**:
20
+
1. Open Azure portal > select your virtual machine > Open **Settings** : **Extensions + applications** from the pane on the left > 'AzureMonitorWindowsAgent'should show up with Status: 'Provisioning succeeded'
21
+
2. If not, check if machine can reach Azure and find the extension to install using the command below:
23
22
```azurecli
24
23
az vm extension image list-versions --location <machine-region> --name AzureMonitorWindowsAgent --publisher Microsoft.Azure.Monitor
25
24
```
26
-
3. Wait for 10-15 minutes as extension maybe in transitioning status. If it still doesn't show up, [uninstall and install the extension](./azure-monitor-agent-manage.md) again and repeat the verification to see the extension show up.
27
-
4. If not, check if you see any errors in extension logs located at `C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent` on your machine
28
-
29
-
3. **Verify that the agent is running**:
25
+
3. Wait for 10-15 minutes as extension maybe in transitioning status. If it still doesn't show up, [uninstall and install the extension](./azure-monitor-agent-manage.md) again and repeat the verification to see the extension show up.
26
+
4. If not, check if you see any errors in extension logs located at `C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Monitor.AzureMonitorWindowsAgent` on your machine
27
+
28
+
3. **Verify that the agent is running**:
30
29
1. Check if the agent is emitting heartbeat logs to Log Analytics workspace using the query below. Skip if 'Custom Metrics' is the only destination in the DCR:
31
-
```kusto
32
-
Heartbeat | where Category == "Azure Monitor Agent" and Computer == "<computer-name>" | take 10
30
+
```Kusto
31
+
Heartbeat | where Category == "Azure Monitor Agent" and 'Computer' == "<computer-name>" | take 10
33
32
```
34
-
2. If not, open Task Manager and check if 'MonAgentCore.exe' process is running. If it is, wait for 5 minutes for heartbeat to show up.
35
-
3. If not, check if you see any errors in core agent logs located at `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Configuration` on your machine
36
-
37
-
4. **Verify that the DCR exists and is associated with the virtual machine:**
38
-
1. If using Log Analytics workspace as destination, verify that DCR exists in the same physical region as the Log Analytics workspace.
33
+
2. If not, open Task Manager and check if 'MonAgentCore.exe' process is running. If it is, wait for 5 minutes for heartbeat to show up.
34
+
3. If not, check if you see any errors in core agent logs located at `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Configuration` on your machine
35
+
36
+
4. **Verify that the DCR exists and is associated with the virtual machine:**
37
+
1. If using Log Analytics workspace as destination, verify that DCR exists in the same physical region as the Log Analytics workspace.
39
38
2. On your virtual machine, verify the existence of the file `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\mcs\mcsconfig.latest.xml`. If this file doesn't exist:
40
-
* The virtual machine may not be associated with a DCR. See step 3
41
-
* The virtual machine may not have Managed Identity enabled. [See here](../../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md#enable-system-assigned-managed-identity-during-creation-of-a-vm) on how to enable.
42
-
* IMDS service isn't running/accessible from the virtual machine. [Check if you can access IMDS from the machine](../../virtual-machines/windows/instance-metadata-service.md?tabs=windows).
43
-
* AMA can't access IMDS. Check if you see IMDS errors in `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Tables\MAEventTable.tsf` file.
44
-
3. Open Azure portal > select your data collection rule > Open **Configuration** : **Resources** from the pane on the left > You should see the virtual machine listed here
39
+
- The virtual machine may not be associated with a DCR. See step 3
40
+
- The virtual machine may not have Managed Identity enabled. [See here](../../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md#enable-system-assigned-managed-identity-during-creation-of-a-vm) on how to enable.
41
+
- IMDS service isn't running/accessible from the virtual machine. [Check if you can access IMDS from the machine](../../virtual-machines/windows/instance-metadata-service.md?tabs=windows).
42
+
- AMA can't access IMDS. Check if you see IMDS errors in `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\Tables\MAEventTable.tsf` file.
43
+
3. Open Azure portal > select your data collection rule > Open **Configuration** : **Resources** from the pane on the left > You should see the virtual machine listed here
45
44
4. If not listed, click 'Add' and select your virtual machine from the resource picker. Repeat across all DCRs.
46
45
47
-
5. **Verify that agent was able to download the associated DCR(s) from AMCS service:**
48
-
Check if you see the latest DCR downloaded at this location `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\mcs\configchunks`
49
-
46
+
5. **Verify that agent was able to download the associated DCR(s) from AMCS service:**
47
+
1. Check if you see the latest DCR downloaded at this location `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\mcs\configchunks`
48
+
50
49
## Issues collecting Performance counters
51
-
52
50
1. Check that your DCR JSON contains a section for 'performanceCounters'. If not, fix your DCR. See [how to create DCR](./azure-monitor-agent-data-collection.md) or [sample DCR](./data-collection-rule-sample-agent.md).
53
51
2. Check that the file `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\mcs\mcsconfig.lkg.xml` exists.
54
52
3. Open the file and check if it contains `CounterSet` nodes as shown in the example below:
@@ -63,8 +61,8 @@ Follow the steps below to troubleshoot the latest version of the Azure Monitor a
63
61
</CounterSet>
64
62
```
65
63
66
-
### Issues using 'Custom Metrics' as destination
67
64
65
+
### Issues using 'Custom Metrics' as destination
68
66
1. Carefully review the [prerequisites here](./azure-monitor-agent-manage.md#prerequisites).
69
67
2. Ensure that the associated DCR is correctly authored to collect performance counters and send them to Azure Monitor metrics. You should see this section in your DCR:
70
68
```json
@@ -86,7 +84,6 @@ Follow the steps below to troubleshoot the latest version of the Azure Monitor a
86
84
2. Open it and look for any Level 2 errors and try to fix them.
87
85
88
86
## Issues collecting Windows event logs
89
-
90
87
1. Check that your DCR JSON contains a section for 'windowsEventLogs'. If not, fix your DCR. See [how to create DCR](./azure-monitor-agent-data-collection.md) or [sample DCR](./data-collection-rule-sample-agent.md).
91
88
2. Check that the file `C:\WindowsAzure\Resources\AMADataStore.<virtual-machine-name>\mcs\mcsconfig.lkg.xml` exists.
92
89
3. Open the file and check if it contains `Subscription` nodes as shown in the example below:
Copy file name to clipboardExpand all lines: articles/azure-monitor/vm/vminsights-troubleshoot.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,17 @@ ms.custom: references_regions
9
9
10
10
---
11
11
12
-
# Troubleshoot VM insights
12
+
# Troubleshoot VM Insights
13
13
14
14
This article provides troubleshooting information to help you with problems that you might experience when you try to enable or use the VM Insights feature in Azure Monitor.
15
15
16
16
## Can't enable VM Insights on a machine
17
17
18
18
When you onboard an Azure virtual machine (VM) from the Azure portal, the following actions occur:
19
19
20
-
- A default Log Analytics workspace is created if you selected that option.
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.
20
+
* A default Log Analytics workspace is created if you selected that option.
21
+
* The Azure Monitor Agent is installed on the virtual machine through an extension, if the agent isn't 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
@@ -155,8 +155,8 @@ Heartbeat
155
155
156
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
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)
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)
160
160
161
161
## Virtual machine doesn't appear in the Map view
162
162
@@ -178,13 +178,13 @@ Use the log query in the [Performance view has no data](#performance-view-has-no
178
178
179
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:
180
180
181
-
| Operating system | Log |
182
-
|:---|:---|
183
-
| Windows | C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log |
184
-
| Linux | /var/opt/microsoft/dependency-agent/log/service.log |
| Windows | C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log |
184
+
| Linux | /var/opt/microsoft/dependency-agent/log/service.log|
185
185
186
186
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.
187
187
188
188
## Related content
189
189
190
-
- For more information on installing VM Insights agents, see [Enable VM Insights overview](vminsights-enable-overview.md)
190
+
* For more information on installing VM Insights agents, see [Enable VM Insights overview](vminsights-enable-overview.md)
0 commit comments