ImageTemplatePowerShellCustomizerArgs

data class ImageTemplatePowerShellCustomizerArgs(val inline: Output<List<String>>? = null, val name: Output<String>? = null, val runAsSystem: Output<Boolean>? = null, val runElevated: Output<Boolean>? = null, val scriptUri: Output<String>? = null, val sha256Checksum: Output<String>? = null, val type: Output<String>, val validExitCodes: Output<List<Int>>? = null) : ConvertibleToJava<ImageTemplatePowerShellCustomizerArgs>

Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.

Constructors

Link copied to clipboard
constructor(inline: Output<List<String>>? = null, name: Output<String>? = null, runAsSystem: Output<Boolean>? = null, runElevated: Output<Boolean>? = null, scriptUri: Output<String>? = null, sha256Checksum: Output<String>? = null, type: Output<String>, validExitCodes: Output<List<Int>>? = null)

Properties

Link copied to clipboard
val inline: Output<List<String>>? = null

Array of PowerShell commands to execute

Link copied to clipboard
val name: Output<String>? = null

Friendly Name to provide context on what this customization step does

Link copied to clipboard
val runAsSystem: Output<Boolean>? = null

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.

Link copied to clipboard
val runElevated: Output<Boolean>? = null

If specified, the PowerShell script will be run with elevated privileges

Link copied to clipboard
val scriptUri: Output<String>? = null

URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc

Link copied to clipboard
val sha256Checksum: Output<String>? = null

SHA256 checksum of the power shell script provided in the scriptUri field above

Link copied to clipboard
val type: Output<String>

The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Expected value is 'PowerShell'.

Link copied to clipboard
val validExitCodes: Output<List<Int>>? = null

Valid exit codes for the PowerShell script. Default: 0

Functions

Link copied to clipboard
open override fun toJava(): ImageTemplatePowerShellCustomizerArgs