Skip to content

Commit 888cbcf

Browse files
authored
Merge pull request #115549 from bwren/am-workspace-recovery
Azure Monitor workspace recovery portal
2 parents 4ad55e9 + 1e0e10a commit 888cbcf

File tree

5 files changed

+25
-8
lines changed

5 files changed

+25
-8
lines changed

articles/azure-monitor/platform/delete-workspace.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ms.subservice: logs
55
ms.topic: conceptual
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/30/2020
8+
ms.date: 05/19/2020
99

1010
---
1111

1212
# Delete and recover Azure Log Analytics workspace
1313

14-
This article explains the concept of Azure Log Analytics workspace soft-delete and how to recover deleted workspace.
14+
This article explains the concept of Azure Log Analytics workspace soft-delete and how to recover deleted workspace.
1515

1616
## Considerations when deleting a workspace
1717

@@ -42,12 +42,12 @@ You can delete a workspace using [PowerShell](https://docs.microsoft.com/powersh
4242

4343
### Azure portal
4444

45-
1. To sign in, go to the [Azure portal](https://portal.azure.com).
45+
1. Sign in to the [Azure portal](https://portal.azure.com).
4646
2. In the Azure portal, select **All services**. In the list of resources, type **Log Analytics**. As you begin typing, the list filters based on your input. Select **Log Analytics workspaces**.
4747
3. In the list of Log Analytics workspaces, select a workspace and then click **Delete** from the top of the middle pane.
48-
![Delete option from Workspace properties pane](media/delete-workspace/log-analytics-delete-workspace.png)
49-
4. When the confirmation message window appears asking you to confirm deletion of the workspace, click **Yes**.
50-
![Confirm deletion of workspace](media/delete-workspace/log-analytics-delete-workspace-confirm.png)
48+
4. A confirmation page appears that shows the data ingestion to the workspace over the past week. Type in the name of the workspace to confirm and then click **Delete**.
49+
50+
![Confirm deletion of workspace](media/delete-workspace/workspace-delete.png)
5151

5252
### PowerShell
5353
```PowerShell
@@ -89,10 +89,27 @@ To permanently delete your workspace, use the [Workspaces - Delete REST]( https:
8989
Where 'eyJ0eXAiOiJKV1Qi…' represents the full authorization token.
9090
9191
## Recover workspace
92+
When you delete a Log Analytics workspace accidentally or intentionally, the service places the workspace in a soft-delete state making it inaccessible to any operation. The name of the deleted workspace is preserved during the soft-delete period and can't be used for creating a new workspace. After the soft-delete period, the workspace is non-recoverable, it is scheduled for permanent deletion and its name it released and can be used for creating a new workspace.
93+
94+
You can recover your workspace during the soft-delete period including its data, configuration and connected agents. You need to have Contributor permissions to the subscription and resource group where the workspace was located before the soft-delete operation. The workspace recover is performed by creating a Log Analytics workspace with the details of the deleted workspace including:
95+
96+
- Subscription ID
97+
- Resource Group name
98+
- Workspace name
99+
- Region
100+
101+
### Azure portal
102+
103+
1. Sign in to the [Azure portal](https://portal.azure.com).
104+
2. In the Azure portal, select **All services**. In the list of resources, type **Log Analytics**. As you begin typing, the list filters based on your input. Select **Log Analytics workspaces**. You see the list of workspaces you have in the selected scope.
105+
3. Click **Recover** on the top left menu to open a page with workspaces in soft-delete state that can be recovered.
106+
107+
![Recover workspace](media/delete-workspace/recover-menu.png)
108+
109+
4. Select the workspace and click **Recover** to recover that workspace.
92110
93-
If you have Contributor permissions to the subscription and resource group where the workspace was associated before the soft-delete operation, you can recover it during its soft-delete period including its data, configuration and connected agents. After the soft-delete period, the workspace is non-recoverable and assigned for permanent deletion. Names of deleted workspaces are preserved during the soft-delete period and can't be used when attempting to create a new workspace.
111+
![Recover workspace](media/delete-workspace/recover-workspace.png)
94112
95-
You can recover your workspace by creating a workspace with the details of the deleted workspace, these include *Subscription ID*, *Resource Group name*, *Workspace name* and *Region*. If your resource group was also deleted and doesn’t exist, create a resource group with the same name that was used before the delete, then create a workspace using any of these methods: [Azure portal](https://docs.microsoft.com/azure/azure-monitor/learn/quick-create-workspace), [PowerShell](https://docs.microsoft.com/powershell/module/az.operationalinsights/New-AzOperationalInsightsWorkspace) or [REST API](https://docs.microsoft.com/rest/api/loganalytics/workspaces/createorupdate).
96113
97114
### PowerShell
98115
```PowerShell
89.1 KB
Loading
84.6 KB
Loading
54.3 KB
Loading
302 KB
Loading

0 commit comments

Comments
 (0)