Skip to main content

Stop VM

Stop a virtual machine: deallocate it (compute is no longer billed) or only power it off (the hardware stays reserved and billed).

Command in the Azure VMs toolkit · id ooa.azure_vm/stop_vm · 7 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoazureName of the session opened by Connect.
Resource groupStringYesResource group of the virtual machine.
VM nameStringYesName of the virtual machine.
ModeStringNodeallocatedeallocate: release the hardware so compute is not billed; power_off: stop the VM but keep (and pay for) its hardware.
Skip shutdownBooleanNofalsePower off without a clean shutdown of the operating system (power_off only).
WaitBooleanNotrueWait until Azure has finished; otherwise the step ends as soon as Azure has accepted the request.
Timeout (seconds)NumberNo900Stop waiting after this many seconds and fail.

Outputs​

OutputTypeWhat it is
statusStringSucceeded when waited for, otherwise Accepted.