Aracılığıyla paylaş


New-AzNetworkCloudVirtualMachinePlacementHintObject

Create an in-memory object for VirtualMachinePlacementHint.

Sözdizimi

Default EnterprisePublishing

New-AzNetworkCloudVirtualMachinePlacementHintObject
    -HintType <VirtualMachinePlacementHintType>
    -ResourceId <String>
    -SchedulingExecution <VirtualMachineSchedulingExecution>
    -Scope <VirtualMachinePlacementHintPodAffinityScope>
    [<CommonParameters>]

Description

Create an in-memory object for VirtualMachinePlacementHint.

Örnekler

Example 1: Create an in-memory object for VirtualMachinePlacementHint.

New-AzNetworkCloudVirtualMachinePlacementHintObject -HintType "Affinity" -ResourceId "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName" -SchedulingExecution "Hard" -Scope "Machine"
HintType ResourceId                                                                                                     SchedulingExecution Scope
-------- ----------                                                                                                     ------------------- -----
Affinity /subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName Hard                Machine

Creates an in-memory object for VirtualMachinePlacementHint.

Parametreler

-HintType

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

Parametre özellikleri

Tür:VirtualMachinePlacementHintType
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:False
İşlem hattından özellik adına göre değer:False
Kalan argümanlardan elde edilen değer:False

-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.

Parametre özellikleri

Tür:String
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:False
İşlem hattından özellik adına göre değer:False
Kalan argümanlardan elde edilen değer:False

-SchedulingExecution

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

Parametre özellikleri

Tür:VirtualMachineSchedulingExecution
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:False
İşlem hattından özellik adına göre değer:False
Kalan argümanlardan elde edilen değer:False

-Scope

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

Parametre özellikleri

Tür:VirtualMachinePlacementHintPodAffinityScope
Default value:None
Joker karakterleri destekler:False
DontShow:False

Parametre kümeleri

(All)
Position:Named
Zorunlu:True
İşlem hattından gelen değer:False
İşlem hattından özellik adına göre değer:False
Kalan argümanlardan elde edilen değer:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Çıkışlar

VirtualMachinePlacementHint