ArmImageBuilderModelFactory.ImageTemplateRestartCustomizer Method
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.
Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner.
public static Azure.ResourceManager.ImageBuilder.Models.ImageTemplateRestartCustomizer ImageTemplateRestartCustomizer(string name = default, string restartCommand = default, string restartCheckCommand = default, string restartTimeout = default);
static member ImageTemplateRestartCustomizer : string * string * string * string -> Azure.ResourceManager.ImageBuilder.Models.ImageTemplateRestartCustomizer
Public Shared Function ImageTemplateRestartCustomizer (Optional name As String = Nothing, Optional restartCommand As String = Nothing, Optional restartCheckCommand As String = Nothing, Optional restartTimeout As String = Nothing) As ImageTemplateRestartCustomizer
Parameters
- name
- String
Friendly Name to provide context on what this customization step does.
- restartCommand
- String
Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"'].
- restartCheckCommand
- String
Command to check if restart succeeded [Default: ''].
- restartTimeout
- String
Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'].
Returns
A new ImageTemplateRestartCustomizer instance for mocking.