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/delete-account.md
+44-5Lines changed: 44 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Delete your Azure Automation account
3
-
description: This article tells how to delete your Automation account across the different configuration scenarios.
2
+
title: Manage your Azure Automation account
3
+
description: This article tells how to delete and your Automation account across the different configuration scenarios and restore a deleted Automation account
4
4
services: automation
5
5
ms.service: automation
6
6
ms.subservice: process-automation
@@ -9,10 +9,14 @@ ms.topic: conceptual
9
9
ms.custom: devx-track-azurepowershell
10
10
---
11
11
12
-
# How to delete your Azure Automation account
12
+
# Manage your Azure Automation account
13
13
14
14
After you enable an Azure Automation account to help automate IT or business process, or enable its other features to support operations management of your Azure and non-Azure machines such as Update Management, you may decide to stop using the Automation account. If you have enabled features that depend on integration with an Azure Monitor Log Analytics workspace, there are more steps required to complete this action.
15
15
16
+
This article tells you how to completely remove your Automation account through the Azure portal, using Azure PowerShell, the Azure CLI, or the REST API and restore your deleted Azure Automation account.
17
+
18
+
## Delete your Azure Automation account
19
+
16
20
Removing your Automation account can be done using one of the following methods based on the supported deployment models:
17
21
18
22
* Delete the resource group containing the Automation account.
@@ -24,9 +28,9 @@ Removing your Automation account can be done using one of the following methods
24
28
* Unlink the Log Analytics workspace from the Automation account and delete the Automation account.
25
29
* Delete the feature from your linked workspace, unlink the account from the workspace, and then delete the Automation account.
26
30
27
-
This article tells you how to completely remove your Automation account through the Azure portal, using Azure PowerShell, the Azure CLI, or the REST API.
28
31
29
-
## Prerequisite
32
+
### Prerequisite
33
+
30
34
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. If you've deployed 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). Remove any locks before deleting the Automation account.
31
35
32
36
> [!NOTE]
@@ -156,6 +160,41 @@ While it attempts to unlink the Automation account, you can track the progress u
156
160
157
161
After the Automation account is successfully unlinked from the workspace, perform the steps in the [standalone Automation account](#delete-a-standalone-automation-account) section to delete the account.
158
162
163
+
## Restore a deleted Automation account
164
+
165
+
You can recover a deleted automation account from Azure portal.
166
+
167
+
To recover an Automation account, ensure that the following conditions are met:
168
+
- You've created the Automation account with the Azure Resource Manager deployment model and deleted within the past 30 days.
169
+
- Before you attempt to recover a deleted Automation account, ensure that resource group for that account exists.
170
+
171
+
> [!NOTE]
172
+
> You can't recover your Automation account if the resource group is deleted.
173
+
174
+
### Recover a deleted Automation account
175
+
176
+
1. Sign in to the [Azure portal](https://portal.azure.com).
177
+
1. Go to your Automation account.
178
+
1. On the **Automation Accounts** page, select **Manage deleted accounts**.
179
+
180
+
:::image type="content" source="media/restore-deleted-account/automation-accounts-main-page-inline.png" alt-text="Screenshot showing the selection of Manage deleted accounts option." lightbox="media/restore-deleted-account/automation-accounts-main-page-expanded.png":::
181
+
182
+
1. In the **Manage deleted automation accounts** pane, select **Subscription** from the drop-down list.
183
+
184
+
:::image type="content" source="media/restore-deleted-account/select-subscription-inline.png" alt-text="Screenshot showing the selection of subscription." lightbox="media/restore-deleted-account/select-subscription-expanded.png":::
185
+
186
+
Deleted accounts list in that subscription is displayed.
187
+
188
+
1. Select the checkbox for the accounts you want to restore and click **Recover**.
189
+
190
+
:::image type="content" source="media/restore-deleted-account/recover-automation-account-inline.png" alt-text="Screenshot showing the recovery of deleted Automation account." lightbox="media/restore-deleted-account/recover-automation-account-expanded.png":::
191
+
192
+
A notification appears to confirm that account is restored.
193
+
194
+
:::image type="content" source="media/restore-deleted-account/notification-inline.png" alt-text="Screenshot showing the notification of restoring the deleted Automation account." lightbox="media/restore-deleted-account/notification-expanded.png":::
195
+
196
+
197
+
159
198
## Next steps
160
199
161
200
To create an Automation account from the Azure portal, see [Create a standalone Azure Automation account](automation-create-standalone-account.md). If you prefer to create your account using a template, see [Create an Automation account using an Azure Resource Manager template](quickstart-create-automation-account-template.md).
0 commit comments