ComputeFleetImageReference Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class ComputeFleetImageReference : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetImageReference>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetImageReference>
type ComputeFleetImageReference = class
interface IJsonModel<ComputeFleetImageReference>
interface IPersistableModel<ComputeFleetImageReference>
Public Class ComputeFleetImageReference
Implements IJsonModel(Of ComputeFleetImageReference), IPersistableModel(Of ComputeFleetImageReference)
- Inheritance
-
ComputeFleetImageReference
- Implements
Constructors
ComputeFleetImageReference() |
Initializes a new instance of ComputeFleetImageReference. |
Properties
CommunityGalleryImageId |
Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call. |
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'. |
Id |
Resource Id. |
Offer |
Specifies the offer of the platform image or marketplace image used to create the virtual machine. |
Publisher |
The image publisher. |
SharedGalleryImageId |
Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call. |
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. 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. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<ComputeFleetImageReference>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ComputeFleetImageReference>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ComputeFleetImageReference>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ComputeFleetImageReference>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ComputeFleetImageReference>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET