Skip to content

Commit 650425c

Browse files
authored
Merge pull request #99714 from yossi-y/patch-33
Added comment on force delete and added powershell
2 parents 2e476cf + a65f916 commit 650425c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ This article explains the concept of Azure Log Analytics workspace soft-delete a
1616

1717
## Considerations when deleting a workspace
1818

19-
When you delete a Log Analytics workspace, a soft-delete operation is performed to allow the recovery of the workspace including its data and connected agents within 14 days, whether the deletion was accidental or intentional. After the soft-delete period, the workspace and its data are non-recoverable – data is queued for permanent deletion within 30 days and the workspace name is available and can be used to create a new workspace.
19+
When you delete a Log Analytics workspace, a soft-delete operation is performed to allow the recovery of the workspace including its data and connected agents within 14 days, whether the deletion was accidental or intentional.
20+
After the soft-delete period, the workspace resource and its data are non-recoverable – its data is queued for permanent deletion and completely purged within 30 days. The workspace name is 'released' and you can use it to create a new workspace.
21+
22+
> [!NOTE]
23+
> The soft-delete behavior cannot be turned off. We will shortly add an option to override the soft-delete when using a ‘force’ tag in the delete operation.
2024
2125
You want to exercise caution when you delete a workspace because there might be important data and configuration that may negatively impact your service operation. Review what agents, solutions, and other Azure services and sources that store their data in Log Analytics, such as:
2226

@@ -37,7 +41,7 @@ The workspace delete operation removes the workspace Resource Manager resource,
3741
3842
You can delete a workspace using [PowerShell](https://docs.microsoft.com/powershell/module/azurerm.operationalinsights/remove-azurermoperationalinsightsworkspace?view=azurermps-6.13.0), [REST API](https://docs.microsoft.com/rest/api/loganalytics/workspaces/delete), or in the [Azure portal](https://portal.azure.com).
3943

40-
### Delete workspace in Azure portal
44+
### Azure portal
4145

4246
1. To sign in, go to the [Azure portal](https://portal.azure.com).
4347
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**.
@@ -46,6 +50,11 @@ You can delete a workspace using [PowerShell](https://docs.microsoft.com/powersh
4650
4. When the confirmation message window appears asking you to confirm deletion of the workspace, click **Yes**.
4751
![Confirm deletion of workspace](media/delete-workspace/log-analytics-delete-workspace-confirm.png)
4852

53+
### PowerShell
54+
```PowerShell
55+
PS C:\>Remove-AzOperationalInsightsWorkspace -ResourceGroupName "ContosResourceGroup" -Name "MyWorkspace"
56+
```
57+
4958
## Recover workspace
5059

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

0 commit comments

Comments
 (0)