Language

ArmImageBuilderModelFactory.ImageTemplateShellValidator Method

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.

public static Azure.ResourceManager.ImageBuilder.Models.ImageTemplateShellValidator ImageTemplateShellValidator(string name = default, string scriptUri = default, string sha256Checksum = default, System.Collections.Generic.IEnumerable<string> inline = default);
static member ImageTemplateShellValidator : string * string * string * seq<string> -> Azure.ResourceManager.ImageBuilder.Models.ImageTemplateShellValidator
Public Shared Function ImageTemplateShellValidator (Optional name As String = Nothing, Optional scriptUri As String = Nothing, Optional sha256Checksum As String = Nothing, Optional inline As IEnumerable(Of String) = Nothing) As ImageTemplateShellValidator

Parameters

name
String

Friendly Name to provide context on what this validation step does.

scriptUri
String

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

sha256Checksum
String

SHA256 checksum of the shell script provided in the scriptUri field.

inline
IEnumerable<String>

Array of shell commands to execute.

Returns

A new ImageTemplateShellValidator instance for mocking.

Applies to