Edit

Share via


New-AzVMwareVMPlacementPolicyPropertyObject

Create an in-memory object for VMPlacementPolicyProperties.

Syntax

Default (Default)

New-AzVMwareVMPlacementPolicyPropertyObject
    -AffinityType <String>
    -VMMember <String[]>
    [-DisplayName <String>]
    [-State <String>]
    [<CommonParameters>]

Description

Create an in-memory object for VMPlacementPolicyProperties.

Examples

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

New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"}
AffinityType      : Affinity
DisplayName       :
ProvisioningState :
State             :
Type              : VmVm
VMMember          : {System.Collections.Hashtable}

Create an in-memory object for VMPlacementPolicyProperties.

Parameters

-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

-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

-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

VMPlacementPolicyProperties