ArmImageBuilderModelFactory.ImageTemplateErrorHandling Method
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.
Error handling options upon a build failure.
public static Azure.ResourceManager.ImageBuilder.Models.ImageTemplateErrorHandling ImageTemplateErrorHandling(Azure.ResourceManager.ImageBuilder.Models.ImageBuilderOnBuildError? onCustomizerError = default, Azure.ResourceManager.ImageBuilder.Models.ImageBuilderOnBuildError? onValidationError = default);
static member ImageTemplateErrorHandling : Nullable<Azure.ResourceManager.ImageBuilder.Models.ImageBuilderOnBuildError> * Nullable<Azure.ResourceManager.ImageBuilder.Models.ImageBuilderOnBuildError> -> Azure.ResourceManager.ImageBuilder.Models.ImageTemplateErrorHandling
Public Shared Function ImageTemplateErrorHandling (Optional onCustomizerError As Nullable(Of ImageBuilderOnBuildError) = Nothing, Optional onValidationError As Nullable(Of ImageBuilderOnBuildError) = Nothing) As ImageTemplateErrorHandling
Parameters
- onCustomizerError
- Nullable<ImageBuilderOnBuildError>
If there is a customizer error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a customizer error and this field is set to 'abort', the build VM will be preserved.
- onValidationError
- Nullable<ImageBuilderOnBuildError>
If there is a validation error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a validation error and this field is set to 'abort', the build VM will be preserved.
Returns
A new ImageTemplateErrorHandling instance for mocking.