|
1 | 1 | ---
|
2 |
| -title: Upload a VHD file to lab storage by using Storage Explorer |
3 |
| -description: Walk through the steps to upload a VHD file to a DevTest Labs lab storage account by using Azure Storage Explorer. |
| 2 | +title: Upload a VHD file to a lab by using Storage Explorer |
| 3 | +description: Walk through the steps to upload a virtual hard disk (VHD) file to a DevTest Labs lab storage account by using Azure Storage Explorer. |
4 | 4 | ms.topic: how-to
|
5 | 5 | ms.author: rosemalcolm
|
6 | 6 | author: RoseHJM
|
7 |
| -ms.date: 09/30/2023 |
| 7 | +ms.date: 03/17/2025 |
8 | 8 | ms.custom: UpdateFrequency2
|
| 9 | + |
| 10 | +#customer intent: As a lab user, I want to learn how to upload a VHD to a lab storage account so I can use the VHD to create a custom image and VMs. |
9 | 11 | ---
|
10 | 12 |
|
11 |
| -# Upload a VHD file to a lab storage account by using Storage Explorer |
| 13 | +# Upload a VHD file to a lab by using Storage Explorer |
12 | 14 |
|
13 | 15 | [!INCLUDE [devtest-lab-upload-vhd-selector](../../includes/devtest-lab-upload-vhd-selector.md)]
|
14 | 16 |
|
15 |
| -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 file and use the image to provision a virtual machine. |
16 |
| - |
17 |
| -For more information about disks and VHDs in Azure, see [Introduction to managed disks](/azure/virtual-machines/managed-disks-overview). |
| 17 | +In this article, you learn how to use Azure Storage Explorer to upload a virtual hard disk (VHD) file to a lab storage account in Azure DevTest Labs. Storage Explorer is a standalone app that runs on Windows, macOS, and Linux. After you upload your VHD file to your lab, you can create a custom image from the uploaded file and use the image to create lab virtual machines (VMs). |
18 | 18 |
|
19 |
| -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). |
| 19 | +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](/azure/vs-azure-tools-storage-manage-with-storage-explorer). |
20 | 20 |
|
21 | 21 | ## Prerequisites
|
22 | 22 |
|
23 |
| -- Download and install the [latest version of Storage Explorer](https://www.storageexplorer.com). |
24 |
| - |
25 |
| -To upload a VHD file to a lab storage account by using Storage Explorer, first, get the lab storage account name via the Azure portal. Then, use Storage Explorer to upload the file. |
26 |
| - |
27 |
| -## Get the lab storage account name |
28 |
| - |
29 |
| -To get the name of the lab storage account: |
30 |
| - |
31 |
| -1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040). |
32 |
| - |
33 |
| -1. Select **All resources**, and then select your lab. |
34 |
| - |
35 |
| -1. In the lab menu under **Settings**, select **Configuration and policies**. |
36 |
| - |
37 |
| -1. In **Activity log**, in the resource menu under **Virtual machine bases**, select **Custom images**. |
| 23 | +- Write access to a lab in DevTest Labs. |
| 24 | +- A VHD or VHDX virtual hard disk file to upload. |
| 25 | +- The [latest version of Storage Explorer](https://www.storageexplorer.com) installed. |
38 | 26 |
|
39 |
| -1. In **Custom images**, select **Add**. |
| 27 | +## Upload a VHD file to a lab |
40 | 28 |
|
41 |
| -1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link. |
| 29 | +To upload a VHD file to a lab storage account by using Storage Explorer, first get the lab storage account name by using the Azure portal. Then use Storage Explorer to upload the VHD file to the storage account. |
42 | 30 |
|
43 |
| - :::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/upload-image-powershell.png" alt-text="Screenshot that shows settings to upload a VHD by using PowerShell on the Custom image pane."::: |
| 31 | +### Get the lab storage account name |
44 | 32 |
|
45 |
| -1. In **Upload an image using PowerShell**, scroll right to see a call to the Add-AzureRmVhd cmdlet. |
46 |
| - |
47 |
| - The `-Destination` parameter contains the URI for a blob container in the following format: |
48 |
| - |
49 |
| - `https://<storageAccountName>.blob.core.windows.net/uploads/...` |
50 |
| - |
51 |
| - :::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/destination-parameter.png" alt-text="Screenshot that shows an example of a storage account name in the Add VHD box."::: |
52 |
| - |
53 |
| -1. Copy the storage account name to use in the next section. |
| 33 | +To get the name of the lab storage account: |
54 | 34 |
|
55 |
| -## Upload a VHD file |
| 35 | +1. In the [Azure portal](https://portal.azure.com), go to the **Overview** page for your lab. |
| 36 | +1. Select **Configuration and policies** under **Settings** in the left navigation. |
| 37 | +1. Select **Virtual machine bases** > **Custom images** from the left navigation on the **Activity log** page. |
| 38 | +1. On the **Custom images** page, select **Add**. |
| 39 | +1. On the **Custom image** page, select the **Upload a VHD using PowerShell** link under **VHD**. |
56 | 40 |
|
57 |
| -To upload a VHD file by using Storage Explorer: |
| 41 | + :::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/upload-image-powershell.png" alt-text="Screenshot that shows the link to upload a VHD by using PowerShell."::: |
58 | 42 |
|
59 |
| -1. When you open Storage Explorer, the Explorer pane shows all the Azure subscriptions you're signed in to. |
| 43 | +1. On the **Upload an image using PowerShell** page, scroll right to see the call to the `Add-AzureRmVhd` cmdlet. The `-Destination` parameter contains the URI for the blob container in the format `https://<storageAccountName>.blob.core.windows.net...`. |
60 | 44 |
|
61 |
| - If you need to add a different account, select the **Account Management** icon. In **Account Management**, select **Add an account**. |
| 45 | + :::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/destination-parameter.png" alt-text="Screenshot that shows an example of a storage account name in the Add VHD box."::: |
62 | 46 |
|
63 |
| - :::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."::: |
| 47 | +1. Note the storage account name to use in the next section. |
64 | 48 |
|
65 |
| - Follow the prompts to sign in with the Microsoft account associated with your Azure subscription. |
| 49 | +### Upload the VHD file |
66 | 50 |
|
67 |
| -1. After you sign in, the Explorer pane shows the Azure subscriptions that are associated with your account. Select the dropdown arrow next to the Azure subscription you want to use. The left pane shows the storage accounts that are associated with the selected Azure subscription. |
| 51 | +When you open Storage Explorer, the Explorer pane shows all the Azure subscriptions you have access to. If you need to add a different account, select the **Account Management** icon, and then select **Add an account**. |
68 | 52 |
|
69 |
| - :::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."::: |
70 |
| - |
71 |
| -1. Select the dropdown arrow next to the lab storage account name you saved earlier. |
| 53 | +:::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."::: |
72 | 54 |
|
73 |
| -1. Expand **Blob Containers**, and then select **uploads**. |
| 55 | +1. Follow the prompts to sign in with the Microsoft account associated with the Azure subscription that has your lab. |
| 56 | +1. After you sign in, select the dropdown arrow next to the Azure subscription you want to use. |
| 57 | +1. The left pane shows the storage accounts associated with the selected Azure subscription. If you don't see your storage account listed, select **Refresh all**. |
| 58 | +1. Select the dropdown arrow next to the lab storage account name you saved earlier, expand **Blob Containers**, and then select **uploads**. |
74 | 59 |
|
75 | 60 | :::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.":::
|
76 | 61 |
|
77 | 62 | 1. In the Storage Explorer right pane, on the blob editor toolbar, select **Upload**, and then select **Upload Files**.
|
78 | 63 |
|
79 | 64 | :::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.":::
|
80 | 65 |
|
81 |
| -1. In the **Upload Files** dialog: |
| 66 | +1. On the **Upload Files** screen, select **...** next to **Selected files**, browse to and select the VHD file on your computer, and then select **Open**. |
| 67 | +1. For **Blob type**, select **Page Blob**. |
| 68 | +1. Select **Upload**. |
82 | 69 |
|
83 |
| - 1. Select **...** next to **Selected files**. Go to the VHD file on your computer, select the file, and then select **Open**. |
| 70 | +:::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."::: |
84 | 71 |
|
85 |
| - 1. For **Blob type**, select **Page Blob**. |
86 |
| - |
87 |
| - 1. Select **Upload**. |
88 |
| - |
89 |
| - :::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."::: |
90 |
| - |
91 |
| -1. Check the **Activities** pane at the bottom of Storage Explorer to see the upload status. Uploading the VHD file might take a long time, depending on the size of the VHD file and your connection speed. |
| 72 | +1. Track the upload status in the **Activities** pane at the bottom of Storage Explorer. Uploading the VHD file might take a long time, depending on the size of the VHD file and your connection speed. |
92 | 73 |
|
93 | 74 | :::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.":::
|
94 | 75 |
|
| 76 | +After you upload the VHD file, you can see it in your lab storage account in the Azure portal. |
| 77 | + |
| 78 | +1. Open your lab storage account by searching for and selecting it in the Azure Search bar, or by selecting it from **Storage accounts**. |
| 79 | +1. On the storage account's **Overview** page, select **Data storage** > **Containers** from the left navigation. |
| 80 | +1. On the **Containers** page, open the **Uploads** folder to see the uploaded VHD file along with any other uploads to the storage account. |
95 | 81 |
|
96 |
| -## Automate uploading VHD files |
97 |
| -To automate uploading VHD files to create custom images, use [Azure Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md). Storage Explorer is a standalone app that runs on Windows, OS X, and Linux. |
98 |
| - |
99 |
| -To find the destination storage account that's associated with your lab: |
100 |
| - |
101 |
| -1. Sign in to the [Azure portal](https://portal.azure.com). |
102 |
| -2. On the left menu, select **Resource Groups**. |
103 |
| -3. Find and select the resource group that's associated with your lab. |
104 |
| -4. Under **Overview**, select one of the storage accounts. |
105 |
| -5. Select **Blobs**. |
106 |
| -6. Look for uploads in the list. If none exists, return to step 4 and try another storage account. |
107 |
| -7. Use the **URL** as the destination for your VHDs. |
| 82 | + :::image type="content" source="media/devtest-lab-upload-vhd-using-storage-explorer/uploads.png" alt-text="Screenshot that shows the uploaded VHD file in the Azure storage account."::: |
108 | 83 |
|
109 |
| -## Next steps |
| 84 | +## Related content |
110 | 85 |
|
| 86 | +- For more information about VHDs and managed disks in Azure, see [Introduction to managed disks](/azure/virtual-machines/managed-disks-overview). |
111 | 87 | - 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).
|
112 | 88 | - 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