I
InsightNexus

Class ImageReference | Azure SDK for .NET

Author

David Craig

Published Feb 16, 2026

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. NOTE: Image reference publisher and offer can only be set when you create the scale set.

Inheritance

System.Object

ImageReference

Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Compute.dll
Syntax
public class ImageReference : Azure.ResourceManager.Compute.Models.SubResource

Constructors

ImageReference()

Initializes a new instance of ImageReference.

Declaration
public ImageReference ();

Properties

ExactVersion

Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.

Declaration
public string ExactVersion { get; }
Property Value
System.String

Offer

Specifies the offer of the platform image or marketplace image used to create the virtual machine.

Declaration
public string Offer { get; set; }
Property Value
System.String

Publisher

The image publisher.

Declaration
public string Publisher { get; set; }
Property Value
System.String

SharedGalleryImageId

Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.

Declaration
public string SharedGalleryImageId { get; set; }
Property Value
System.String

Sku

The image SKU.

Declaration
public string Sku { get; set; }
Property Value
System.String

Version

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.

Declaration
public string Version { get; set; }
Property Value
System.String