Image Template Power Shell Customizer Args
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.
Properties
Link copied to clipboard
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
If specified, the PowerShell script will be run with elevated privileges
Link copied to clipboard
SHA256 checksum of the power shell script provided in the scriptUri field above
Link copied to clipboard
Valid exit codes for the PowerShell script. Default: 0