VMware Cloud Community
ELSGESTION
Contributor
Contributor

Stop/Start vm

Hi,

Sorry for my english

I try  stop vm with powercli:

Shutdown-VMGuest $vm -Confirm:$false

it's work when I use the interface vmware but not with powercli this what i get

Shutdown-VMGuest : 6/14/2019 11:30:03 AM Stop-VMGuest Operation "Shutdown VM guest." failed for VM "myvm"

for the following reason: Current license or ESXi version prohibits execution of the requested operation.

it seems not work because of the license, but I want to know why it work with the interface and no with powercli

Cordially

0 Kudos
1 Reply
StephenMoll
Expert
Expert

When using the "free" license, ESXi is limited to "read only" access on the APIs.

So trying to do something that makes a change, like powering on or off a VM will fail, as this is not "read only" access.

Accessing the ESXi server using t he Web Client is not using the API and therefore permits these actions.

Good summary of what you get with Free ESXi here : https://www.virten.net/2018/05/free-esxi-6-7-how-to-download-and-get-license-keys/

0 Kudos