次の方法で共有


ImageTemplateRestartCustomizer interface

Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner

Extends

Properties

restartCheckCommand

Command to check if restart succeeded [Default: '']

restartCommand

Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']

restartTimeout

Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']

type

Polymorphic discriminator, which specifies the different types this object can be

Inherited Properties

name

Friendly Name to provide context on what this customization step does

Property Details

restartCheckCommand

Command to check if restart succeeded [Default: '']

restartCheckCommand?: string

Property Value

string

restartCommand

Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']

restartCommand?: string

Property Value

string

restartTimeout

Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']

restartTimeout?: string

Property Value

string

type

Polymorphic discriminator, which specifies the different types this object can be

type: "WindowsRestart"

Property Value

"WindowsRestart"

Inherited Property Details

name

Friendly Name to provide context on what this customization step does

name?: string

Property Value

string

Inherited From ImageTemplateCustomizer.name