IImageTemplatePowerShellCustomizer Interface
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.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplatePowerShellCustomizerTypeConverter))]
public interface IImageTemplatePowerShellCustomizer : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateCustomizer
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplatePowerShellCustomizerTypeConverter))>]
type IImageTemplatePowerShellCustomizer = interface
interface IJsonSerializable
interface IImageTemplateCustomizer
Public Interface IImageTemplatePowerShellCustomizer
Implements IImageTemplateCustomizer
- Derived
- Attributes
- Implements
Properties
| Name | Description |
|---|---|
| Inline |
Array of PowerShell commands to execute |
| Name |
Friendly Name to provide context on what this customization step does (Inherited from IImageTemplateCustomizer) |
| RunAsSystem |
If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true. |
| RunElevated |
If specified, the PowerShell script will be run with elevated privileges |
| ScriptUri |
URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc |
| Sha256Checksum |
SHA256 checksum of the power shell script provided in the scriptUri field above |
| Type |
The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer (Inherited from IImageTemplateCustomizer) |
| ValidExitCode |
Valid exit codes for the PowerShell script. [Default: 0] |
Methods
| Name | Description |
|---|---|
| ToJson(JsonObject, SerializationMode) | (Inherited from IJsonSerializable) |