Introduction
I will teach you how to create an image from your running virtual machine on Azure. This process is also called generalizing.
Why do you want to use generalized VMs
Generalizing VM is that if you have VM deployment with the same configurations you can save time in creating VMs
You can use this article for deploying VMs Deploying An Azure Virtual Machine (VM) (c-sharpcorner.com)
Step 1
This is my Azure VM
Step 2
For the custom image purpose, I’m going to install IIS Web Service and Adobe reader
Step 3
Successfully Installed IIS Service and Adobe Reader
Generalizing VM steps
Step 1
Open file explorer and browse this path from your VM
C:\Windows\System32\Sysprep
Run the sysprep.exe and click OK
Step 2
Once Prepared VM will automatically shutdown
Step 3
Now go to your Azure portal and do the following steps
Step 4
Following the Steps
Step 5
Successfully created my image template
Create a custom Image VM
Step 1
Go to the resource and Create VM
Step 2
I have a Custom-only VM name, Username, and Password. VM Image will pick up automatically which we created.
Step 3
Successfully Created my Custom VM
Step 4
Successfully my other VM is created with the same configuration.
Conclusion
This article taught us how to create a generalized VM Image in the Azure portal. And if you have any questions don't hesitate to get in touch with me.
Thanks.