Azure Virtual Machines

Comprehensive documentation for managing and deploying Virtual Machines on Azure.

Virtual Machine Images

Azure Virtual Machines (VMs) are powered by images. An image is a template that contains the operating system and any pre-installed software required to launch a virtual machine. Azure provides a rich gallery of pre-defined images, and you can also create and use your own custom images.

Understanding VM Images

Images are categorized in several ways:

Popular VM Image Sources

You can access and select images directly from the Azure portal when creating a virtual machine. Here are some common sources:

Creating Custom Images

You can generalize a VM and then capture it to create a custom image. This process involves:

  1. Deploying a VM from a desired OS image.
  2. Configuring the VM with your specific applications and settings.
  3. Generalizing the VM using tools like Sysprep for Windows or WA agent for Linux.
  4. Deallocating and stopping the VM.
  5. Capturing the VM to create a managed image or adding it to a Shared Image Gallery.

You can also create custom images from existing VHD files.

Using Azure Compute Gallery (formerly Shared Image Gallery)

Azure Compute Gallery is the recommended way to manage and share VM images:

Key Considerations

For detailed steps and advanced configurations, please refer to the official Azure documentation.