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
description: This article tells how to configure the Start/Stop VMs during off-hours feature to support different use cases or scenarios.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 11/29/2022
6
+
ms.date: 01/04/2023
7
7
ms.topic: conceptual
8
8
ms.custom: engagement-fy23
9
9
---
10
10
11
11
# Configure Start/Stop VMs during off-hours
12
12
13
13
> [!NOTE]
14
-
> Start/Stop VM during off-hours, version 1 is deprecated and unavailable in the marketplace now. We recommend that you start using [version 2](../azure-functions/start-stop-vms/overview.md), which is now generally available.
15
-
The new version offers all existing capabilities and provides new features, such as multi-subscription support from a single Start/Stop instance. If you have the version 1 solution already deployed, you can still use the feature, and we will provide support until further announcement.
14
+
> Start/Stop VM during off-hours, version 1 is going to retire soon by CY23 and is unavailable in the marketplace now. We recommend that you start using [version 2](/articles/azure-functions/start-stop-vms/overview.md), which is now generally available. The new version offers all existing capabilities and provides new features, such as multi-subscription support from a single Start/Stop instance. If you have the version 1 solution already deployed, you can still use the feature, and we will provide support until retirement in CY23. The details on announcement will be shared soon.
16
15
17
16
This article describes how to configure the [Start/Stop VMs during off-hours](automation-solution-vm-management.md) feature to support the described scenarios. You can also learn how to:
18
17
@@ -159,7 +158,7 @@ The feature allows you to add VMs to be targeted or excluded.
159
158
160
159
There are two ways to ensure that a VM is included when the feature runs:
161
160
162
-
* Each of the parent [runbooks](automation-solution-vm-management.md#runbooks) of the feature has a `VMList` parameter. You can pass a comma-separated list of VM names (without spaces) to this parameter when scheduling the appropriate parent runbook for your situation, and these VMs will be included when the feature runs.
161
+
* Each of the parent runbooksof the feature has a `VMList` parameter. You can pass a comma-separated list of VM names (without spaces) to this parameter when scheduling the appropriate parent runbook for your situation, and these VMs will be included when the feature runs.
163
162
164
163
* To select multiple VMs, set `External_Start_ResourceGroupNames` and `External_Stop_ResourceGroupNames` with the resource group names that contain the VMs you want to start or stop. You can also set the variables to a value of `*` to have the feature run against all resource groups in the subscription.
165
164
@@ -183,6 +182,11 @@ Configuring the feature to just stop VMs at a certain time is supported. In this
183
182
184
183
1. Select **OK** to save your changes.
185
184
185
+
186
+
## Create alerts
187
+
188
+
Start/Stop VMs during off-hours doesn't include a predefined set of Automation job alerts. Review [Forward job data to Azure Monitor Logs](automation-manage-send-joblogs-log-analytics.md#azure-monitor-log-records) to learn about log data forwarded from the Automation account related to the runbook job results and how to create job failed alerts to support your DevOps or operational processes and procedures.
189
+
186
190
## Next steps
187
191
188
192
* To monitor the feature during operation, see [Query logs from Start/Stop VMs during off-hours](automation-solution-vm-management-logs.md).
description: This article describes how to remove the Start/Stop VMs during off-hours feature and unlink an Automation account from the Log Analytics workspace.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 11/29/2022
6
+
ms.date: 01/04/2023
7
7
ms.topic: conceptual
8
8
ms.custom: engagement-fy23
9
9
---
10
10
11
11
# Remove Start/Stop VMs during off-hours from Automation account
12
12
13
13
> [!NOTE]
14
-
> Start/Stop VM during off-hours, version 1 is deprecated and unavailable in the marketplace now. We recommend that you start using [version 2](../azure-functions/start-stop-vms/overview.md), which is now generally available.
15
-
The new version offers all existing capabilities and provides new features, such as multi-subscription support from a single Start/Stop instance. If you have the version 1 solution already deployed, you can still use the feature, and we will provide support until further announcement.
14
+
> Start/Stop VM during off-hours, version 1 is going to retire soon by CY23 and is unavailable in the marketplace now. We recommend that you start using [version 2](/articles/azure-functions/start-stop-vms/overview.md), which is now generally available. The new version offers all existing capabilities and provides new features, such as multi-subscription support from a single Start/Stop instance. If you have the version 1 solution already deployed, you can still use the feature, and we will provide support until retirement in CY23. The details on announcement will be shared soon.
16
15
17
16
After you enable the Start/Stop VMs during off-hours feature to manage the running state of your Azure VMs, you may decide to stop using it. Removing this feature can be done using one of the following methods based on the supported deployment models:
18
17
19
-
* Delete the resource group containing the Automation account and linked Azure Monitor Log Analytics workspace, each dedicated to support this feature.
20
-
* Unlink the Log Analytics workspace from the Automation account and delete the Automation account dedicated for this feature.
21
-
* Delete the feature from an Automation account and linked workspace that are supporting other management and monitoring objectives.
22
-
23
-
Deleting this feature only removes the associated runbooks, it doesn't delete the schedules or variables that were created during deployment or any custom-defined ones created after.
24
18
25
19
> [!NOTE]
26
-
> Before proceeding, verify there aren't any [Resource Manager locks](../azure-resource-manager/management/lock-resources.md) applied at the subscription, resource group, or resource which prevents accidental deletion or modification of critical resources. When you deploy the Start/Stop VMs during off-hours solution, it sets the lock level to **CanNotDelete** against several dependent resources in the Automation account (specifically its runbooks and variables). Any locks need to be removed before you can delete the Automation account.
20
+
> Before proceeding, verify there aren't any [Resource Manager locks](../azure-resource-manager/management/lock-resources.md) applied at the subscription, resource group, or resource which prevents accidental deletion or modification of critical resources. When you deploy the Start/Stop VMs during off-hours solution, it sets the lock level to **Cannot Delete** against several dependent resources in the Automation account (specifically its runbooks and variables). Any locks need to be removed before you can delete the Automation account.
27
21
28
22
## Delete the dedicated resource group
29
23
30
24
To delete the resource group, follow the steps outlined in the [Azure Resource Manager resource group and resource deletion](../azure-resource-manager/management/delete-resource-group.md) article.
31
25
32
-
## Delete the Automation account
33
-
34
-
To delete your Automation account dedicated to Start/Stop VMs during off-hours, perform the following steps.
35
-
36
-
1. Sign in to Azure at [https://portal.azure.com](https://portal.azure.com).
37
-
38
-
2. Navigate to your Automation account, and select **Linked workspace** under **Related resources**.
39
-
40
-
3. Select **Go to workspace**.
41
-
42
-
4. Click **Solutions** under **General**.
43
-
44
-
5. On the Solutions page, select **Start-Stop-VM[Workspace]**.
45
-
46
-
6. On the **VMManagementSolution[Workspace]** page, select **Delete** from the menu.
47
-
48
-
7. While the information is verified and the feature is deleted, you can track the progress under **Notifications**, chosen from the menu. You're returned to the Solutions page after the removal process.
49
-
50
-
### Unlink workspace from Automation account
51
-
52
-
There are two options for unlinking the Log Analytics workspace from your Automation account. You can perform this process from the Automation account or from the linked workspace.
53
-
54
-
To unlink from your Automation account, perform the following steps.
55
-
56
-
1. In the Azure portal, select **Automation Accounts**.
57
-
58
-
2. Open your Automation account and select **Linked workspace** under **Related Resources** on the left.
59
-
60
-
3. On the **Unlink workspace** page, select **Unlink workspace** and respond to prompts.
While it attempts to unlink the Log Analytics workspace, you can track the progress under **Notifications** from the menu.
65
-
66
-
To unlink from the workspace, perform the following steps.
67
-
68
-
1. In the Azure portal, select **Log Analytics workspaces**.
69
-
70
-
2. From the workspace, select **Automation Account** under **Related Resources**.
71
-
72
-
3. On the Automation Account page, select **Unlink account** and respond to prompts.
73
-
74
-
While it attempts to unlink the Automation account, you can track the progress under **Notifications** from the menu.
75
-
76
-
### Delete Automation account
77
-
78
-
1. In the Azure portal, select **Automation Accounts**.
79
-
80
-
2. Open your Automation account and select **Delete** from the menu.
81
-
82
-
While the information is verified and the account is deleted, you can track the progress under **Notifications**, chosen from the menu.
83
-
84
-
## Delete the feature
85
-
86
-
To delete Start/Stop VMs during off-hours from your Automation account, perform the following steps. The Automation account and Log Analytics workspace aren't deleted as part of this process. If you don't want to keep the Log Analytics workspace, you must manually delete it. For more information about deleting your workspace, see [Delete and recover Azure Log Analytics workspace](../azure-monitor/logs/delete-workspace.md).
87
-
88
-
1. Navigate to your Automation account, and select **Linked workspace** under **Related resources**.
89
-
90
-
2. Select **Go to workspace**.
91
-
92
-
3. Click **Solutions** under **General**.
93
-
94
-
4. On the Solutions page, select **Start-Stop-VM[Workspace]**.
95
-
96
-
5. On the **VMManagementSolution[Workspace]** page, select **Delete** from the menu.
97
-
98
-

99
-
100
-
6. In the Delete Solution window, confirm that you want to delete the feature.
101
-
102
-
7. While the information is verified and the feature is deleted, you can track the progress under **Notifications**, chosen from the menu. You're returned to the Solutions page after the removal process.
103
-
104
-
8. If you don't want to keep the [resources](automation-solution-vm-management.md#components) created by the feature or by you afterwards (such as, variables, schedules, etc.), you have to manually delete them from the account.
0 commit comments