Azure VM Image

Azure VM Image

Following one of my earlier posts, about Azure Managed Disks, lets see how easy it is to create an Azure VM Image from an Azure VM that uses Managed Disks.

The first step it to Sysprep/Generalize the source VM. Otherwise the VM that will be created will not start. Select Generalize and “Shutdown”.

After that wait the VM to shut down and go to the Azure Porta, at the VM’s blade and click “Capture”.

Now, the “Create Image” blade will open. Enter a name, select a Resource Group and choose if the source VM will be deleted or not. Then press create.

As soon as the Image is created you can find it at the “Images” service.

Now lets create a VM from our Image

Click the image name from the Images Blade to open the desired image Blade and just press “Create VM”.

Of course at the image’s blade we can see if the image is Windows or Linux, if it has any Data Disks and the Location.

After clicking the “Create VM” the classic “Create virtual machine” wizard will start, just like any other Virtual Machine creation. You will notice the difference at the final step that shows the name of your image instead of the VM’s OS.

If you want to automate the process of creating an Azure VM from your images you can use Azure Template. You can find a quick start template at Azure’s GitHub repository.

Create a Virtual Machine from a User Image:



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.