Good evening,
I am creating an automation (in PowerShell) which adds VM to subclient. I use Add-CVVirtualMachine command, and it works pretty well, however I am not able to catch any (unseccesfull) outputs.
Example:
$aaa = Add-CVVirtualMachine -ClientName $VCenter -SubclientName $Subclient -EntityType VM -Entity $VMName
in case of errors $aaa is just null, despite on “INFO” showing:
INFO: Get-CVVirtualMachine: virtual machine not found having name nxxxxx]
INFO: PrepareContentBodyJson: virtual machine GUID not found for entity xxxxx]
INFO: Add-CVVirtualMachine: entity not found for add/remove virtual machine request
Thanks