ImageReference Class

Definition

Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.

public class ImageReference : Microsoft.Azure.Management.Compute.Models.SubResource
type ImageReference = class
    inherit SubResource
Public Class ImageReference
Inherits SubResource
Inheritance
System.Object
ImageReference

Constructors

ImageReference()

Initializes a new instance of the ImageReference class.

Properties

Id

Gets or sets resource Id

(Inherited from SubResource)
Offer

Gets or sets specifies the offer of the platform image or marketplace image used to create the virtual machine.

Publisher

Gets or sets the image publisher.

Sku

Gets or sets the image SKU.

Version

Gets or sets specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.

Applies to