Share via


AutomaticZoneRebalancingPolicy Class

Definition

The configuration parameters used while performing automatic AZ balancing.

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

Constructors

AutomaticZoneRebalancingPolicy()

Initializes a new instance of AutomaticZoneRebalancingPolicy.

Properties

Enabled

Specifies whether Automatic AZ Balancing should be enabled on the virtual machine scale set. The default value is false.

RebalanceBehavior

Type of rebalance behavior that will be used for recreating virtual machines in the scale set across availability zones. Default and only supported value for now is CreateBeforeDelete.

RebalanceStrategy

Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set across availability zones. Default and only supported value for now is Recreate.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AutomaticZoneRebalancingPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AutomaticZoneRebalancingPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AutomaticZoneRebalancingPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AutomaticZoneRebalancingPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AutomaticZoneRebalancingPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to