Hi
I'm trying to automate the deployment of Windows and Linux VMs. I'm nearly there. One thing I notice in testing, occasionally when launching the New-VM command, with all the necessary parms I get the error in the title of this post. It doesn't stop the VM being created but it skips on to the next command in the script without waiting for the deployment to finish.
I then have the problem of having to sleep the script until the VM is completely deployed
I'm guessing this is due to re-using VM names. I can delete it in vCenter but something is left hanging around in the system and re-use causes the problem above
Has anyone else seen this? found what it is you additionally have to delete to avoid the error and therefore make the command wait until VM deployment completion before continuing
It is the determining how long to sleep when this happens that is causing me the problem
Any ideas anyone?