I was wondering if anyone had seen this error before when running Get-Task for the first time?
Get-Task : 10/07/2012 16:58:41 Get-Task An item with the same key has already been added.
At line:1 char:9
+ get-task <<<<
+ CategoryInfo :NotSpecified: (:) [Get-Task],
VimException
+ FullyQualifiedErrorId :
Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
n.ViCore.Cmdlets.Commands.GetTask
The command still runs successfully and if I run Get-Task again it runs with no error. If I disconnect from the VC and then reconnect and run the command again I get the error again.
This error is also occurring for any task I run for the first time after connecting to the VC..ie creating a new VM
if I run get-vmhost server.name | new-vm -name test01 I will get the same error but for New-VM An item with the same key has already been added.
Interestingly the progress indicator doesn't display but the VM is still created successfully.
If I run the same command to create a VM again with a different name there is no error, the progress indicator displays and the VM is created
I am running powercli 5.0
Vcenter 5.0
Esxi 5.0