ImageTemplateShellCustomizer Class
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.
Runs a shell script during the customization 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.ImageTemplateShellCustomizerTypeConverter))]
public class ImageTemplateShellCustomizer : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateShellCustomizer, Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateShellCustomizerTypeConverter))>]
type ImageTemplateShellCustomizer = class
interface IImageTemplateShellCustomizer
interface IJsonSerializable
interface IImageTemplateCustomizer
interface IValidates
Public Class ImageTemplateShellCustomizer
Implements IImageTemplateShellCustomizer, IValidates
- Inheritance
-
ImageTemplateShellCustomizer
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ImageTemplateShellCustomizer() |
Creates an new ImageTemplateShellCustomizer instance. |
Properties
| Name | Description |
|---|---|
| Inline |
Array of shell commands to execute |
| Name |
Friendly Name to provide context on what this customization step does |
| ScriptUri |
URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc |
| Sha256Checksum |
SHA256 checksum of the shell script provided in the scriptUri field |
| Type |
The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ImageTemplateShellCustomizer. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ImageTemplateShellCustomizer. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateShellCustomizer. |
| FromJsonString(String) |
Creates a new instance of ImageTemplateShellCustomizer, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of ImageTemplateShellCustomizer into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| ToString() | |
| Validate(IEventListener) |
Validates that this object meets the validation criteria. |