Skip to content

Commit 9a31b3f

Browse files
authored
Merge pull request #269713 from RoseHJM/dtl-gh-troubleshooting
DTL - GH issues updates.
2 parents d497257 + 535dbbb commit 9a31b3f

File tree

8 files changed

+50
-28
lines changed

8 files changed

+50
-28
lines changed
99.3 KB
Loading
64.4 KB
Loading
105 KB
Loading
70.6 KB
Loading
-50.2 KB
Loading
-103 KB
Loading
4.85 KB
Loading

articles/devtest-labs/troubleshoot-vm-environment-creation-failures.md

Lines changed: 50 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,42 @@ description: Learn how to troubleshoot virtual machine (VM) and environment crea
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 06/26/2020
7+
ms.date: 03/20/2020
88
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.
910
---
1011

1112
# 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.
1314

1415
## 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.
1617

17-
![Azure portal notification](./media/troubleshoot-vm-environment-creation-failures/portal-notification.png)
18+
:::image type="content" source="media/troubleshoot-vm-environment-creation-failures/portal-notification.png" alt-text="Screenshot showing Azure portal notifications." lightbox="media/troubleshoot-vm-environment-creation-failures/portal-notification.png":::
1819

19-
### VM in corruption state
20-
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.
2122

22-
![VM in corrupted state](./media/troubleshoot-vm-environment-creation-failures/vm-corrupted-state.png)
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":::
2324

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.
2427

28+
## Activity log for lab configuration and policies
2529

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:
2831

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.
3035

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.
3539

36-
![Activity log for a VM](./media/troubleshoot-vm-environment-creation-failures/vm-activity-log.png)
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.
3843

3944
```json
4045
"properties": {
@@ -43,27 +48,44 @@ Look at activity logs if you're investigating a failure sometime after attemptin
4348
},
4449
```
4550

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+
4663
## Activity log for an environment
4764

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:
4966

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**.
5474

55-
![Environment activity log](./media/troubleshoot-vm-environment-creation-failures/envirionment-activity-log.png)
75+
:::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":::
5676

5777
## 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.
5980

6081
To see the lab template deployment logs, follow these steps:
6182

6283
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.
6788

6889
## 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

Comments
 (0)