Share via


VirtualMachinePlacementHint Constructor

Definition

Initializes a new instance of VirtualMachinePlacementHint.

public VirtualMachinePlacementHint (Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHintType hintType, Azure.Core.ResourceIdentifier resourceId, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineSchedulingExecution schedulingExecution, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHintPodAffinityScope scope);
new Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint : Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHintType * Azure.Core.ResourceIdentifier * Azure.ResourceManager.NetworkCloud.Models.VirtualMachineSchedulingExecution * Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHintPodAffinityScope -> Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint
Public Sub New (hintType As VirtualMachinePlacementHintType, resourceId As ResourceIdentifier, schedulingExecution As VirtualMachineSchedulingExecution, scope As VirtualMachinePlacementHintPodAffinityScope)

Parameters

hintType
VirtualMachinePlacementHintType

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

resourceId
ResourceIdentifier

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
VirtualMachineSchedulingExecution

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

scope
VirtualMachinePlacementHintPodAffinityScope

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

Exceptions

resourceId is null.

Applies to