ImageReference Constructors

Definition

Overloads

ImageReference()

Initializes a new instance of the ImageReference class.

ImageReference(String, String, String, String, String, String, String, String)

Initializes a new instance of the ImageReference class.

ImageReference()

Initializes a new instance of the ImageReference class.

public ImageReference ();
Public Sub New ()

Applies to

ImageReference(String, String, String, String, String, String, String, String)

Initializes a new instance of the ImageReference class.

public ImageReference (string id = default, string publisher = default, string offer = default, string sku = default, string version = default, string exactVersion = default, string sharedGalleryImageId = default, string communityGalleryImageId = default);
new Microsoft.Azure.Management.Compute.Models.ImageReference : string * string * string * string * string * string * string * string -> Microsoft.Azure.Management.Compute.Models.ImageReference
Public Sub New (Optional id As String = Nothing, Optional publisher As String = Nothing, Optional offer As String = Nothing, Optional sku As String = Nothing, Optional version As String = Nothing, Optional exactVersion As String = Nothing, Optional sharedGalleryImageId As String = Nothing, Optional communityGalleryImageId As String = Nothing)

Parameters

id
String

Resource Id

publisher
String

The image publisher.

offer
String

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

sku
String

The image SKU.

version
String

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. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input.

exactVersion
String

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'.

sharedGalleryImageId
String

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

communityGalleryImageId
String

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

Applies to