AZ Machine Power Action
    • Dark
      Light
    • PDF

    AZ Machine Power Action

    • Dark
      Light
    • PDF

    Article Summary

    Short description

    Performs a machine action on the selected Azure virtual machine.

    Detailed description

    To use the script, you need to provide the following input parameters:

    Action. The action to perform on the Azure VM. Possible values are shown in the table below.

    ActionDescription
    startStarts the virtual machine. Not a valid action if the machine is already in running state
    stopStops the virtual machine. Not a valid action if the machine is already in stop, shutdown, turnoff, or hibernate state
    shutdownPowers off the virtual machine
    turnoffPowers off the virtual machine
    restartRestarts a virtual machine
    deallocateDeallocates the virtual machine. Not a valid action if the machine is already in deallocate, stop, turnoff, restart, or hibernate state
    hibernateDeallocates the virtual machine and adds the hibernate parameter to it
    redeployShuts down the virtual machine, moves it to a new node, and powers it back on
    deleteDeletes a virtual machine

    Confirm Action. Add the parameter to confirm the action.

    ActionDescription
    YesConfirms the action. If you are in Session 0, then this action will be overruled and set to "No"
    NoDoes not confirm the action
    TrueConfirms the action. If you are in Session 0, then this action will be overruled and set to "No"
    FalseDoes not confirm the action

    Wait time (seconds). The maximum number of seconds to wait for the action to complete. If not specified or less than or equal to zero, no waiting will be done


    Was this article helpful?