If I understood you correctly, you can run any ESXi command-line with VMware PowerCLI that is connected to a vCenter server inside your vSphere environment.Please mark my comment as the Correct Answer if this solution resolved your problem
Doesn't PowerCLI require me to have ESX credentials? Not sure I can get them from the VCenter API.
I suspect that VC does not escrow passwords, but rather some kind of refreshable auth token.
And we would be asking customers to install PowerCLI on all of their vcenters, yes?
Investigating VMware doc a bit, installing powercli on vcenters is not uncommon, and required for some VMware products (Configuration Manager for example).
So how do I get to the auth token?
I guess I'll try the powerCLi forum too.
When you are connected to the vCenter, you can use the esxcli commands via the Get-EsxCli cmdlet.
This will work for all ESXi nodes added to that vCenter, and without needing to provide ESXi credentials.
You will need to provide credentials to connect to the vCenter with the Connect-VIServer cmdlet.
Btw, installing PowerCLI on a vCenter is not advisable.
I know this was possible with the vCenter on Windows, but with the VCSA that will, in any case, be nearly impossible.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz