Hello,
Attached is script that I have been using to create virtual machines and it works fine when the VMs are being created to single datastores but doesn't like clustered datastores. I think the reason is that it creates the VM through the esx host (which doesn't know about the cluter) and not through vCenter (which does know about it.) Unfortunately I don't know how to rectify it.
Thanks,
Astra