Delen via


VirtualMachineGalleryApplication Class

Definition

Specifies the required information to reference a compute gallery application version.

public class VirtualMachineGalleryApplication : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.VirtualMachineGalleryApplication>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.VirtualMachineGalleryApplication>
type VirtualMachineGalleryApplication = class
    interface IJsonModel<VirtualMachineGalleryApplication>
    interface IPersistableModel<VirtualMachineGalleryApplication>
Public Class VirtualMachineGalleryApplication
Implements IJsonModel(Of VirtualMachineGalleryApplication), IPersistableModel(Of VirtualMachineGalleryApplication)
Inheritance
VirtualMachineGalleryApplication
Implements

Constructors

VirtualMachineGalleryApplication(String)

Initializes a new instance of VirtualMachineGalleryApplication.

Properties

ConfigurationReference

Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided.

EnableAutomaticUpgrade

If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS.

Order

Optional, Specifies the order in which the packages have to be installed.

PackageReferenceId

Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}.

Tags

Optional, Specifies a passthrough value for more generic context.

TreatFailureAsDeploymentFailure

Optional, If true, any failure for any operation in the VmApplication will fail the deployment.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VirtualMachineGalleryApplication>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<VirtualMachineGalleryApplication>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachineGalleryApplication>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachineGalleryApplication>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<VirtualMachineGalleryApplication>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to