You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/automation/automation-solution-vm-management.md
+1-31Lines changed: 1 addition & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Start/Stop VMs during off-hours solution
3
3
description: This VM management solution starts and stops your Azure Resource Manager virtual machines on a schedule and proactively monitors from Azure Monitor logs.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 12/04/2019
6
+
ms.date: 02/25/2020
7
7
ms.topic: conceptual
8
8
---
9
9
# Start/Stop VMs during off-hours solution in Azure Automation
@@ -194,36 +194,6 @@ In an environment that includes two or more components on multiple VMs supportin
194
194
1. This scenario does not honor the **External_Start_ResourceGroupNames** and **External_Stop_ResourceGroupnames** variables. For this scenario, you need to create your own Automation schedule. For details, see [Scheduling a runbook in Azure Automation](../automation/automation-schedules.md).
195
195
1. Preview the action and make any necessary changes before implementing against production VMs. When ready, manually execute the monitoring-and-diagnostics/monitoring-action-groupsrunbook with the parameter set to **False**, or let the Automation schedule **Sequenced-StartVM** and **Sequenced-StopVM** run automatically following your prescribed schedule.
196
196
197
-
### Scenario 3: Start/Stop automatically based on CPU utilization
198
-
199
-
This solution can help manage the cost of running virtual machines in your subscription by evaluating Azure VMs that aren't used during non-peak periods, such as after hours, and automatically shutting them down if processor utilization is less than x%.
200
-
201
-
By default, the solution is pre-configured to evaluate the percentage CPU metric to see if average utilization is 5 percent or less. This scenario is controlled by the following variables and can be modified if the default values do not meet your requirements:
202
-
203
-
- External_AutoStop_MetricName
204
-
- External_AutoStop_Threshold
205
-
- External_AutoStop_TimeAggregationOperator
206
-
- External_AutoStop_TimeWindow
207
-
208
-
You can enable either targeting the action against a subscription and resource group, or targeting a specific list of VMs, but not both.
209
-
210
-
#### Target the stop action against a subscription and resource group
211
-
212
-
1. Configure the **External_Stop_ResourceGroupNames** and **External_ExcludeVMNames** variables to specify the target VMs.
213
-
1. Enable and update the **Schedule_AutoStop_CreateAlert_Parent** schedule.
214
-
1. Run the **AutoStop_CreateAlert_Parent** runbook with the ACTION parameter set to **start** and the WHATIF parameter set to **True** to preview your changes.
215
-
216
-
#### Target the start and stop action by VM list
217
-
218
-
1. Run the **AutoStop_CreateAlert_Parent** runbook with the ACTION parameter set to **start**, add a comma-separated list of VMs in the *VMList* parameter, and then set the WHATIF parameter to **True**. Preview your changes.
219
-
1. Configure the **External_ExcludeVMNames** parameter with a comma-separated list of VMs (VM1, VM2, VM3).
220
-
1. This scenario does not honor the **External_Start_ResourceGroupNames** and **External_Stop_ResourceGroupnames** variables. For this scenario, you need to create your own Automation schedule. For details, see [Scheduling a runbook in Azure Automation](../automation/automation-schedules.md).
221
-
222
-
Now that you have a schedule for stopping VMs based on CPU utilization, you need to enable one of the following schedules to start them.
223
-
224
-
- Target start action by subscription and resource group. See the steps in [Scenario 1](#scenario-1-startstop-vms-on-a-schedule) for testing and enabling **Scheduled-StartVM** schedules.
225
-
- Target start action by subscription, resource group, and tag. See the steps in [Scenario 2](#scenario-2-startstop-vms-in-sequence-by-using-tags) for testing and enabling **Sequenced-StartVM** schedules.
226
-
227
197
## Solution components
228
198
229
199
This solution includes preconfigured runbooks, schedules, and integration with Azure Monitor logs so you can tailor the startup and shutdown of your virtual machines to suit your business needs.
0 commit comments