Skip to main content

Get VM status

Read a virtual machine's power state (running, stopped, deallocated and so on) and provisioning state from its instance view.

Command in the Azure VMs toolkit · id ooa.azure_vm/get_vm_status · 3 inputs (2 required), 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoazureName of the session opened by Connect.
Resource groupStringYesResource group of the virtual machine.
VM nameStringYesName of the virtual machine.

Outputs​

OutputTypeWhat it is
power_stateStringPower state: starting, running, stopping, stopped, deallocating, deallocated or unknown.
provisioning_stateStringProvisioning state, e.g. succeeded, updating or failed.
display_statusStringAzure's text for the power state, e.g. VM running.
statusesTableColumns: code, level, display_status, time.