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
+26-16Lines changed: 26 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,46 +21,56 @@ For more information about disks and VHDs in Azure, see [Introduction to managed
21
21
22
22
## Prerequisites
23
23
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).
25
25
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.
27
27
28
-
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
28
+
## Get the lab storage account name
29
29
30
-
1. Select **All resources**, and then select your lab.
30
+
To get the name of the lab storage account:
31
31
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).
33
33
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.
35
35
36
-
1. In **Custom images**, select **Add**.
36
+
1. In the lab menu under **Settings**, select **Configuration and policies**.
37
37
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**.
39
39
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**.
41
41
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.
43
43
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.":::
1. In **Upload an image using PowerShell**, scroll right to see a call to the Add-AzureRmVhd cmdlet.
47
47
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:
49
49
50
-
1. Copy the storage account name to use in the following steps.
:::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.
51
55
52
56
## Upload a VHD file
53
57
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*.
55
63
56
64
Optionally, you can add the AzCopy installation location to your system path.
57
65
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.
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-upload-vhd-using-powershell.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,15 @@ In this article, learn how to use PowerShell to upload a VHD file to a lab stora
15
15
16
16
For more information about disks and VHDs in Azure, see [Introduction to managed disks](../virtual-machines/managed-disks-overview.md).
17
17
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
19
25
20
-
To upload a VHD file to Azure DevTest Labs by using PowerShell:
26
+
To get the name of the lab storage account:
21
27
22
28
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
23
29
@@ -31,16 +37,21 @@ To upload a VHD file to Azure DevTest Labs by using PowerShell:
31
37
32
38
1. In **Custom image**, under **VHD**, select the **Upload an image using PowerShell** link.
33
39
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:
35
47
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.
37
49
38
50
1. Modify the `-LocalFilePath` parameter of the Add-AzureRmVhd cmdlet to point to the location of the VHD file you want to upload.
39
51
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.
41
53
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.
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-upload-vhd-using-storage-explorer.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,13 @@ Storage Explorer supports several connection options. This article describes how
19
19
20
20
## Prerequisites
21
21
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).
23
23
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:
25
29
26
30
1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040).
27
31
@@ -41,11 +45,11 @@ Storage Explorer supports several connection options. This article describes how
41
45
42
46
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.":::
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.":::
47
51
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.
49
53
50
54
## Upload a VHD file
51
55
@@ -57,7 +61,7 @@ Storage Explorer supports several connection options. This article describes how
57
61
58
62
Follow the prompts to sign in with the Microsoft account associated with your Azure subscription.
59
63
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.
61
65
62
66
:::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
67
@@ -71,15 +75,17 @@ Storage Explorer supports several connection options. This article describes how
71
75
72
76
:::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
77
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**.
75
81
76
-
1.In**Blob type**, change**Block Blob** to **Page Blob**.
82
+
1.For**Blob type**, select**Page Blob**
77
83
78
-
1. Select **Upload**.
84
+
1. Select **Upload**.
79
85
80
86
:::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
87
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.
83
89
84
90
:::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.":::
0 commit comments