Share via


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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter))]
public class ImageReference : Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter))>]
type ImageReference = class
    interface IImageReference
    interface IJsonSerializable
Public Class ImageReference
Implements IImageReference
Inheritance
ImageReference
Attributes
Implements

Constructors

ImageReference()

Creates an new ImageReference instance.

Properties

Id

Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.

Offer

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

Publisher

The image publisher.

Sku

The image SKU.

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ImageReference.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ImageReference.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference.

FromJsonString(String)

Creates a new instance of ImageReference, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ImageReference into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to