Skip to content

Commit 9ff901d

Browse files
authored
Merge pull request #189205 from SGSneha/20Feb-AccountRestore
Added a new article, updated TOC
2 parents 942d7a6 + 680f075 commit 9ff901d

10 files changed

+46
-7
lines changed

articles/automation/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
href: automation-role-based-access-control.md
9999
- name: Move Automation account to another subscription
100100
href: how-to/move-account.md
101-
- name: Delete Automation account
102-
href: delete-account.md
101+
- name: Manage Automation account
102+
href: delete-account.md
103103
- name: Migrate from Orchestrator to Azure Automation (Beta)
104104
href: automation-orchestrator-migration.md
105105
- name: Shared resources

articles/automation/delete-account.md

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
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
44
services: automation
55
ms.service: automation
66
ms.subservice: process-automation
@@ -9,10 +9,14 @@ ms.topic: conceptual
99
ms.custom: devx-track-azurepowershell
1010
---
1111

12-
# How to delete your Azure Automation account
12+
# Manage your Azure Automation account
1313

1414
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.
1515

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+
1620
Removing your Automation account can be done using one of the following methods based on the supported deployment models:
1721

1822
* 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
2428
* Unlink the Log Analytics workspace from the Automation account and delete the Automation account.
2529
* Delete the feature from your linked workspace, unlink the account from the workspace, and then delete the Automation account.
2630

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

29-
## Prerequisite
32+
### Prerequisite
33+
3034
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.
3135

3236
> [!NOTE]
@@ -156,6 +160,41 @@ While it attempts to unlink the Automation account, you can track the progress u
156160

157161
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.
158162

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+
159198
## Next steps
160199

161200
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).
117 KB
Loading
117 KB
Loading
72.6 KB
Loading
72.6 KB
Loading
72.5 KB
Loading
72.5 KB
Loading
15.5 KB
Loading
15.5 KB
Loading

0 commit comments

Comments
 (0)