@danp
I am getting this error

You attempted an operation on a VM that was not in an appropriate power state at the time; for example, you attempted to start a VM that was already running. The parameters returned are the VM's handle, and the expected and actual VM state at the time of the call. vm: 2fc2b09b-2249-164a-9f60-e408d9c3db82 (Cert test-host_2021-04-07T16:19:20.356Z) expected: running actual: halted

the last portion states that I can only do this command on a running vm

Edit:
I created a new vm using terraform and changed ran the suggested command. The result is that the vm operates normally.

The issue now is what is causing this to happen? I don't believe this was an issue for me before.

Thanks for your help.