ImageTemplateRestartCustomizer Class
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
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateRestartCustomizerTypeConverter))]
public class ImageTemplateRestartCustomizer : Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateRestartCustomizer, Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.ImageTemplateRestartCustomizerTypeConverter))>]
type ImageTemplateRestartCustomizer = class
interface IImageTemplateRestartCustomizer
interface IJsonSerializable
interface IImageTemplateCustomizer
interface IValidates
Public Class ImageTemplateRestartCustomizer
Implements IImageTemplateRestartCustomizer, IValidates
- Inheritance
-
ImageTemplateRestartCustomizer
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ImageTemplateRestartCustomizer() |
Creates an new ImageTemplateRestartCustomizer instance. |
Properties
| Name | Description |
|---|---|
| Name |
Friendly Name to provide context on what this customization step does |
| 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 |
The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ImageTemplateRestartCustomizer. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ImageTemplateRestartCustomizer. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ImageBuilder.Models.IImageTemplateRestartCustomizer. |
| FromJsonString(String) |
Creates a new instance of ImageTemplateRestartCustomizer, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of ImageTemplateRestartCustomizer into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| ToString() | |
| Validate(IEventListener) |
Validates that this object meets the validation criteria. |