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
*[How to troubleshoot failing Artifacts in AzureDevTestLabs](http://www.visualstudiogeeks.com/blog/DevOps/How-to-troubleshoot-failing-artifacts-in-AzureDevTestLabs)
101
+
*[How to troubleshoot failing Artifacts in Azure DevTest Labs](devtest-lab-troubleshoot-artifact-failure.md)
102
102
*[Join a VM to existing AD Domain using ARM template in Azure Dev Test Lab](http://www.visualstudiogeeks.com/blog/DevOps/Join-a-VM-to-existing-AD-domain-using-ARM-template-AzureDevTestLabs)
Copy file name to clipboardexpand all lines: articles/devtest-lab/devtest-lab-artifact-author.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,13 @@ ms.author: tarcher
23
23
>
24
24
25
25
## Overview
26
-
**Artifacts** are used to deploy and configure your application after a VM is provisioned. An artifact consists of an artifact definition file and other script files that are stored in a folder in a git repository. Artifact definition files consist of JSON and expressions that you can use to specify what you want to install on a VM. For example, you can define the name of artifact, command to run, and parameters that are made available when the command is run. You can refer to other script files within the artifact definition file by name.
26
+
**Artifacts** are used to deploy and configure your application after a VM is provisioned. An artifact consists of an artifact definition file and other script files that are stored in a folder in a git repository. Artifact definition files consist of JSON and expressions that you can use to specify what you want to install on a VM. For example, you can define the name of an artifact, command to run, and parameters that are made available when the command is run. You can refer to other script files within the artifact definition file by name.
27
27
28
28
## Artifact definition file format
29
29
The following example shows the sections that make up the basic structure of a definition file.
@@ -59,7 +59,7 @@ The following example shows the sections that make up the basic structure of a d
59
59
### Artifact parameters
60
60
In the parameters section of the definition file, you specify which values a user can input when installing an artifact. You can refer to these values in the artifact install command.
61
61
62
-
You define parameters will the following structure.
62
+
You define parameters with the following structure.
63
63
64
64
"parameters": {
65
65
"<parameterName>": {
@@ -85,7 +85,7 @@ The allowed types are:
85
85
## Artifact expressions and functions
86
86
You can use expression and functions to construct the artifact install command.
87
87
Expressions are enclosed with brackets ([ and ]), and are evaluated when the artifact is installed. Expressions can appear anywhere in a JSON string value and always return another JSON value. If you need to use a literal string that starts with a bracket [, you must use two brackets [[.
88
-
Typically, you use expressions with functions to construct a value. Just like in JavaScript, function calls are formatted as functionName(arg1,arg2,arg3)
88
+
Typically, you use expressions with functions to construct a value. Just like in JavaScript, function calls are formatted as functionName(arg1,arg2,arg3).
89
89
90
90
The following list shows common functions.
91
91
@@ -95,19 +95,19 @@ The following list shows common functions.
95
95
The following example shows how to use expression and functions to construct a value.
Create your custom artifact by following steps below:
105
+
Create your custom artifact by following the steps below:
106
106
107
107
1. Install a JSON editor - You will need a JSON editor to work with artifact definition files. We recommend using [Visual Studio Code](https://code.visualstudio.com/), which is available for Windows, Linux and OS X.
108
-
2. Get a sample artifactfile.json - Check out the artifacts created by Azure DevTest Labs team at our [GitHub repository](https://github.com/Azure/azure-devtestlab) where we have created a rich library of artifacts that will help you create your own artifacts. Download an artifact definition file and make changes to it to create your own artifacts.
108
+
2. Get a sample artifactfile.json - Check out the artifacts created by Azure DevTest Labs team at our [GitHub repository](https://github.com/Azure/azure-devtestlab), where we have created a rich library of artifacts that will help you create your own artifacts. Download an artifact definition file and make changes to it to create your own artifacts.
109
109
3. Make use of IntelliSense - Leverage IntelliSense to see valid elements that can be used to construct an artifact definition file. You can also see the different options for values of an element. For example, IntelliSense show you the two choices of Windows or Linux when editing the **targetOsType** element.
110
-
4. Store the artifact in a git repository
110
+
4. Store the artifact in a [git repository](devtest-lab-add-artifact-repo.md).
111
111
112
112
1. Create a separate directory for each artifact where the directory name is the same as the artifact name.
113
113
2. Store the artifact definition file (artifactfile.json) in the directory you created.
@@ -116,12 +116,12 @@ Create your custom artifact by following steps below:
116
116
Here is an example of how an artifact folder might look:
5. Add the artifacts repository to the lab - Refer to the article, [Add a Git artifact repository to a lab](devtest-lab-add-artifact-repo.md).
119
+
5. Add the artifacts repository to the lab - Refer to the article, [Add a Git repository for artifacts and templates](devtest-lab-add-artifact-repo.md).
*[How to troubleshoot failing Artifacts in AzureDevTestLabs](http://www.visualstudiogeeks.com/blog/DevOps/How-to-troubleshoot-failing-artifacts-in-AzureDevTestLabs)
123
+
## Related articles
124
+
*[How to diagnose artifact failures in DevTest Labs](devtest-lab-troubleshoot-artifact-failure.md)
125
125
*[Join a VM to existing AD Domain using ARM template in Azure Dev Test Lab](http://www.visualstudiogeeks.com/blog/DevOps/Join-a-VM-to-existing-AD-domain-using-ARM-template-AzureDevTestLabs)
Copy file name to clipboardexpand all lines: articles/devtest-lab/devtest-lab-faq.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -246,7 +246,7 @@ A Microsoft account is what you use for almost everything you do with Microsoft
246
246
>
247
247
248
248
### My artifact failed during VM creation. How do I troubleshoot it?
249
-
Refer to the blog post, [How to troubleshoot failing Artifacts in AzureDevTestLabs](http://www.visualstudiogeeks.com/blog/DevOps/How-to-troubleshoot-failing-artifacts-in-AzureDevTestLabs) – written by one of our MVPs – to learn how to obtain logs regarding your failed artifact.
249
+
Refer to [How to diagnose artifact failures in DevTest Labs](devtest-lab-troubleshoot-artifact-failure.md) to learn how to obtain logs regarding your failed artifact.
250
250
251
251
### Why isn't my existing virtual network saving properly?
252
252
One possibility is that your virtual network name contains periods. If so, try removing the periods or replacing them with hyphens, and then try saving the virtual network again.
title: Diagnose artifact failures in DevTest Labs VM | Microsoft Docs
3
+
description: Learn how to troubleshoot artifact failures in DevTest Labs
4
+
services: devtest-lab,virtual-machines
5
+
documentationcenter: na
6
+
author: tomarcher
7
+
manager: douge
8
+
editor: ''
9
+
10
+
ms.assetid: 115e0086-3293-4adf-8738-9f639f31f918
11
+
ms.service: devtest-lab
12
+
ms.workload: na
13
+
ms.tgt_pltfrm: na
14
+
ms.devlang: na
15
+
ms.topic: article
16
+
ms.date: 08/18/2017
17
+
ms.author: tarcher
18
+
19
+
---
20
+
# Diagnose artifact failures in the lab
21
+
After you have created an artifact, you can check to see if it succeeded or failed. Artifact logs in DevTest Labs provide information you can use to diagnose an artifact failure. There are a couple different ways you can view the artifact log information for a Windows VM.
22
+
23
+
> [!NOTE]
24
+
> To ensure that failures are correctly identified and explained, it is important that the artifact definition file is properly structured. For information about how to correctly construct an artifact definition file, see [Create custom artifacts](devtest-lab-artifact-author.md). And to see an example of a properly structured file, checkout this [artifact JSON file](https://github.com/Azure/azure-devtestlab/blob/master/Artifacts/windows-test-paramtypes/artifactfile.json).
25
+
26
+
## Troubleshoot artifact failures using the Azure portal
27
+
To use the Azure portal to diagnose failures during artifact creation, follow these steps:
28
+
29
+
1) From the list of resources, select your lab.
30
+
1) Choose the Windows VM that includes the artifact you want to investigate.
31
+
1) In the main blade under **GENERAL**, choose **Artifacts**.
32
+
33
+
A list of artifacts associated with that VM appears, indicating the name of the artifact and its status.
*[Join a VM to existing AD Domain using ARM template in Azure Dev Test Lab](http://www.visualstudiogeeks.com/blog/DevOps/Join-a-VM-to-existing-AD-domain-using-ARM-template-AzureDevTestLabs)
62
+
63
+
## Next steps
64
+
* Learn how to [add a Git repository to a lab](devtest-lab-add-artifact-repo.md).
0 commit comments