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/virtual-machines/windows/create-vm-specialized-portal.md
+23-14Lines changed: 23 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,21 @@ ms.subservice: imaging
7
7
ms.collection: windows
8
8
ms.workload: infrastructure-services
9
9
ms.topic: how-to
10
-
ms.date: 01/18/2019
10
+
ms.date: 02/24/2023
11
11
ms.author: cynthn
12
12
13
13
---
14
14
# Create a VM from a VHD by using the Azure portal
15
15
16
16
**Applies to:**:heavy_check_mark: Windows VMs
17
17
18
+
19
+
> [!NOTE]
20
+
> Customers are encouraged to use Azure Compute Gallery as all new features like ARM64, Trusted Launch, and Confidential VM,are only supported through Azure Compute Gallery. If you have an existing VHD or managed image, you can use it as a source and create an Azure Compute Gallery image. For more information, see [Create an image definition and image version](../image-version.md).
21
+
>
22
+
> Creating an image instead of just attaching a disk means you can create multiple VMs from the same sounrce disk.
23
+
24
+
18
25
There are several ways to create a virtual machine (VM) in Azure:
19
26
20
27
- If you already have a virtual hard disk (VHD) to use or you want to copy the VHD from an existing VM to use, you can create a new VM by *attaching* the VHD to the new VM as an OS disk.
@@ -23,6 +30,8 @@ There are several ways to create a virtual machine (VM) in Azure:
23
30
24
31
- You can create an Azure VM from an on-premises VHD by uploading the on-premises VHD and attaching it to a new VM. You use PowerShell or another tool to upload the VHD to a storage account, and then you create a managed disk from the VHD. For more information, see [Upload a specialized VHD](create-vm-specialized.md#option-2-upload-a-specialized-vhd).
25
32
33
+
34
+
26
35
> [!IMPORTANT]
27
36
>
28
37
> When you use a [specialized](shared-image-galleries.md#generalized-and-specialized-images) disk to create a new VM, the new VM retains the computer name of the original VM. Other computer-specific information (e.g. CMID) is also kept and, in some cases, this duplicate information could cause issues. When copying a VM, be aware of what types of computer-specific information your applications rely on.
@@ -35,37 +44,37 @@ We recommend that you limit the number of concurrent deployments to 20 VMs from
35
44
36
45
Create a snapshot and then create a disk from the snapshot. This strategy allows you to keep the original VHD as a fallback:
37
46
38
-
1.From the [Azure portal](https://portal.azure.com), on the left menu, select **All services**.
39
-
2. In the **All services**search box, enter **disks** and then select **Disks** to display the list of available disks.
47
+
1.Open the [Azure portal](https://portal.azure.com).
48
+
2. In the search box, enter **disks** and then select **Disks** to display the list of available disks.
40
49
3. Select the disk that you would like to use. The **Disk** page for that disk appears.
41
50
4. From the menu at the top, select **Create snapshot**.
42
51
5. Choose a **Resource group** for the snapshot. You can use either an existing resource group or create a new one.
43
52
6. Enter a **Name** for the snapshot.
44
-
7. For **Snapshot type**, choose either **Full** or **Incremental**.
53
+
7. For **Snapshot type**, choose **Full**.
45
54
8. For **Storage type**, choose **Standard HDD**, **Premium SSD**, or **Zone-redundant** storage.
46
-
9. When you're done, select **Create** to create the snapshot.
47
-
10. After the snapshot has been created, select **Create a resource** in the left menu.
55
+
9. When you're done, select **Review + create** to create the snapshot.
56
+
10. After the snapshot has been created, select **Home** > **Create a resource**.
48
57
11. In the search box, enter **managed disk** and then select **Managed Disks** from the list.
49
58
12. On the **Managed Disks** page, select **Create**.
50
59
13. Choose a **Resource group** for the disk. You can use either an existing resource group or create a new one. This selection will also be used as the resource group where you create the VM from the disk.
51
-
14. Enter a **Name** for the disk.
60
+
14. For **Region**, you must select the same region where the snapshot is located.
61
+
15. Enter a **Name** for the disk.
52
62
16. In **Source type**, ensure **Snapshot** is selected.
53
63
17. In the **Source snapshot** drop-down, select the snapshot you want to use.
54
-
18. For **Size**, choose either **Standard (HDD)** or **Premium (SSD)** storage.
55
-
19. Make any other adjustments as needed and then select **Create** to create the disk.
64
+
18. For **Size**, you can change the storage type and size as needed.
65
+
19. Make any other adjustments as needed and then select **Review + create** to create the disk. Once validation passes, select **Create**.
56
66
57
67
## Create a VM from a disk
58
68
59
69
After you have the managed disk VHD that you want to use, you can create the VM in the portal:
60
70
61
-
1. From the [Azure portal](https://portal.azure.com), on the left menu, select **All services**.
62
-
2. In the **All services** search box, enter **disks** and then select **Disks** to display the list of available disks.
71
+
1. In the search box, enter **disks** and then select **Disks** to display the list of available disks.
63
72
3. Select the disk that you would like to use. The **Disk** page for that disk opens.
64
-
4. In the **Overview**page, ensure that **DISK STATE** is listed as **Unattached**. If it isn't, you might need to either detach the disk from the VM or delete the VM to free up the disk.
73
+
4. In the **Essentials**section, ensure that **Disk state** is listed as **Unattached**. If it isn't, you might need to either detach the disk from the VM or delete the VM to free up the disk.
65
74
4. In the menu at the top of the page, select **Create VM**.
66
75
5. On the **Basics** page for the new VM, enter a **Virtual machine name** and either select an existing **Resource group** or create a new one.
67
76
6. For **Size**, select **Change size** to access the **Size** page.
68
-
7.Select a VM size row and then choose**Select**.
77
+
7.The disk name should be pre-filled in the**Image** section.
69
78
8. On the **Disks** page, you may notice that the "OS Disk Type" cannot be changed. This preselected value is configured at the point of Snapshot or VHD creation and will carry over to the new VM. If you need to modify disk type take a new snapshot from an existing VM or disk.
70
79
9. On the **Networking** page, you can either let the portal create all new resources or you can select an existing **Virtual network** and **Network security group**. The portal always creates a new network interface and public IP address for the new VM.
71
80
10. On the **Management** page, make any changes to the monitoring options.
@@ -76,4 +85,4 @@ After you have the managed disk VHD that you want to use, you can create the VM
76
85
77
86
## Next steps
78
87
79
-
You can also use PowerShell to [upload a VHD to Azure and create a specialized VM](create-vm-specialized.md).
88
+
You can also [create an image definition and image version](../image-version.md) from your VHD.
0 commit comments