DEV Community

Cover image for Capturing the image of a Virtual machine in Azure
Afeez Adeyemo
Afeez Adeyemo

Posted on

Capturing the image of a Virtual machine in Azure

This tutorial demonstrates how to capture the image of a virtual machine in Azure.

In Azure, an image is essentially a template or blueprint for a virtual machine (VM). It includes the operating system, installed programs, settings, and configurations needed to create a replica of a VM. When you create a VM from an image, a copy of the virtual hard disks (VHDs) in the image is used to create the disks for the new VM.

Table of content

Step 1: Create a compute gallery.
Step 2: Capture and store VM's image.

Step 1: Create a compute gallery

  • Logon to Azure porter
  • On the homepage, search for Azure compute galleries

search for Azure compute galleries

  • Select + create select + create
  • Enter subscription details and Instance details
    • Select resource group that contains the VM to be captured
    • Enter a suitable name and description
    • review and create
    • create details of compute gallery
    • Notice resource has been completely deployed. Go to resource. Image description

Step 2: Capture and store VM's image.

  • Navigate into the VM previously created, with the added and formatted disc.
  • Click capture and image from the drop down menu capture and image
  • Enter the Target azure gallery name is the one just created.
    • Select new in the Target VM image definition Target VM image definition
    • Enter VM image definition name and click ok VM image definition name
    • As this is the first image of the VM, set the version number to 0.0.1. Review and create.
    • create version number
    • Wait for the resource to deploy Image description.

The image has been successfully captured and saved.

Please drop comments and questions in the comments section.

Top comments (0)