Search code examples
powershellpowercli

powercli: how to list the vcenters connected to vcloud director


I need to list all vcenters connected to vcloud director via powercli but I can't find a way to do it. This is supposed to be trivial: any help is appreciated. Thanks!


Solution

  • What version of PowerCLI are you using currently? Probably doesn't matter much but I would suggest that you make sure you are using the latest version to ensure all the help files are up to date and you have all the cmdlet improvements.

    That said, you have to first connect to a cluster or whatever your vcenter host is, then run the search-cloud -QueryType VirtualCenter command. That is a valid answer so I'm not sure why the other post was down-voted.