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/devtest-lab-upload-vhd-using-azcopy.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,35 +19,37 @@ For more information about disks and VHDs in Azure, see [Introduction to managed
19
19
>
20
20
> AzCopy is a Windows-only command-line utility.
21
21
22
-
## Upload a VHD file
22
+
## Prerequisites
23
+
24
+
-[Download and install the latest version of AzCopy](https://aka.ms/downloadazcopy)
23
25
24
-
To upload a VHD file to Azure DevTest Labs by using [AzCopy](https://aka.ms/downloadazcopy):
26
+
- Get the name of the lab's storage account by using the Azure portal:
25
27
26
-
1.[Download and install the latest version of AzCopy](https://aka.ms/downloadazcopy).
28
+
1.Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
27
29
28
-
1.Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
30
+
1.Select **All resources**, and then select your lab.
29
31
30
-
1.Select **All resources**, and then select your lab.
32
+
1.In the lab menu under **Settings**, select **Configuration and policies**.
31
33
32
-
1. In the lab menu under **Settings**, select **Configuration and policies**.
34
+
1. In **Activity log**, in the resource menu under **Virtual machine bases**, select **Custom images**.
33
35
34
-
1. In **Activity log**, in the resource menu under **Virtual machine bases**, select **Custom images**.
36
+
1. In **Custom images**, select **Add**.
35
37
36
-
1. In **Custom images**, select **Add**.
38
+
1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link.
37
39
38
-
1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link.
40
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-azcopy/upload-image-powershell.png" alt-text="Screenshot that shows settings to upload a VHD by using PowerShell on the Custom image pane.":::
39
41
40
-
:::image type="content" source="media/devtest-lab-upload-vhd-using-azcopy/upload-image-powershell.png" alt-text="Screenshot that shows settings to upload a VHD by using PowerShell on the Custom image pane.":::
42
+
1. In **Upload an image using PowerShell**, scroll right to see a call to the Add-AzureRmVhd cmdlet.
41
43
42
-
1. In **Upload an image using PowerShell**, scroll right to see a call to the Add-AzureRmVhd cmdlet.
44
+
The `-Destination` parameter contains the URI for a blob container in the following format:
43
45
44
-
The `-Destination` parameter contains the URI for a blob container in the following format:
:::image type="content" source="media/devtest-lab-upload-vhd-using-azcopy/destination-parameter.png" alt-text="Screenshot that shows an example of a URI in the Add VHD box.":::
47
49
48
-
:::image type="content" source="media/devtest-lab-upload-vhd-using-azcopy/destination-parameter.png" alt-text="Screenshot that shows an example of a URI in the Add VHD box.":::
50
+
1. Copy the storage account name to use in the following steps.
49
51
50
-
Copy the full `-Destination` URI to use in a later step.
52
+
## Upload a VHD file
51
53
52
54
1. In Windows, open a Command Window and go to the AzCopy installation directory. By default, AzCopy is installed in *ProgramFiles(x86)\Microsoft SDKs\Azure\AzCopy*.
In Azure DevTest Labs, you can use VHD files to create custom images for provisioning virtual machines. This article describes how to use [Microsoft Azure Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md) to upload a VHD file to a lab's storage account. Once you upload the VHD file to DevTest Labs, you can [create a custom image](devtest-lab-create-custom-image-from-vhd-using-powershell.md) from the uploaded file. For more information about disks and VHDs in Azure, see [Introduction to managed disks](../virtual-machines/managed-disks-overview.md).
14
+
In this article, learn how to use [Azure Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md) to upload a VHD file to a lab storage account in Azure DevTest Labs. After you upload your VHD file, you can create a custom image from the uploaded VHD fileand use the image to provision a virtual machine.
15
15
16
-
Storage Explorer supports several connection options. This article describes connecting to a storage account associated with your Azure subscription. For information about other Storage Explorer connection options, see [Getting started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md).
16
+
For more information about disks and VHDs in Azure, see [Introduction to managed disks](../virtual-machines/managed-disks-overview.md).
17
+
18
+
Storage Explorer supports several connection options. This article describes how to connect to a storage account that's associated with your Azure subscription. For information about other Storage Explorer connection options, see [Get started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md).
17
19
18
20
## Prerequisites
19
21
20
-
-[Download and install the latest version of Microsoft Azure Storage Explorer](https://www.storageexplorer.com).
22
+
-[Download and install the latest version of Azure Storage Explorer](https://www.storageexplorer.com).
21
23
22
24
- Get the name of the lab's storage account by using the Azure portal:
23
25
@@ -43,47 +45,45 @@ Storage Explorer supports several connection options. This article describes con
43
45
44
46
:::image type="content" source="media/devtest-lab-upload-vhd-using-azcopy/destination-parameter.png" alt-text="Screenshot that shows an example of a URI in the Add VHD box.":::
45
47
46
-
Copy the full `-Destination` URI to use in a later step.
47
-
48
48
1. Copy the storage account name to use in the following steps.
49
49
50
50
## Upload a VHD file
51
51
52
52
1. When you open Storage Explorer, the Explorer pane shows all the Azure subscriptions you're signed in to.
53
53
54
-
If you need to add a different account, select the **Account Management** icon. In the **Account Management** pane, select **Add an account**.
54
+
If you need to add a different account, select the **Account Management** icon. In **Account Management**, select **Add an account**.
55
55
56
-

56
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/add-account-link.png" alt-text="Screenshot that shows Add an account in the Account Management pane.":::
57
57
58
58
Follow the prompts to sign in with the Microsoft account associated with your Azure subscription.
59
59
60
-
1. After you sign in, the **Explorer** pane shows the Azure subscriptions associated with your account. Select the dropdown arrow next to the Azure subscription you want to use. The left pane shows the storage accounts associated with the selected Azure subscription.
61
-
62
-

60
+
1. After you sign in, the Explorer pane shows the Azure subscriptions associated with your account. Select the dropdown arrow next to the Azure subscription you want to use. The left pane shows the storage accounts associated with the selected Azure subscription.
63
61
62
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/storage-accounts-list.png" alt-text="Screenshot that shows the storage accounts for a selected Azure subscription.":::
63
+
64
64
1. Select the dropdown arrow next to the lab storage account name you saved earlier.
65
65
66
-
1. Expand the **Blob Containers** node, and then select **uploads**.
66
+
1. Expand **Blob Containers**, and then select **uploads**.
67
67
68
-

68
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/upload-dir.png" alt-text="Screenshot that shows the expanded Blob Containers node with the uploads directory.":::
69
69
70
-
1. In the Storage Explorer right pane, on the blob editor toolbar, select **Upload**, and then select **Upload Files**.
70
+
1. In the Storage Explorer right pane, on the blob editor toolbar, select **Upload**, and then select **Upload Files**.
71
71
72
-

72
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/upload-button.png" alt-text="Screenshot that shows the Upload button and Upload Files.":::
73
73
74
-
1. In the **Upload Files** dialog box, select **...** next to the **Selected files** field, browse to the VHD file on your machine, select it, and then select **Open**.
74
+
1. In the **Upload Files** dialog, select **...** next to **Selected files**. Bowse to the VHD file on your computer, select the file, and then select **Open**.
75
75
76
-
1.Under**Blob type**, change **Block Blob** to **Page Blob**.
76
+
1.In**Blob type**, change **Block Blob** to **Page Blob**.
77
77
78
78
1. Select **Upload**.
79
79
80
-

80
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/upload-file.png" alt-text="Screenshot that shows the Upload Files dialog box.":::
81
81
82
-
The **Activities** pane at the bottom shows upload status. Uploading the VHD file can take a long time, depending on the size of the VHD file and your connection speed.
82
+
The **Activities** pane at the bottom shows upload status. Uploading the VHD file might take a long time, depending on the size of the VHD file and your connection speed.
83
83
84
-

84
+
:::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/upload-status.png" alt-text="Screenshot that shows the Activities pane with upload status.":::
85
85
86
86
## Next steps
87
87
88
-
-[Create a custom image in Azure DevTest Labs from a VHD file using the Azure portal](devtest-lab-create-template.md)
89
-
-[Create a custom image in Azure DevTest Labs from a VHD file using PowerShell](devtest-lab-create-custom-image-from-vhd-using-powershell.md)
88
+
-Learn how to [create a custom image in Azure DevTest Labs from a VHD file by using the Azure portal](devtest-lab-create-template.md).
89
+
-Learn how to [create a custom image in Azure DevTest Labs from a VHD file using PowerShell](devtest-lab-create-custom-image-from-vhd-using-powershell.md).
0 commit comments