Skip to content

Commit b6fb93d

Browse files
authored
Merge pull request #222855 from SnehaSudhirG/04Jan-StartStopVM
StartStopVM-Feedback incorporated, removed article
2 parents 829516e + c126d58 commit b6fb93d

11 files changed

+37
-300
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5988,6 +5988,11 @@
59885988
"redirect_url": "/azure/automation/create-azure-automation-account-portal",
59895989
"redirect_document_id": false
59905990
},
5991+
{
5992+
"source_path_from_root": "/articles/automation/automation-solution-vm-management-enable.md",
5993+
"redirect_url": "/azure/automation/automation-solution-vm-management",
5994+
"redirect_document_id": false
5995+
},
59915996
{
59925997
"source_path_from_root": "/articles/update-center/enable-machines.md",
59935998
"redirect_url": "/azure/update-center/updates-maintenance-schedules",

articles/automation/TOC.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@
292292
href: automation-solution-vm-management.md
293293
- name: Support regions for linked Log Analytics workspace
294294
href: how-to/region-mappings.md
295-
- name: Enable Start/Stop VMs during off-hours
296-
href: automation-solution-vm-management-enable.md
297295
- name: Configure Stop/Start VMs during off-hours
298296
href: automation-solution-vm-management-config.md
299297
- name: Query logs from Start/Stop VMs during off-hours

articles/automation/automation-solution-vm-management-config.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ title: Configure Azure Automation Start/Stop VMs during off-hours
33
description: This article tells how to configure the Start/Stop VMs during off-hours feature to support different use cases or scenarios.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 11/29/2022
6+
ms.date: 01/04/2023
77
ms.topic: conceptual
88
ms.custom: engagement-fy23
99
---
1010

1111
# Configure Start/Stop VMs during off-hours
1212

1313
> [!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.
1615
1716
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:
1817

@@ -159,7 +158,7 @@ The feature allows you to add VMs to be targeted or excluded.
159158

160159
There are two ways to ensure that a VM is included when the feature runs:
161160

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.
163162

164163
* 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.
165164

@@ -183,6 +182,11 @@ Configuring the feature to just stop VMs at a certain time is supported. In this
183182

184183
1. Select **OK** to save your changes.
185184

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+
186190
## Next steps
187191

188192
* To monitor the feature during operation, see [Query logs from Start/Stop VMs during off-hours](automation-solution-vm-management-logs.md).

articles/automation/automation-solution-vm-management-enable.md

Lines changed: 0 additions & 83 deletions
This file was deleted.

articles/automation/automation-solution-vm-management-remove.md

Lines changed: 3 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -3,105 +3,26 @@ title: Remove Azure Automation Start/Stop VMs during off-hours overview
33
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.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 11/29/2022
6+
ms.date: 01/04/2023
77
ms.topic: conceptual
88
ms.custom: engagement-fy23
99
---
1010

1111
# Remove Start/Stop VMs during off-hours from Automation account
1212

1313
> [!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.
1615
1716
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:
1817

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.
2418

2519
> [!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.
2721
2822
## Delete the dedicated resource group
2923

3024
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.
3125

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.
61-
62-
![Unlink workspace page](media/automation-solution-vm-management-remove/automation-unlink-workspace-blade.png)
63-
64-
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-
![Delete VM management feature](media/automation-solution-vm-management/vm-management-solution-delete.png)
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.
10526

10627
## Next steps
10728

0 commit comments

Comments
 (0)