Partager via


VirtualMachinePlacementHint Class

Definition

VirtualMachinePlacementHint represents a single scheduling hint of the virtual machine.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.VirtualMachinePlacementHintTypeConverter))]
public class VirtualMachinePlacementHint : Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.IVirtualMachinePlacementHint
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.VirtualMachinePlacementHintTypeConverter))>]
type VirtualMachinePlacementHint = class
    interface IVirtualMachinePlacementHint
    interface IJsonSerializable
Public Class VirtualMachinePlacementHint
Implements IVirtualMachinePlacementHint
Inheritance
VirtualMachinePlacementHint
Attributes
Implements

Constructors

VirtualMachinePlacementHint()

Creates an new VirtualMachinePlacementHint instance.

Properties

HintType

The specification of whether this hint supports affinity or anti-affinity with the referenced resources.

ResourceId

The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node to host the virtual machine.

SchedulingExecution

The indicator of whether the hint is a hard or soft requirement during scheduling.

Scope

The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the case of node affinity.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of VirtualMachinePlacementHint.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of VirtualMachinePlacementHint.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.NetworkCloud.Models.Api20230701.IVirtualMachinePlacementHint.

FromJsonString(String)

Creates a new instance of VirtualMachinePlacementHint, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of VirtualMachinePlacementHint into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to