Our setup is one vCenter instance with four clusters underneath it
I am trying to use the Move-VM command to automate the vMotion of multiple VMs off an ESX server I want to take down for maintenance but when I run the Move-VM command below to move the VM "TEST-VM" onto an ESX host called "ESXHOST02":
Move-VM "TEST-VM" -Destination ESXHOST02
I get the following error message:
"Could not find VIContainer with name 'ESXHOST02'
I am already connected to vCenter via the Connect-VIServer command
Any advice please?
You pointed me in the right direction, thanks. The output of "Get-VMHost" showed that the ESX servers name have the DNS FQDN attached so I had to address the ESX server as ESXHOST02.domain.local for example.