Image Template Power Shell Validator Response
data class ImageTemplatePowerShellValidatorResponse(val inline: List<String>? = null, val name: String? = null, val runAsSystem: Boolean? = null, val runElevated: Boolean? = null, val scriptUri: String? = null, val sha256Checksum: String? = null, val type: String, val validExitCodes: List<Int>? = null)
Runs the specified PowerShell script during the validation phase (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
Constructors
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