|
1 | 1 | ---
|
2 |
| -title: Upload VHD file to Azure DevTest Labs using Storage Explorer |
3 |
| -description: Upload VHD file to lab's storage account using Microsoft Azure Storage Explorer |
| 2 | +title: Upload a VHD file to by using Storage Explorer |
| 3 | +description: Upload a VHD file to a DevTest Labs lab storage account by using Microsoft Azure Storage Explorer. |
4 | 4 | ms.topic: how-to
|
5 |
| -ms.date: 06/26/2020 |
| 5 | +ms.date: 11/05/2021 |
6 | 6 | ---
|
7 | 7 |
|
8 |
| -# Upload VHD file to lab's storage account using Microsoft Azure Storage Explorer |
| 8 | +# Upload a VHD file to a lab's storage account by using Storage Explorer |
9 | 9 |
|
10 | 10 | [!INCLUDE [devtest-lab-upload-vhd-selector](../../includes/devtest-lab-upload-vhd-selector.md)]
|
11 | 11 |
|
12 |
| -In Azure DevTest Labs, VHD files can be used to create custom images, which are used to provision virtual machines. |
13 |
| -This article illustrates 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've uploaded your VHD file, the [Next steps section](#next-steps) lists some articles that illustrate how to create a custom image from the uploaded VHD file. For more information about disks and VHDs in Azure, see [Introduction to managed disks](../virtual-machines/managed-disks-overview.md) |
| 12 | +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). |
| 13 | + |
| 14 | +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). |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +- [Download and install the latest version of Microsoft Azure Storage Explorer](https://www.storageexplorer.com). |
| 19 | + |
| 20 | +- Get the name of the lab's storage account by using the Azure portal: |
| 21 | + |
| 22 | + 1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), search for and select **DevTest Labs**, and then select your lab from the list. |
| 23 | + 1. On the lab page, select **Configuration and policies** from the left navigation. |
| 24 | + 1. On the **Configuration and policies** page, under **Virtual machine bases**, select **Custom images**. |
| 25 | + 1. On the **Custom images** page, select **Add**. |
| 26 | + 1. On the **Custom image** page, under **VHD**, select the **Upload a VHD using PowerShell** link. |
| 27 | +  |
| 28 | + 1. On the **Upload an image using PowerShell** page, in the call to the **Add-AzureVhd** cmdlet, the `Destination` parameter shows the lab's storage account name in the following format: |
| 29 | + `https://<STORAGE-ACCOUNT-NAME>.blob.core.windows.net/uploads/`. |
| 30 | + 1. Copy the storage account name to use in the following steps. |
14 | 31 |
|
15 | 32 | ## Step-by-step instructions
|
16 | 33 |
|
17 |
| -The following steps walk you through uploading a VHD file to DevTest Labs using [Microsoft Azure Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md). |
18 |
| - |
19 |
| -1. [Download and install the latest version of the Microsoft Azure Storage Explorer](https://www.storageexplorer.com). |
20 |
| - |
21 |
| -1. Get the name of the lab's storage account using the Azure portal: |
22 |
| - |
23 |
| - 1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040). |
24 |
| - |
25 |
| - 1. Select **All services**, and then select **DevTest Labs** from the list. |
26 |
| - |
27 |
| - 1. From the list of labs, select the desired lab. |
28 |
| - |
29 |
| - 1. On the lab's blade, select **Configuration**. |
30 |
| - |
31 |
| - 1. On the lab **Configuration** blade, select **Custom images (VHDs)**. |
32 |
| - |
33 |
| - 1. On the **Custom images** blade, Select **+Add**. |
34 |
| - |
35 |
| - 1. On the **Custom image** blade, select **VHD**. |
36 |
| - |
37 |
| - 1. On the **VHD** blade, select **Upload a VHD using PowerShell**. |
38 |
| - |
39 |
| - ![Upload VHD using PowerShell][0] |
40 |
| - |
41 |
| - 1. The **Upload an image using PowerShell** blade displays a call to the **Add-AzureVhd** cmdlet. The first parameter (*Destination*) contains the storage account name for the lab in the following format: |
42 |
| - |
43 |
| - `https://<STORAGE-ACCOUNT-NAME>.blob.core.windows.net/uploads/...` |
44 |
| - |
45 |
| - 1. Make note of the storage account name as it is used in later steps. |
46 |
| - |
47 |
| -1. Connect to an Azure subscription account using Storage Explorer. |
48 |
| - |
49 |
| - > [!TIP] |
50 |
| - > |
51 |
| - > Storage Explorer supports several connection options. This section illustrates connecting to a storage account associated with your Azure subscription. To see the other connection options supported by Storage Explorer, refer to the article, [Getting started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md). |
52 |
| - |
53 |
| - 1. Open Storage Explorer. |
54 |
| - |
55 |
| - 1. In Storage Explorer, select **Azure Account settings**. |
56 |
| - |
57 |
| - ![Azure account settings][1] |
58 |
| - |
59 |
| - 1. The left pane displays the Microsoft accounts you've logged in to. To connect to another account, select **Add an account**, and follow the dialogs to sign in with a Microsoft account that is associated with at least one active Azure subscription. |
60 |
| - |
61 |
| - ![Add an account][2] |
62 |
| - |
63 |
| - 1. Once you successfully sign in with a Microsoft account, the left pane populates with the Azure subscriptions associated with that account. Select the Azure subscriptions with which you want to work, and then select **Apply**. (Selecting **All subscriptions** toggles the selection of all or none of the listed Azure subscriptions.) |
64 |
| - |
65 |
| - ![Select Azure subscriptions][3] |
66 |
| - |
67 |
| - 1. The left pane displays the storage accounts associated with the selected Azure subscriptions. |
68 |
| - |
69 |
| - ![Selected Azure subscriptions][4] |
70 |
| - |
71 |
| -1. Locate the lab's storage account: |
72 |
| - |
73 |
| - 1. In the Storage Explorer left pane, locate, and expand the node for the Azure subscription that owns the lab. |
74 |
| - |
75 |
| - 1. Under the subscription's node, expand **Storage Accounts**. |
76 |
| - |
77 |
| - 1. Expand the lab's storage account node to reveal nodes for **Blob Containers**, **File Shares**, **Queues**, and **Tables**. |
78 |
| - |
79 |
| - 1. Expand the **Blob Containers** node. |
80 |
| - |
81 |
| - 1. Select the uploads blob container to display its contents in the right pane. |
82 |
| - |
83 |
| - ![Upload directory][5] |
84 |
| - |
85 |
| -1. Upload the VHD file using Storage Explorer: |
86 |
| - |
87 |
| - 1. In the Storage Explorer right pane, you should see a listing of the blobs in the **uploads** blob container of the lab's storage account. On the blob editor toolbar, select **Upload** |
88 |
| - |
89 |
| - ![Screenshot that shows the Storage Explorer right pane with the "Upload" button selected.][6] |
90 |
| - |
91 |
| - 1. From the **Upload** drop-down menu, select **Upload files...**. |
92 |
| - |
93 |
| - 1. On the **Upload files** dialog, select the ellipsis. |
94 |
| - |
95 |
| - ![Screenshot that shows the "Upload files" dialog with the ellipsis selected.][8] |
96 |
| - |
97 |
| - 1. On the **Select files to upload** dialog, browse to the desired VHD file, select it, and then select **Open**. |
98 |
| - |
99 |
| - 1. When returned to the **Upload files** dialog, change **Blob type** to **Page Blob**. |
100 |
| - |
101 |
| - 1. Select **Upload**. |
102 |
| - |
103 |
| - ![Select file][9] |
104 |
| - |
105 |
| - 1. The Storage Explorer **Activity Log** pane shows the download status (along with links to cancel the upload). The process of uploading a VHD file can be lengthy depending on the size of the VHD file and your connection speed. |
106 |
| - |
107 |
| - ![Upload-file status][10] |
| 34 | +1. When you open Storage Explorer, the left **Explorer** pane shows all the Azure subscriptions you're signed in to. |
| 35 | + |
| 36 | + If you need to add a different account, select the **Account Management** icon, and in the **Account Management** pane, select **Add an account**. |
| 37 | + |
| 38 | +  |
| 39 | + |
| 40 | + Follow the prompts to sign in with the Microsoft account associated with your Azure subscription. |
| 41 | + |
| 42 | +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. |
| 43 | + |
| 44 | +  |
| 45 | + |
| 46 | +1. Select the dropdown arrow next to the lab storage account name you saved earlier. |
| 47 | + |
| 48 | +1. Expand the **Blob Containers** node, and then select **uploads**. |
| 49 | + |
| 50 | +  |
| 51 | + |
| 52 | +1. In the Storage Explorer right pane, on the blob editor toolbar, select **Upload**, and then select **Upload Files**. |
| 53 | + |
| 54 | +  |
| 55 | + |
| 56 | +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**. |
| 57 | + |
| 58 | +1. Under **Blob type**, change **Block Blob** to **Page Blob**. |
| 59 | + |
| 60 | +1. Select **Upload**. |
| 61 | + |
| 62 | +  |
| 63 | + |
| 64 | +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. |
| 65 | + |
| 66 | + |
108 | 67 |
|
109 | 68 | ## Next steps
|
110 | 69 |
|
111 | 70 | - [Create a custom image in Azure DevTest Labs from a VHD file using the Azure portal](devtest-lab-create-template.md)
|
112 | 71 | - [Create a custom image in Azure DevTest Labs from a VHD file using PowerShell](devtest-lab-create-custom-image-from-vhd-using-powershell.md)
|
113 | 72 |
|
114 |
| -[0]: ./media/devtest-lab-upload-vhd-using-storage-explorer/upload-image-using-psh.png |
115 |
| -[1]: ./media/devtest-lab-upload-vhd-using-storage-explorer/settings-icon.png |
116 |
| -[2]: ./media/devtest-lab-upload-vhd-using-storage-explorer/add-account-link.png |
117 |
| -[3]: ./media/devtest-lab-upload-vhd-using-storage-explorer/subscriptions-list.png |
118 |
| -[4]: ./media/devtest-lab-upload-vhd-using-storage-explorer/storage-accounts-list.png |
119 |
| -[5]: ./media/devtest-lab-upload-vhd-using-storage-explorer/upload-dir.png |
120 |
| -[6]: ./media/devtest-lab-upload-vhd-using-storage-explorer/upload-button.png |
121 |
| -[7]: ./media/devtest-lab-upload-vhd-using-storage-explorer/upload-files.png |
122 |
| -[8]: ./media/devtest-lab-upload-vhd-using-storage-explorer/select-file.png |
123 |
| -[9]: ./media/devtest-lab-upload-vhd-using-storage-explorer/upload-file.png |
124 |
| -[10]: ./media/devtest-lab-upload-vhd-using-storage-explorer/upload-status.png |
0 commit comments