Language

ArmImageBuilderModelFactory.ImageTemplateShellCustomizer Method

Definition

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

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

Parameters

name
String

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

scriptUri
String

URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, 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 ImageTemplateShellCustomizer instance for mocking.

Applies to