Jump to content













Photo
- - - - -

Azure VM Image

  Posted by Pantelis Apostolidis , in Azure 04 July 2017 · 86 views

Azure Azure VM Image AzureRM Template

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”.

Posted Image

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

Posted Image

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.

Posted Image

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

Posted Image

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.

Posted Image

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.

Posted Image

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: https://github.com/A...from-user-image