How To Generalize Virtual Machines And Create Image VMs In Azure Portal

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

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 2

For the custom image purpose, I’m going to install IIS Web Service and Adobe reader

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 3

Successfully Installed IIS Service and Adobe Reader

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

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

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 2

Once Prepared VM will automatically shutdown

Step 3

Now go to your Azure portal and do the following steps

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 4

Following the Steps

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 5

Successfully created my image template

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Create a custom Image VM

Step 1

Go to the resource and Create VM

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 2

I have a Custom-only VM name, Username, and Password. VM Image will pick up automatically which we created.

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 3

Successfully Created my Custom VM

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

Step 4

Successfully my other VM is created with the same configuration.

How to Generalize Virtual Machines and Create Image VMs in Azure Portal

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.


Similar Articles