Compartir a través de


AutomaticRepairsPolicy Class

Definition

Specifies the configuration parameters for automatic repairs on the virtual machine scale set.

public class AutomaticRepairsPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.AutomaticRepairsPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.AutomaticRepairsPolicy>
type AutomaticRepairsPolicy = class
    interface IJsonModel<AutomaticRepairsPolicy>
    interface IPersistableModel<AutomaticRepairsPolicy>
Public Class AutomaticRepairsPolicy
Implements IJsonModel(Of AutomaticRepairsPolicy), IPersistableModel(Of AutomaticRepairsPolicy)
Inheritance
AutomaticRepairsPolicy
Implements

Constructors

AutomaticRepairsPolicy()

Initializes a new instance of AutomaticRepairsPolicy.

Properties

Enabled

Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.

GracePeriod

The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).

RepairAction

Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AutomaticRepairsPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AutomaticRepairsPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AutomaticRepairsPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AutomaticRepairsPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AutomaticRepairsPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to