Show / Hide Table of Contents

    Class ImageReference

    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.

    Inheritance
    Object
    SubResource
    ImageReference
    Inherited Members
    SubResource.Id
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class ImageReference : Microsoft.Azure.Management.Compute.Models.SubResource

    Constructors

    ImageReference()

    Initializes a new instance of the ImageReference class.

    Declaration
    public ImageReference ();

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

    Initializes a new instance of the ImageReference class.

    Declaration
    public ImageReference (string id = null, string publisher = null, string offer = null, string sku = null, string version = null);
    Parameters
    String id

    Resource Id

    String publisher

    The image publisher.

    String offer

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

    String sku

    The image SKU.

    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.

    Properties

    Offer

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="offer")]
    public string Offer { get; set; }
    Property Value
    String

    Publisher

    Gets or sets the image publisher.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="publisher")]
    public string Publisher { get; set; }
    Property Value
    String

    Sku

    Gets or sets the image SKU.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="sku")]
    public string Sku { get; set; }
    Property Value
    String

    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.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="version")]
    public string Version { get; set; }
    Property Value
    String

    Back to top Azure SDK for Net