ArmNetworkCloudModelFactory.VirtualMachinePlacementHint Method

Definition

public static Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint VirtualMachinePlacementHint(Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHintType hintType = default, Azure.Core.ResourceIdentifier resourceId = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineSchedulingExecution schedulingExecution = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHintPodAffinityScope scope = default);
static member 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 Shared Function VirtualMachinePlacementHint (Optional hintType As VirtualMachinePlacementHintType = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional schedulingExecution As VirtualMachineSchedulingExecution = Nothing, Optional scope As VirtualMachinePlacementHintPodAffinityScope = Nothing) As VirtualMachinePlacementHint

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.

Returns

A new VirtualMachinePlacementHint instance for mocking.

Applies to