Language

ArmImageBuilderModelFactory.ImageTemplateValidationConfig Method

Definition

Configuration options and list of validations to be performed on the resulting image.

public static Azure.ResourceManager.ImageBuilder.Models.ImageTemplateValidationConfig ImageTemplateValidationConfig(bool? shouldContinueDistributeOnFailure = default, bool? isSourceValidationOnly = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateInVMValidator> inVMValidations = default);
static member ImageTemplateValidationConfig : Nullable<bool> * Nullable<bool> * seq<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateInVMValidator> -> Azure.ResourceManager.ImageBuilder.Models.ImageTemplateValidationConfig
Public Shared Function ImageTemplateValidationConfig (Optional shouldContinueDistributeOnFailure As Nullable(Of Boolean) = Nothing, Optional isSourceValidationOnly As Nullable(Of Boolean) = Nothing, Optional inVMValidations As IEnumerable(Of ImageTemplateInVMValidator) = Nothing) As ImageTemplateValidationConfig

Parameters

shouldContinueDistributeOnFailure
Nullable<Boolean>

If validation fails and this field is set to false, output image(s) will not be distributed. This is the default behavior. If validation fails and this field is set to true, output image(s) will still be distributed. Please use this option with caution as it may result in bad images being distributed for use. In either case (true or false), the end to end image run will be reported as having failed in case of a validation failure. [Note: This field has no effect if validation succeeds.].

isSourceValidationOnly
Nullable<Boolean>

If this field is set to true, the image specified in the 'source' section will directly be validated. No separate build will be run to generate and then validate a customized image.

inVMValidations
IEnumerable<ImageTemplateInVMValidator>

List of validations to be performed.

Returns

A new ImageTemplateValidationConfig instance for mocking.

Applies to