Skip to content

Commit 696ccf1

Browse files
authored
Merge pull request #101003 from cynthn/patch-343
Update download-vhd.md
2 parents f476a05 + 7bbd1a3 commit 696ccf1

File tree

5 files changed

+25
-29
lines changed

5 files changed

+25
-29
lines changed

articles/virtual-machines/windows/download-vhd.md

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,46 @@ ms.workload: infrastructure-services
1414
ms.tgt_pltfrm: vm-windows
1515

1616
ms.topic: article
17-
ms.date: 06/01/2018
17+
ms.date: 01/13/2019
1818
ms.author: cynthn
1919
---
2020

2121
# Download a Windows VHD from Azure
2222

2323
In this article, you learn how to download a Windows virtual hard disk (VHD) file from Azure using the Azure portal.
2424

25-
## Stop the VM
25+
## Optional: Generalize the VM
26+
27+
If you want to use the VHD as an [image](tutorial-custom-images.md) to create other VMs, you should use [Sysprep](https://docs.microsoft.com/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation) to generalize the operating system.
2628

27-
A VHD can’t be downloaded from Azure if it's attached to a running VM. You need to stop the VM to download a VHD. If you want to use a VHD as an [image](tutorial-custom-images.md) to create other VMs with new disks, you use [Sysprep](https://docs.microsoft.com/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation) to generalize the operating system contained in the file and then stop the VM. To use the VHD as a disk for a new instance of an existing VM or data disk, you only need to stop and deallocate the VM.
29+
To use the VHD as an image to create other VMs, generalize the VM.
2830

29-
To use the VHD as an image to create other VMs, complete these steps:
31+
1. If you haven't already done so, sign in to the [Azure portal](https://portal.azure.com/).
32+
2. [Connect to the VM](connect-logon.md?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
33+
3. On the VM, open the Command Prompt window as an administrator.
34+
4. Change the directory to *%windir%\system32\sysprep* and run sysprep.exe.
35+
5. In the System Preparation Tool dialog box, select **Enter System Out-of-Box Experience (OOBE)**, and make sure that **Generalize** is selected.
36+
6. In Shutdown Options, select **Shutdown**, and then click **OK**.
3037

31-
1. If you haven't already done so, sign in to the [Azure portal](https://portal.azure.com/).
32-
2. [Connect to the VM](connect-logon.md?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
33-
3. On the VM, open the Command Prompt window as an administrator.
34-
4. Change the directory to *%windir%\system32\sysprep* and run sysprep.exe.
35-
5. In the System Preparation Tool dialog box, select **Enter System Out-of-Box Experience (OOBE)**, and make sure that **Generalize** is selected.
36-
6. In Shutdown Options, select **Shutdown**, and then click **OK**.
3738

38-
To use the VHD as a disk for a new instance of an existing VM or data disk, complete these steps:
39+
## Stop the VM
3940

40-
1. On the Hub menu in the Azure portal, click **Virtual Machines**.
41-
2. Select the VM from the list.
42-
3. On the blade for the VM, click **Stop**.
41+
A VHD can’t be downloaded from Azure if it's attached to a running VM. You need to stop the VM to download a VHD.
4342

44-
![Stop VM](./media/download-vhd/export-stop.png)
43+
1. On the Hub menu in the Azure portal, click **Virtual Machines**.
44+
1. Select the VM from the list.
45+
1. On the blade for the VM, click **Stop**.
4546

46-
## Generate SAS URL
4747

48-
To download the VHD file, you need to generate a [shared access signature (SAS)](../../storage/common/storage-dotnet-shared-access-signature-part-1.md?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) URL. When the URL is generated, an expiration time is assigned to the URL.
48+
## Generate download URL
4949

50-
1. On the menu of the blade for the VM, click **Disks**.
51-
2. Select the operating system disk for the VM, and then click **Disk Export**.
52-
3. Set the expiration time of the URL to *36000*.
53-
4. Click **Generate URL**.
50+
To download the VHD file, you need to generate a [shared access signature (SAS)](../../storage/common/storage-dotnet-shared-access-signature-part-1.md?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) URL. When the URL is generated, an expiration time is assigned to the URL.
5451

55-
![Generate URL](./media/download-vhd/export-generate-new.png)
52+
1. On the page for the VM, click **Disks** in the left menu.
53+
1. Select the operating system disk for the VM.
54+
1. On the page for the disk, select **Disk Export** from the left menu.
55+
1. The default expiration time of the URL is *3600* seconds. Increase this to **36000** for Windows OS disks.
56+
1. Click **Generate URL**.
5657

5758
> [!NOTE]
5859
> The expiration time is increased from the default to provide enough time to download the large VHD file for a Windows Server operating system. You can expect a VHD file that contains the Windows Server operating system to take several hours to download depending on your connection. If you are downloading a VHD for a data disk, the default time is sufficient.
@@ -61,13 +62,8 @@ To download the VHD file, you need to generate a [shared access signature (SAS)]
6162
6263
## Download VHD
6364

64-
1. Under the URL that was generated, click Download the VHD file.
65-
66-
![Download VHD](./media/download-vhd/export-download.png)
67-
68-
2. You may need to click **Save** in the browser to start the download. The default name for the VHD file is *abcd*.
69-
70-
![Click Save in the browser](./media/download-vhd/export-save.png)
65+
1. Under the URL that was generated, click Download the VHD file.
66+
1. You may need to click **Save** in your browser to start the download. The default name for the VHD file is *abcd*.
7167

7268
## Next steps
7369

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)