Azure-Samples/virtual-machines-python-manage

How can I get state of VM?

Closed this issue · 1 comments

How can I get state (running, stopped, etc...) of virtual machine? "instance_view" variable is None!

Found!
Just need to pass InstanceViewTypes.instance_view or "instanceView" value to expand parameter in get method.