Here's my command....
New-VM -Name 'jomama' -Template 'win2016x64' -Datastore 'vmware-t1-nfs01' -DiskStorageFormat Thin -Location (Get-CLuster -Name 'doofus' | Get-Datacenter | Get-Folder -Name 'Discovered virtual machine') -ResourcePool 'doofus' -OSCustomizationSpec 'win2016x64'
The VM get's created and it is in the correct folder and the correct cluster and correct datacenter, but then I get the below error message....
New-VM : 12/6/2018 3:32:51 PM New-VM Index was outside the bounds of the array.
At line:1 char:1
+ New-VM -Name 'yomama' -Template 'win2016x64' -Datastore 'vmware-t1-nf ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-VM], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM
Admittedly, this worked totally fine yesterday.
Now, the VM name "jomama" has been my name of choice for my testing and has been cloned and deleted maybe 100 times.
Not sure if it means anything though.
There are a few more commands but they all bomb out here because they depend on the first commandline to finish. When the failure occurs, it tries to contimue on to the nexe series of commands but they all fail because the first command above has not completed.
WOW, OK then...……....lol
So I closed my PowerCLI window/session launched a new one and it all works fine now.
What's the deal Oatmeal?
(◔/‿\◔)
WOW, OK then...……....lol
So I closed my PowerCLI window/session launched a new one and it all works fine now.
What's the deal Oatmeal?
(◔/‿\◔)
