#sysops #azure #vhd #devops #vm #virtualmachines
/ codedoge4
Important Links :
https://learn.microsoft.com/en-us/azu...
Important Time Stamps :
00:00 - 00:31 = Context of creating an Azure VM vhd image
00:31 - 01:28 = Quick outline of steps we will take to create this vm image
01:28 - 01:52 = Delete the C:\Windows\Panter directory/folder
01:52 - 02:25 = Open Command Prompt as admin and cd %windir%\system32\sysprep directory
02:25 - 02:59 = Run sysprep.exe and the options available
02:59 - 03:19 = Cover options available for this prepared disk
03:19 - 03:41 = Confirm details of the vm being in stopped state and etc
03:41 - 04:03 = Dog
Disclaimer that I kept saying the terminology of "backup" your vm, that is incorrect technically. This is preparing your drive to be used as an image or snapshot. So in a way it is a backup or snapshot of the drive, but its not technically a virtual machine backup in azure. That would use other tools such as azure recovery vault and etc, so ignore that faulty wording.
This video covers how you can generalize a vm image to be used for snapshots or image gallery in Azure. This method is general and can be used for not Azure virtual machines and local machines as well.
The steps are summarized below :
1. Delete the C:\Windows\Panther directory
2. Open Command Prompt cmd as Administrator
3. CD into %windir%\system32\sysprep directory
4. Run sysprep.exe
5. Inside sysprep tool, for System Cleanup Action, choose Enter System Out-of-Box Experience (OOBE) and check the Generalize option. Then for shutdown options select Shutdown and then press Ok.
6. Once complete the VM will shutdown and a message will notify you that.
You can now use this VHD image in local vm simulators or azure.
The other vidoes to follow will cover how to creap snapshots and create image galleries based on this VHD image we created.
Ignore the rest...
azure devops create custom image create custom vhd image create windows image azure image gallery disk image disk snapshot create snapshot create image create back backup vm virtual machine backup