Diagnose artifact failures in the lab
After you have created an artifact, you can check to see whether it succeeded or failed. Artifact logs in Azure DevTest Labs provide information that you can use to diagnose an artifact failure. You have a couple of options for viewing the artifact log information for a Windows VM:
- In the Azure portal
- In the VM
To ensure that failures are correctly identified and explained, it's important that the artifact has the proper structure. For information about how to correctly construct an artifact, see Create custom artifacts. To see an example of a properly structured artifact, check out the Test parameter types artifact.
Troubleshoot artifact failures by using the Azure portal
In the Azure portal, in your list of resources, select your lab.
Choose the Windows VM that includes the artifact that you want to investigate.
In the left panel, under GENERAL, select Artifacts. A list of artifacts associated with that VM appears. The name of the artifact and the artifact status are indicated.
Select an artifact that shows a Failed status. The artifact opens. An extension message that includes details about the failure of the artifact is displayed.
Troubleshoot artifact failures from within the virtual machine
Sign in to the VM that contains the artifact you want to diagnose.
Go to C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.9\Status, where 1.9 is the Azure Custom Script Extension version number.
Open the status file.
Get started with Azure DevTest Labs
New to Azure? Create a free Azure account.
Already on Azure? Get started with your first lab in DevTest Labs.
Related blog posts
- Join a VM to an existing Active Directory domain by using a Resource Manager template in DevTest Labs
- Learn how to add a Git repository to a lab.
Send feedback about: