Virtual machine custom Mirroring (image) is a useful feature that allows you to configure the basic system environment on a single virtual machine and then mirror it, creating a virtual machine directly from this image, which saves a lot of repetitive configuration work.
Aliyun and Ucloud all have this function, azure of course, this is also the cloud service trademark with free service.
Let's share our experience with the "Make Virtual machine Custom Mirroring" feature in Azure.
(i) Preparatory work
Create an original virtual machine, assuming the name Blogserver1. Once created, log in to the configuration of the basic deployment environment, such as installing IIS and making related configuration (support for high concurrent IIS Web server common settings).
(b) operate with intuition without looking at any help documents
1, enter virtual machines-> IMAGES, click Create; Enter image NAME to select the VHD URL for the blogserver1 virtual machine that you created previously, and select "I have run Sysprep on" Virtua L machine associated with the This VHD. " (see chart below)
2. Click OK button ... The creation failed with the following error message:
The VHD Http://..../vhds/blogserver-blogserver1-2013-09-11.vhd has been blogserver1-blogserver1-0-201309110319510234 as an ID Resources to the image repository.
Error messages are confusing.
It is also the same error to turn off the blogserver1 virtual machine for operation.
After some tossing and dropping, give up.
(iii) operation under the Help document
The help document is from the How-Capture an Image of a Virtual Machine Running Windows Server.
1, Remote Desktop login to the virtual machine, into the C:\Windows\System32\Sysprep\ directory, run Sysprep.exe, select generalize, select Shutdown (see figure below).