Condividi tramite


ImageTemplateShellValidator Class

Definition

Runs the specified shell script during the validation phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateShellValidatorTypeConverter))]
public class ImageTemplateShellValidator : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateShellValidator, Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateShellValidatorTypeConverter))>]
type ImageTemplateShellValidator = class
    interface IImageTemplateShellValidator
    interface IJsonSerializable
    interface IImageTemplateInVMValidator
    interface IValidates
Public Class ImageTemplateShellValidator
Implements IImageTemplateShellValidator, IValidates
Inheritance
ImageTemplateShellValidator
Attributes
Implements

Constructors

Name Description
ImageTemplateShellValidator()

Creates an new ImageTemplateShellValidator instance.

Properties

Name Description
Inline

Array of shell commands to execute

Name

Friendly Name to provide context on what this validation step does

ScriptUri

URI of the shell script to be run for validation. It can be a github link, Azure Storage URI, etc

Sha256Checksum

SHA256 checksum of the shell script provided in the scriptUri field

Type

The type of validation you want to use on the Image. For example, "Shell" can be shell validation

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ImageTemplateShellValidator.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ImageTemplateShellValidator.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateShellValidator.

FromJsonString(String)

Creates a new instance of ImageTemplateShellValidator, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ImageTemplateShellValidator into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to