Share via


VirtualMachinePlacementHint Class

Definition

VirtualMachinePlacementHint represents a single scheduling hint of the virtual machine.

public class VirtualMachinePlacementHint
type VirtualMachinePlacementHint = class
Public Class VirtualMachinePlacementHint
Inheritance
VirtualMachinePlacementHint

Constructors

VirtualMachinePlacementHint(VirtualMachinePlacementHintType, ResourceIdentifier, VirtualMachineSchedulingExecution, VirtualMachinePlacementHintPodAffinityScope)

Initializes a new instance of VirtualMachinePlacementHint.

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.

Applies to