ArmComputeScheduleModelFactory.VmGalleryApplication Method

Definition

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

public static Azure.ResourceManager.ComputeSchedule.Models.VmGalleryApplication VmGalleryApplication(string tags = default, int? order = default, string packageReferenceId = default, string configurationReference = default, bool? treatFailureAsDeploymentFailure = default, bool? enableAutomaticUpgrade = default);
static member VmGalleryApplication : string * Nullable<int> * string * string * Nullable<bool> * Nullable<bool> -> Azure.ResourceManager.ComputeSchedule.Models.VmGalleryApplication
Public Shared Function VmGalleryApplication (Optional tags As String = Nothing, Optional order As Nullable(Of Integer) = Nothing, Optional packageReferenceId As String = Nothing, Optional configurationReference As String = Nothing, Optional treatFailureAsDeploymentFailure As Nullable(Of Boolean) = Nothing, Optional enableAutomaticUpgrade As Nullable(Of Boolean) = Nothing) As VmGalleryApplication

Parameters

tags
String

Optional, Specifies a passthrough value for more generic context.

order
Nullable<Int32>

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

packageReferenceId
String

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

configurationReference
String

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

treatFailureAsDeploymentFailure
Nullable<Boolean>

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

enableAutomaticUpgrade
Nullable<Boolean>

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

Returns

A new VmGalleryApplication instance for mocking.

Applies to