Skip to content

Commit d1e6c37

Browse files
committed
edits
1 parent 20c480e commit d1e6c37

File tree

3 files changed

+60
-33
lines changed

3 files changed

+60
-33
lines changed

articles/devtest-labs/devtest-lab-upload-vhd-using-azcopy.md

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,46 +21,56 @@ For more information about disks and VHDs in Azure, see [Introduction to managed
2121
2222
## Prerequisites
2323

24-
- [Download and install the latest version of AzCopy](https://aka.ms/downloadazcopy)
24+
- Download and install the [latest version of AzCopy](https://aka.ms/downloadazcopy).
2525

26-
- Get the name of the lab's storage account by using the Azure portal:
26+
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.
2727

28-
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
28+
## Get the lab storage account name
2929

30-
1. Select **All resources**, and then select your lab.
30+
To get the name of the lab storage account:
3131

32-
1. In the lab menu under **Settings**, select **Configuration and policies**.
32+
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
3333

34-
1. In **Activity log**, in the resource menu under **Virtual machine bases**, select **Custom images**.
34+
1. Select **All resources**, and then select your lab.
3535

36-
1. In **Custom images**, select **Add**.
36+
1. In the lab menu under **Settings**, select **Configuration and policies**.
3737

38-
1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link.
38+
1. In **Activity log**, in the resource menu under **Virtual machine bases**, select **Custom images**.
3939

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.":::
40+
1. In **Custom images**, select **Add**.
4141

42-
1. In **Upload an image using PowerShell**, scroll right to see a call to the Add-AzureRmVhd cmdlet.
42+
1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link.
4343

44-
The `-Destination` parameter contains the URI for a blob container in the following format:
44+
:::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.":::
4545

46-
`https://<STORAGE-ACCOUNT-NAME>.blob.core.windows.net/uploads/...`
46+
1. In **Upload an image using PowerShell**, scroll right to see a call to the Add-AzureRmVhd cmdlet.
4747

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.":::
48+
The `-Destination` parameter contains the URI for a blob container in the following format:
4949

50-
1. Copy the storage account name to use in the following steps.
50+
`https://<storageAccountName>.blob.core.windows.net/uploads/...`
51+
52+
:::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.":::
53+
54+
1. Copy the storage account URI to use in the next section.
5155

5256
## Upload a VHD file
5357

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*.
58+
To upload a VHD file by using AzCopy:
59+
60+
1. In Windows, open a Command Window and go to the AzCopy installation directory.
61+
62+
By default, AzCopy is installed in *ProgramFiles(x86)\Microsoft SDKs\Azure\AzCopy*.
5563

5664
Optionally, you can add the AzCopy installation location to your system path.
5765

58-
1. Using the storage account key and blob container URI, run the following command at the command prompt. The value for `vhdFileName` must be in quotes. The process of uploading a VHD file might be lengthy depending on the size of the VHD file and your connection speed.
66+
1. At the command prompt, run the following command. Use the storage account key and blob container URI you copied from the Azure portal. The value for `vhdFileName` must be in quotes.
5967

6068
```cmd
6169
AzCopy /Source:<sourceDirectory> /Dest:<blobContainerUri> /DestKey:<storageAccountKey> /Pattern:"<vhdFileName>" /BlobType:page
6270
```
6371
72+
The process of uploading a VHD file might be lengthy depending on the size of the VHD file and your connection speed.
73+
6474
## Next steps
6575
6676
- 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).

articles/devtest-labs/devtest-lab-upload-vhd-using-powershell.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ In this article, learn how to use PowerShell to upload a VHD file to a lab stora
1515

1616
For more information about disks and VHDs in Azure, see [Introduction to managed disks](../virtual-machines/managed-disks-overview.md).
1717

18-
## Upload a VHD file
18+
## Prerequisites
19+
20+
- Download and install the [latest version of PowerShell](/powershell/scripting/install/installing-powershell?).
21+
22+
To upload a VHD file to a lab storage account by using PowerShell, first, get the lab storage account name via the Azure portal. Then, use a PowerShell cmdlet to upload the file.
23+
24+
## Get the lab storage account name
1925

20-
To upload a VHD file to Azure DevTest Labs by using PowerShell:
26+
To get the name of the lab storage account:
2127

2228
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
2329

@@ -31,16 +37,21 @@ To upload a VHD file to Azure DevTest Labs by using PowerShell:
3137

3238
1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link.
3339

34-
:::image type="content" source="media/devtest-lab-upload-vhd-using-powershell/upload-image-powershell.png" alt-text="Screenshot that shows settings to upload a VHD by using PowerShell on the Custom image pane.":::
40+
:::image type="content" source="media/devtest-lab-upload-vhd-using-powershell/upload-image-powershell.png" alt-text="Screenshot that shows the link to upload a VHD by using PowerShell on the Custom image pane.":::
41+
42+
1. In **Upload an image using PowerShell**, select and copy the the generated PowerShell script to use in the next section.
43+
44+
## Upload a VHD file
45+
46+
To upload a VHD file by using PowerShell:
3547

36-
1. In **Upload an image using PowerShell** > **Add VHD**, copy the generated PowerShell script to a text editor.
48+
1. In a text editor, paste the generated PowerShell script you copied from the Azure portal.
3749

3850
1. Modify the `-LocalFilePath` parameter of the Add-AzureRmVhd cmdlet to point to the location of the VHD file you want to upload.
3951

40-
1. At a PowerShell prompt, run the Add-AzureRmVhd cmdlet with the modified `-LocalFilePath` parameter.
52+
1. At a PowerShell command prompt, run the Add-AzureRmVhd cmdlet with the modified `-LocalFilePath` parameter.
4153

42-
> [!WARNING]
43-
> The process of uploading a VHD file might be lengthy depending on the size of the VHD file and your connection speed.
54+
The process of uploading a VHD file might be lengthy depending on the size of the VHD file and your connection speed.
4455

4556
## Next steps
4657

articles/devtest-labs/devtest-lab-upload-vhd-using-storage-explorer.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ Storage Explorer supports several connection options. This article describes how
1919

2020
## Prerequisites
2121

22-
- [Download and install the latest version of Azure Storage Explorer](https://www.storageexplorer.com).
22+
- Download and install the [latest version of Storage Explorer](https://www.storageexplorer.com).
2323

24-
- Get the name of the lab's storage account by using the Azure portal:
24+
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.
25+
26+
## Get the lab storage account name
27+
28+
To get the name of the lab storage account:
2529

2630
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
2731

@@ -41,11 +45,11 @@ Storage Explorer supports several connection options. This article describes how
4145

4246
The `-Destination` parameter contains the URI for a blob container in the following format:
4347

44-
`https://<STORAGE-ACCOUNT-NAME>.blob.core.windows.net/uploads/...`
48+
`https://<storageAccountName>.blob.core.windows.net/uploads/...`
4549

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.":::
50+
:::image type="content" source="media/devtest-lab-upload-vhd-using-azcopy/destination-parameter.png" alt-text="Screenshot that shows an example of a storage account name in the Add VHD box.":::
4751

48-
1. Copy the storage account name to use in the following steps.
52+
1. Copy the storage account name to use in the next section.
4953

5054
## Upload a VHD file
5155

@@ -57,7 +61,7 @@ Storage Explorer supports several connection options. This article describes how
5761

5862
Follow the prompts to sign in with the Microsoft account associated with your Azure subscription.
5963

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.
64+
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.
6165

6266
:::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.":::
6367

@@ -71,15 +75,17 @@ Storage Explorer supports several connection options. This article describes how
7175

7276
:::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.":::
7377

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**.
78+
1. In the **Upload Files** dialog:
79+
80+
1. Select **...** next to **Selected files**. Bowse to the VHD file on your computer, select the file, and then select **Open**.
7581

76-
1. In **Blob type**, change **Block Blob** to **Page Blob**.
82+
1. For **Blob type**, select **Page Blob**
7783

78-
1. Select **Upload**.
84+
1. Select **Upload**.
7985

8086
:::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.":::
8187

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.
88+
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.
8389

8490
:::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.":::
8591

0 commit comments

Comments
 (0)