hi,
im trying to configure some Infrastructure Traffic Resource, but while creating a dpec object i get this error:
$dvswitch = get-vdswitch | select -First 1
$spec = New-Object VMware.Vim.VMwareDVSConfigSpec
$spec.configVersion = $DVSwitch.ExtensionData.Config.ConfigVersion
$spec.InfrastructureTrafficResourceConfig = New-Object VMware.Vim.DvsHostInfrastructureTrafficResource
$spec.InfrastructureTrafficResourceConfig.AllocationInfo = New-Object VMware.Vim.DvsHostInfrastructureTrafficResourceAllocation
The property 'AllocationInfo' cannot be found on this object. Verify that the property exists and can be set.
At line:1 char:5
+ $spec.InfrastructureTrafficResourceConfig.AllocationInfo = New-Object VMware ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException