Placement Class

Definition

Describes the user-defined constraints for resource hardware placement.

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

Constructors

Name Description
Placement()

Initializes a new instance of Placement.

Properties

Name Description
ExcludeZones

This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.

IncludeZones

This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.

ZonePlacementPolicy

Specifies the policy for resource's placement in availability zone. Possible values are: Any (used for Virtual Machines), Auto (used for Virtual Machine Scale Sets) - An availability zone will be automatically picked by system as part of resource creation.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<Placement>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<Placement>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<Placement>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<Placement>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<Placement>.Write(ModelReaderWriterOptions)

Applies to