SALES: 1-800-867-1380

About Virtual Machine Images in Azure

Updated: March 27, 2015

Images are used in Azure to provide a new virtual machine with an operating system. An image might also have one or more data disks. Images are available from several sources:

  • Azure offers images in the Marketplace. You’ll find recent versions of Windows Server and distributions of the Linux operating system. Some images also contain applications, such as SQL Server. MSDN Benefit and MSDN Pay-as-You-Go subscribers have access to additional images.

  • The open source community offers images through VM Depot.

  • You also can store and use your own images in Azure, by either capturing an existing Azure virtual machine for use as an image or uploading an image.

Two types of images can be used in Azure -- VM image and OS image. A VM image includes an operating system and all disks attached to a virtual machine when the image is created. This is the newer type of image. Before VM images were introduced, an image in Azure could have only a generalized operating system and no additional disks. A VM image that contains only a generalized operating system is basically the same as the original type of image, the OS image.

You can create your own images, based on a virtual machine in Azure, or a virtual machine running elsewhere that you copy and upload. If you want to use an image to create more than one virtual machine, you’ll need to prepare it for use as an image by generalizing it. To create a Windows Server image, run the Sysprep command on the server to generalize it before you upload the .vhd file. For more information, see How to Use Sysprep: An Introduction. To create a Linux image, depending on the software distribution, you’ll need to run a set of commands that are specific to the distribution, as well as run the Azure Linux Agent.

You can use the Azure Management Portal to perform most of the common image tasks. To create an image, see the following articles for instructions:

You can also use the Management Portal to create an image from a .vhd file that’s already in a storage account. See “Add the Image to Your List of Custom Images” in Creating and Uploading a Virtual Hard Disk that Contains the Windows Server Operating System.

If you’d rather use a command-line or the Service Management APIs to manage images, see these articles:

You can easily delete an image if you don’t need it as a template for creating virtual machines. If you create a virtual machine from an image, an operating system disk is created when the virtual machine is created. If you delete the image, the operating system disk is not deleted, which means you can create another image or a virtual machine from the disk. A .vhd file that you upload to create an image is not deleted when an image is deleted. You must delete an image before you can delete the .vhd file that is the source of the image.

  1. If you have not already done so, sign in to the Azure Management Portal.

  2. Click Virtual Machines, and then click Images.

  3. Select the image that you want to delete, and then click Delete Image.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft