The Stop Virtual Machines action can be used to stop many Azure virtual machines at a specific time of day. Once the virtual machines have been stopped, they can optionally be restarted after they have been stopped for a specific amount of time.
For example, 5 VMs can be stopped at 8pm and restarted 8 hours later with a single Stop Virtual Machines action.
Please see Common Action Settings for a description of settings common to all action types.
Indicates the resource groups in which virtual machines may be stopped. Valid options include:
- Any resource group - Virtual machines in any resource group may be stopped
- Select resource groups by name - Virtual machines in resource groups with matching names may be stopped
Resource Group Name
Comparison used when matching resource group names. Comparison is not case-sensitive.
Indicates the virtual machine names for virtual machines which may be stopped. Valid options include:
- Any virtual machine name - Virtual machines with any name may be stopped
- Select virtual machines by name - Virtual machines with matching names may be stopped
Virtual Machine Name
Comparison used when matching virtual machine names. Comparison is case-sensitive.
Compare Resource Tags
Indicates whether resource tags are compared. Only virtual machines with matching resource tags may be stopped.
Resource Tag Name
Indicates the name of the resource tag used to compare.
Resource Tag Value
Indicates the value of the resource tag used to compare.
Restart the Virtual Machines
Indicate whether the virtual machines should be automatically restarted later. The stopped time of the virtual machines must also be specified if this is checked.
Time Before Restart
Indicate the length of time the virtual machines should be stopped before they are restarted. This value is only required if "Restart the Virtual Machines" is checked.
Azure Commands Used
The following Azure commands are used. The credential should have permission to execute all of them.