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
Copy file name to clipboardExpand all lines: articles/devtest-labs/troubleshoot-vm-environment-creation-failures.md
+50-28Lines changed: 50 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,37 +4,42 @@ description: Learn how to troubleshoot virtual machine (VM) and environment crea
4
4
ms.topic: how-to
5
5
ms.author: rosemalcolm
6
6
author: RoseHJM
7
-
ms.date: 06/26/2020
7
+
ms.date: 03/20/2020
8
8
ms.custom: UpdateFrequency2
9
+
#customer intent: As a lab admin, I want to troubleshoot virtual machine (VM) and environment creation failures in Azure DevTest Labs so that I can resolve issues.
9
10
---
10
11
11
12
# Troubleshoot virtual machine (VM) and environment creation failures in Azure DevTest Labs
12
-
DevTest Labs gives you warnings if a machine name is invalid or if you're about to violate a lab policy. Sometimes, you see red `X` next to your lab VM or environment status that informs you that something went wrong. This article provides a few tricks that you can use to find the underlying issue and, hopefully, avoid the issue in the future.
13
+
DevTest Labs gives you warnings if a machine name is invalid or if you're about to violate a lab policy. Sometimes, you see red `X` next to your lab VM or environment status that informs you that something went wrong. This article provides a few tricks that you can use to find the underlying issue and, hopefully, avoid the issue in the future.
13
14
14
15
## Portal notifications
15
-
If you're using the Azure portal, the first place to look at is the **notifications panel**. The notifications panel, available on the main command bar by clicking the **bell icon**, will tell you whether the lab VM or environment creation was successful or not. If there was a failure, you see the error message associated with the creation failure. The details often give further information to help you resolve the issue. In the following example, the virtual machine creation failed because of running out of cores. The detailed message tells you how to fix the issue and request a core quota increase.
16
+
If you're using the Azure portal, the first place to look at is the **notifications panel**. The notifications panel, available on the main command bar by clicking the **bell icon**, tells you whether the lab VM or environment creation was successful or not. If there was a failure, you see the error message associated with the creation failure. The details often give further information to help you resolve the issue. In the following example, the virtual machine creation failed because you exceeded the limit of virtual machines allowed in the lab.
If you see the status of your VM in the lab as **Corrupted**, the underlying VM may have been deleted from the **Virtual Machine** page that user can navigate to from the **Virtual Machines** page (not from the DevTest Labs page). Clean up your lab in DevTest Labs by deleting the VM from the lab. Then, recreate your VM in the lab.
20
+
### VM in corrupted state
21
+
If you see the status of your VM in the lab as **Corrupted**, the underlying VM might have been deleted from the **Virtual Machine** page that user can navigate to from the **Virtual Machines** page (not from the DevTest Labs page). Clean up your lab in DevTest Labs by deleting the VM from the lab. Then, recreate your VM in the lab.
21
22
22
-

23
+
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/vm-corrupted-state.png" alt-text="Screenshot showing a VM in a corrupted state." lightbox="media/troubleshoot-vm-environment-creation-failures/vm-corrupted-state.png":::
23
24
25
+
## Activity logs
26
+
Look at activity logs if you're investigating a failure sometime after attempting the creation of your VM or environment. There are three types of activity logs available from the Lab page; logs for activities affecting lab configuration and policies, logs for VMs and logs for environments. The error you're troubleshooting might be in any one of these logs, depending on its source. This section shows you how to find these logs.
24
27
28
+
## Activity log for lab configuration and policies
25
29
26
-
## Activity logs
27
-
Look at activity logs if you're investigating a failure sometime after attempting the creation of your VM or environment. This section shows you how to find logs for VMs and environments.
30
+
Activity logs for configuration and policies show events generated by the lab configuration settings or any lab policies you set. In this example, you see the error that details the VM creation failure referenced in the [portal notification](#portal-notifications) shown earlier. To see the activity logs for lab configuration and policies, follow these steps:
28
31
29
-
## Activity logs for virtual machines
32
+
1. On the home page for your lab, select **Configuration and policies** on the left menu.
33
+
1. On the **Configuration and policies** page, select **Activity log** on the menu.
34
+
1. In the activity log items, expand the failed operation `Create a virtual machine`, then select the failed operation `Add or modify virtual machine` to see the details.
30
35
31
-
1. On the home page for your lab, select the VM to launch the **Virtual Machine** page.
32
-
2. On the **Virtual Machine** page, in the **MONITORING** section of the left menu, select **Activity log** to see all logs associated with the VM.
33
-
3. In the activity log items, select the operation that failed. Typically, the failed operation is called `Write Virtualmachines`.
34
-
4. In the right pane, switch to the JSON tab. You see the details in the JSON view of the log.
36
+
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/configuration-policies-activity-log.png" alt-text="Screenshot of Azure portal showing a Lab Configuration and policies activity log." lightbox="media/troubleshoot-vm-environment-creation-failures/configuration-policies-activity-log.png":::
37
+
38
+
1. In the right pane, switch to the JSON tab. You see the details in the JSON view of the log.
35
39
36
-

37
-
5. Look through the JSON log until you find the `statusMessage` property. It gives you the main error message and further detail information, if applicable. The following JSON is an example for the core quoted exceeded error seen earlier in this article.
40
+
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/configuration-policies-error-json.png" alt-text="Screenshot of Azure portal showing details of a Lab Configuration and policies activity log event in JSON." lightbox="media/troubleshoot-vm-environment-creation-failures/configuration-policies-error-json.png":::
41
+
42
+
1. Look through the JSON log until you find the `statusMessage` property. It gives you the main error message and further detail information, if applicable. The following JSON is an example for the core quoted exceeded error seen earlier in this article.
38
43
39
44
```json
40
45
"properties": {
@@ -43,27 +48,44 @@ Look at activity logs if you're investigating a failure sometime after attemptin
43
48
},
44
49
```
45
50
51
+
## Activity log for a virtual machine
52
+
53
+
Activity logs for virtual machines show events generated by the virtual machine, like starting and stopping. To see the activity logs for a virtual machine, follow these steps:
54
+
55
+
1. On the home page for your lab, select the VM to launch the **Virtual Machine** page.
56
+
1. On the **Virtual Machine** page, in the **General** section of the left menu, select **Activity log** to see all logs associated with the VM.
57
+
58
+
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/vm-activity-log.png" alt-text="Screenshot of Azure portal showing a virtual machine activity log." lightbox="media/troubleshoot-vm-environment-creation-failures/vm-activity-log.png":::
59
+
60
+
1. Select the event you're interested in to see the details.
61
+
1. To see the details of the event, switch to the JSON tab.
62
+
46
63
## Activity log for an environment
47
64
48
-
To see the activity log for an environment creation, follow these steps:
65
+
Activity logs for environments show events generated by the environment, like deployments. In this example, you see an error generated by a failed environment creation attempt. To see the activity log for an environment, follow these steps:
49
66
50
-
1. On the home page for your lab, select **Configuration and policies** on the left menu.
51
-
2. on the **Configuration and policies** page, select **Activity logs** on the menu.
52
-
3. Look for the failure in the activity list in the log and select it.
53
-
4. In the right pane, switch to the JSON tab, and look for the **statusMessage**.
67
+
1. On the home page for your lab, select the environment.
68
+
1. On the environment page, select **Activity log** on the left menu.
69
+
1. Look for the failure in the activity list in the log and select it.
70
+
71
+
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/environment-activity-log.png" alt-text="Screenshot of Azure portal showing an environment activity log." lightbox="media/troubleshoot-vm-environment-creation-failures/environment-activity-log.png":::
72
+
73
+
1. In the right pane, switch to the JSON tab, and look for the **statusMessage**.
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/environment-error-json.png" alt-text="Screenshot of Azure portal showing details of an environment activity log event in JSON." lightbox="media/troubleshoot-vm-environment-creation-failures/environment-error-json.png":::
56
76
57
77
## Resource Manager template deployment logs
58
-
If your environment or virtual machine was created through automation, there's one last place to look error information. That's the Azure Resource Manager template deployment log. When a lab resource is created through automation, it's often done through an Azure Resource Manager template deployment. See[https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates) for sample Azure Resource Manager templates that create DevTest Labs resources.
78
+
79
+
If your environment or virtual machine was created through automation, there's one last place to look error information; the Azure Resource Manager template deployment log. When a lab resource is often created through an Azure Resource Manager template deployment. See [https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/QuickStartTemplates) for sample Azure Resource Manager templates that create DevTest Labs resources.
59
80
60
81
To see the lab template deployment logs, follow these steps:
61
82
62
83
1. Launch the page for the resource group in which the lab exists.
63
-
2. Select **Deployments** on the left menu under **Settings**.
64
-
3. Look for deployments with a failed status and select it.
65
-
4. On the **Deployment** page, select **Operation details** link for the operation that failed.
66
-
5. You see details about the operation that failed in the **Operation details** window.
84
+
1. Select **Deployments** on the left menu under **Settings**.
85
+
1. Look for deployments with a failed status and select it.
86
+
1. On the **Deployment** page, select **Operation details** link for the operation that failed.
87
+
1. You see details about the operation that failed in the **Operation details** window.
67
88
68
89
## Next steps
69
-
See [Troubleshooting artifact failures](devtest-lab-troubleshoot-artifact-failure.md)
90
+
91
+
See [Troubleshooting artifact failures](devtest-lab-troubleshoot-artifact-failure.md).
0 commit comments