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.
| Action | Description |
|---|---|
| start | Starts the virtual machine. Not a valid action if the machine is already in running state |
| stop | Stops the virtual machine. Not a valid action if the machine is already in stop, shutdown, turnoff, or hibernate state |
| shutdown | Powers off the virtual machine |
| turnoff | Powers off the virtual machine |
| restart | Restarts a virtual machine |
| deallocate | Deallocates the virtual machine. Not a valid action if the machine is already in deallocate, stop, turnoff, restart, or hibernate state |
| hibernate | Deallocates the virtual machine and adds the hibernate parameter to it |
| redeploy | Shuts down the virtual machine, moves it to a new node, and powers it back on |
| delete | Deletes a virtual machine |
Confirm Action. Add the parameter to confirm the action.
| Action | Description |
|---|---|
| Yes | Confirms the action. If you are in Session 0, then this action will be overruled and set to "No" |
| No | Does not confirm the action |
| True | Confirms the action. If you are in Session 0, then this action will be overruled and set to "No" |
| False | Does 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