Share via


ZoneAllocationPolicy Class

Definition

The configuration parameters for zone allocation of a virtual machine scale set.

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

Constructors

Name Description
ZoneAllocationPolicy()

Initializes a new instance of ZoneAllocationPolicy.

Properties

Name Description
MaxInstancePercentPerZonePolicy

The configuration parameters used to limit the number of virtual machines per availability zone in the virtual machine scale set.

MaxZoneCount

The maximum number of availability zones to use if the ZonePlacementPolicy is 'Auto'. If not specified, all availability zones will be used.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ZoneAllocationPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ZoneAllocationPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ZoneAllocationPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ZoneAllocationPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ZoneAllocationPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to