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/azure-monitor/platform/delete-workspace.md
+25-8Lines changed: 25 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ ms.subservice: logs
5
5
ms.topic: conceptual
6
6
author: bwren
7
7
ms.author: bwren
8
-
ms.date: 04/30/2020
8
+
ms.date: 05/19/2020
9
9
10
10
---
11
11
12
12
# Delete and recover Azure Log Analytics workspace
13
13
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.
15
15
16
16
## Considerations when deleting a workspace
17
17
@@ -42,12 +42,12 @@ You can delete a workspace using [PowerShell](https://docs.microsoft.com/powersh
42
42
43
43
### Azure portal
44
44
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).
46
46
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**.
47
47
3. In the list of Log Analytics workspaces, select a workspace and then click **Delete** from the top of the middle pane.
48
-

49
-
4. When the confirmation message window appears asking you to confirm deletion of the workspace, click **Yes**.
50
-

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
+

51
51
52
52
### PowerShell
53
53
```PowerShell
@@ -89,10 +89,27 @@ To permanently delete your workspace, use the [Workspaces - Delete REST]( https:
89
89
Where 'eyJ0eXAiOiJKV1Qi…' represents the full authorization token.
90
90
91
91
## 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.
4. Select the workspace and click **Recover** to recover that workspace.
92
110
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.
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).
0 commit comments