Skip to content

Commit d3735a3

Browse files
committed
add vm and upload vhd
1 parent 81668f9 commit d3735a3

16 files changed

+119
-125
lines changed

articles/devtest-labs/devtest-lab-add-vm.md

Lines changed: 70 additions & 52 deletions
Large diffs are not rendered by default.

articles/devtest-labs/devtest-lab-attach-detach-data-disk.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Follow these steps to create and attach a new managed data disk for a DevTest La
3434

3535
- For **Name**, enter a unique name.
3636
- For **Disk type**, select a [disk type](/azure/virtual-machines/disks-types) from the dropdown list.
37-
- For **Size (GiB)**, enter a size in gigabytes.
37+
- For **Size (GiB)**, enter the disk size in gigabytes.
3838

3939
1. Select **OK**.
4040

@@ -76,27 +76,27 @@ Follow these steps to detach an attached data disk from a running VM.
7676

7777
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-button.png" alt-text="Screenshot of selecting a data disk to detach.":::
7878

79-
1. On the data disk's page, select **Detach**, and respond **OK** to **Are you sure you want to detach it**.
79+
1. On the data disk's page, select **Detach**, then respond **OK** to **Are you sure you want to detach it**.
8080

8181
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-data-disk-2.png" alt-text="Screenshot showing Detach on the Data disk page.":::
8282

8383
The disk detaches, and is available to reattach to this or another VM.
8484

8585
### Detach or delete a data disk from the lab page
8686

87-
You can also detach or delete a data disk from the lab's page instead of the VM's page.
87+
You can also detach or delete a data disk by using the lab's **Overview** page.
8888

8989
1. On the lab **Overview** page in the Azure portal, select **My data disks** under **My Lab** in the left navigation.
9090

9191
1. On the **My data disks** page, either:
9292

9393
- Select the ellipsis (**...**) next to the disk you want to detach, select **Detach** from the context menu, and then select **Yes**.
9494

95-
- Or, select the disk name, and on the disk's page, select **Detach**, and then select **OK**.
95+
- Or, select the disk name, and on the disk's page, select **Detach** and then select **OK**.
9696

9797
:::image type="content" source="./media/devtest-lab-attach-detach-data-disk/devtest-lab-detach-data-disk.png" alt-text="Screenshot of detaching a data disk from the listing's context menu.":::
9898

99-
To delete a detached data disk, select **Delete** from the context menu on the **My data disks** page, or select **Delete** on the disk's page. Deleting a data disk removes it from storage, and you can no longer reattach it.
99+
To delete a detached data disk, select **Delete** from the context menu on the **My data disks** page, or select **Delete** on the disk's page. Deleting a data disk removes it from storage. You can reattach the disk only by readding it as a new disk.
100100

101101
## Related content
102102

Lines changed: 44 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,88 @@
11
---
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.
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 09/30/2023
7+
ms.date: 03/17/2025
88
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.
911
---
1012

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
1214

1315
[!INCLUDE [devtest-lab-upload-vhd-selector](../../includes/devtest-lab-upload-vhd-selector.md)]
1416

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).
1818

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).
2020

2121
## Prerequisites
2222

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.
3826

39-
1. In **Custom images**, select **Add**.
27+
## Upload a VHD file to a lab
4028

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.
4230

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
4432

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:
5434

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**.
5640

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.":::
5842

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...`.
6044

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.":::
6246

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.
6448

65-
Follow the prompts to sign in with the Microsoft account associated with your Azure subscription.
49+
### Upload the VHD file
6650

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**.
6852

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.":::
7254

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**.
7459

7560
:::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.":::
7661

7762
1. In the Storage Explorer right pane, on the blob editor toolbar, select **Upload**, and then select **Upload Files**.
7863

7964
:::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.":::
8065

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**.
8269

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.":::
8471

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.
9273

9374
:::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.":::
9475

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.
9581

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.":::
10883

109-
## Next steps
84+
## Related content
11085

86+
- For more information about VHDs and managed disks in Azure, see [Introduction to managed disks](/azure/virtual-machines/managed-disks-overview).
11187
- 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).
11288
- 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).
-11.9 KB
Loading
-56.7 KB
Loading
-6.34 KB
Loading
-60 KB
Loading
-40.7 KB
Loading
53 Bytes
Loading
-16 Bytes
Loading

0 commit comments

Comments
 (0)