New-AzVMwareVmHostPlacementPolicyPropertyObject
Create an in-memory object for VmHostPlacementPolicyProperties.
Syntax
Default (Default)
New-AzVMwareVmHostPlacementPolicyPropertyObject
-AffinityType <String>
-HostMember <String[]>
-VMMember <String[]>
[-AffinityStrength <String>]
[-AzureHybridBenefitType <String>]
[-DisplayName <String>]
[-State <String>]
[<CommonParameters>]
Description
Create an in-memory object for VmHostPlacementPolicyProperties.
Examples
Example 1: Create an in-memory object for VmHostPlacementPolicyProperties.
New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"}
AffinityStrength :
AffinityType : AntiAffinity
AzureHybridBenefitType :
DisplayName :
HostMember : {System.Collections.Hashtable}
ProvisioningState :
State :
Type : VmHost
VMMember : {System.Collections.Hashtable}
Create an in-memory object for VmHostPlacementPolicyProperties.
Parameters
-AffinityStrength
vm-host placement policy affinity strength (should/must).
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-AffinityType
placement policy affinity type.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-AzureHybridBenefitType
placement policy azure hybrid benefit opt-in type.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DisplayName
Display name of the placement policy.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-HostMember
Host members list.
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-State
Whether the placement policy is enabled or disabled.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-VMMember
Virtual machine members list.
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: 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 .
Outputs