VirtualMachinePlacement Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the user-defined constraints for resource hardware placement.
public class VirtualMachinePlacement : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.VirtualMachinePlacement>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.VirtualMachinePlacement>
type VirtualMachinePlacement = class
interface IJsonModel<VirtualMachinePlacement>
interface IPersistableModel<VirtualMachinePlacement>
Public Class VirtualMachinePlacement
Implements IJsonModel(Of VirtualMachinePlacement), IPersistableModel(Of VirtualMachinePlacement)
- Inheritance
-
VirtualMachinePlacement
- Implements
Constructors
| VirtualMachinePlacement() |
Initializes a new instance of VirtualMachinePlacement. |
Properties
| 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
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
| IJsonModel<VirtualMachinePlacement>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<VirtualMachinePlacement>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<VirtualMachinePlacement>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<VirtualMachinePlacement>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<VirtualMachinePlacement>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |