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/lab-services/upload-custom-image-shared-image-gallery.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Before you import an image from a physical lab, learn more about [recommended ap
25
25
26
26
## Prerequisites
27
27
28
-
- Your Azure account has permission to create an [Azure managed disk](/azure/virtual-machines/managed-disks-overview.md). Learn about the [Azure RBAC roles you need to create a managed disk](/azure/virtual-machines/windows/disks-upload-vhd-to-managed-disk-powershell#assign-rbac-role).
28
+
- Your Azure account has permission to create an [Azure managed disk](/azure/virtual-machines/managed-disks-overview). Learn about the [Azure RBAC roles you need to create a managed disk](/azure/virtual-machines/windows/disks-upload-vhd-to-managed-disk-powershell#assign-rbac-role).
29
29
30
30
- Restructure each virtual machine image so that it only includes the software that is needed for a lab's class. Learn more about [moving from a Physical Lab to Azure Lab Services](./concept-migrating-physical-labs.md).
31
31
@@ -45,18 +45,18 @@ First, create a virtual hard disk (VHD) for the physical environment. The follow
45
45
46
46
Learn more about [how to create a virtual machine in Hyper-V](/windows-server/virtualization/hyper-v/get-started/create-a-virtual-machine-in-hyper-v).
47
47
48
-
1. Connect to the Hyper-V VM and [prepare it for Azure](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md) by following these steps:
48
+
1. Connect to the Hyper-V VM and [prepare it for Azure](/azure/virtual-machines/windows/prepare-for-upload-vhd-image) by following these steps:
49
49
50
-
1.[Set Windows configurations for Azure](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md#set-windows-configurations-for-azure).
51
-
1.[Check the Windows services that are needed to ensure VM connectivity](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md#check-the-windows-services).
1.[Configure Windows Firewall rules](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md#configure-windows-firewall-rules).
54
-
1.[Install Windows updates](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md).
55
-
1.[Install Azure VM Agent and extra configuration](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md#complete-the-recommended-configurations)
50
+
1.[Set Windows configurations for Azure](/azure/virtual-machines/windows/prepare-for-upload-vhd-image#set-windows-configurations-for-azure).
51
+
1.[Check the Windows services that are needed to ensure VM connectivity](/azure/virtual-machines/windows/prepare-for-upload-vhd-image#check-the-windows-services).
1.[Configure Windows Firewall rules](/azure/virtual-machines/windows/prepare-for-upload-vhd-image#configure-windows-firewall-rules).
54
+
1.[Install Windows updates](/azure/virtual-machines/windows/prepare-for-upload-vhd-image).
55
+
1.[Install Azure VM Agent and extra configuration](/azure/virtual-machines/windows/prepare-for-upload-vhd-image#complete-the-recommended-configurations)
56
56
57
-
You can upload either specialized or generalized images to a compute gallery and use them to create labs. The previous steps create a specialized image. If you need a generalized image, you also have to [run SysPrep](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md#determine-when-to-use-sysprep).
57
+
You can upload either specialized or generalized images to a compute gallery and use them to create labs. The previous steps create a specialized image. If you need a generalized image, you also have to [run SysPrep](/azure/virtual-machines/windows/prepare-for-upload-vhd-image#determine-when-to-use-sysprep).
58
58
59
-
You should create a specialized image if you want to maintain machine-specific information and user profiles. For more information about the differences between generalized and specialized images, see [Generalized and specialized images](/azure/virtual-machines/shared-image-galleries.md#generalized-and-specialized-images).
59
+
You should create a specialized image if you want to maintain machine-specific information and user profiles. For more information about the differences between generalized and specialized images, see [Generalized and specialized images](/azure/virtual-machines/shared-image-galleries#generalized-and-specialized-images).
60
60
61
61
1. Convert the default Hyper-V `VHDX` hard disk file format to `VHD`:
62
62
@@ -68,7 +68,7 @@ First, create a virtual hard disk (VHD) for the physical environment. The follow
68
68
69
69
If you expand the disk size, make sure that you do *not* exceed 128 GB.
70
70
71
-
Learn more about how to [convert a virtual disk to a fixed size VHD](/azure/virtual-machines/windows/prepare-for-upload-vhd-image.md#convert-the-virtual-disk-to-a-fixed-size-vhd).
71
+
Learn more about how to [convert a virtual disk to a fixed size VHD](/azure/virtual-machines/windows/prepare-for-upload-vhd-image#convert-the-virtual-disk-to-a-fixed-size-vhd).
72
72
73
73
Alternately, you can resize and convert a VHDX by using PowerShell:
74
74
@@ -81,33 +81,33 @@ Next, you upload the VHD file from your physical environment to an Azure compute
81
81
82
82
1. Upload the VHD to Azure to create a managed disk.
83
83
84
-
You can use either Storage Explorer or AzCopy from the command line, as shown in [Upload a VHD to Azure or copy a managed disk to another region](/azure/virtual-machines/windows/disks-upload-vhd-to-managed-disk-powershell.md).
84
+
You can use either Storage Explorer or AzCopy from the command line, as shown in [Upload a VHD to Azure or copy a managed disk to another region](/azure/virtual-machines/windows/disks-upload-vhd-to-managed-disk-powershell).
85
85
86
86
If your machine goes to sleep or locks, the upload process may get interrupted and fail. Also, make sure after AzCopy completes, that you revoke the SAS access to the disk. Otherwise, when you attempt to create an image from the disk, you encounter an error: **Operation 'Create Image' is not supported with disk 'your disk name' in state 'Active Upload'. Error Code: OperationNotAllowed**.
87
87
88
88
After you've uploaded the VHD, you should now have a managed disk that you can see in the Azure portal.
89
89
90
90
The Azure portal's **Size+Performance** tab for the managed disk allows you to change your disk size. As mentioned before, the size must *not* be greater than 128 GB.
91
91
92
-
1. In a compute gallery, follow these steps to [create an image definition and version](/azure/virtual-machines/image-version.md).
92
+
1. In a compute gallery, follow these steps to [create an image definition and version](/azure/virtual-machines/image-version).
93
93
94
94
- Choose **Gen 1** for the **VM generation**.
95
95
96
96
- Choose whether you're creating a **specialized** or **generalized** image for the **Operating system state**
97
97
98
-
For more information about the values you can specify for an image definition, see [Image definitions](/azure/virtual-machines/shared-image-galleries.md#image-definitions).
98
+
For more information about the values you can specify for an image definition, see [Image definitions](/azure/virtual-machines/shared-image-galleries#image-definitions).
99
99
100
100
You can also choose to use an existing image definition and create a new version for your custom image.
101
101
102
-
1. Follow these steps to [create an image version](/azure/virtual-machines/image-version.md).
102
+
1. Follow these steps to [create an image version](/azure/virtual-machines/image-version).
103
103
104
104
- The **Version number** property uses the following format: *MajorVersion.MinorVersion.Patch*. When you use Azure Lab Services to create a lab and choose a custom image, the most recent version of the image is automatically used. The most recent version is chosen based on the highest value of MajorVersion, then MinorVersion, then Patch.
105
105
106
106
- For the **Source**, choose **Disks and/or snapshots** from the drop-down list.
107
107
108
108
- For the **OS disk** property, choose the disk that you created in previous steps.
109
109
110
-
For more information about the values you can specify for an image definition, see [Image versions](/azure/virtual-machines/shared-image-galleries.md#image-versions).
110
+
For more information about the values you can specify for an image definition, see [Image versions](/azure/virtual-machines/shared-image-galleries#image-versions).
111
111
112
112
## Create a lab
113
113
@@ -123,4 +123,4 @@ Now that the custom image is available in an Azure compute gallery, you can crea
123
123
124
124
-[Attach or detach a compute gallery](how-to-attach-detach-shared-image-gallery.md)
125
125
-[Use a compute gallery](how-to-use-shared-image-gallery.md)
0 commit comments