Partilhar via


ResiliencyPolicy Class

Definition

Describes an resiliency policy - resilientVMCreationPolicy and/or resilientVMDeletionPolicy.

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

Constructors

ResiliencyPolicy()

Initializes a new instance of ResiliencyPolicy.

Properties

ResilientVmCreationPolicyEnabled

Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false.

ResilientVmDeletionPolicyEnabled

Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ResiliencyPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ResiliencyPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ResiliencyPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ResiliencyPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ResiliencyPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to