Azure-docs: Permanent delete of Log Analytics

Created on 3 Jul 2020  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

In the Documentation (LINK) you write for permanent deletion:

Add '-force' tag to permanently delete your workspace

so use the command:

PS C:\>Remove-AzOperationalInsightsWorkspace -ResourceGroupName "resource-group-name" -Name "workspace-name" -Force

In the Docu of Remove-AzOperationalInsightsWorkspace Command the Force Flag is described as:

Forces the command to run without asking for user confirmation.

So for me it didn't work to delete a Log Analytics Workspace permanently via CLI.
Or did I miss here something?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Azure-Monitosvc Pri3 awaiting-product-team-response cxp logsubsvc product-question triaged

All 3 comments

@the-mod Thanks for your comment! We will review and provide an update as appropriate.

@the-mod Thanks for reaching out!! To troubleshoot or check whether the log analytics workspace is force deleted or not. I would suggest you to send mail to [email protected] by including your Azure subscription ID , Log analytics workspace name and a link to this GitHub thread (for context) so that I can check from my end and assist you accordingly.

@the-mod You can now delete workspaces using PowerShell as the bug has been fixed by the engineering team. Below are the new commands that were added. I would suggest you to update your Az.OperationalInsights module to latest version 2.3.0 and try to delete the workspace.

  • Added '-ForceDelete' option for 'Remove-AzOperationalInsightsworkspace'
  • Added new cmdlet 'Get-AzOperationalInsightsDeletedWorkspace'
  • Added new cmdlet 'Restore-AzOperationalInsightsWorkspace'
Was this page helpful?
0 / 5 - 0 ratings

Related issues

varma31 picture varma31  Â·  3Comments

bityob picture bityob  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments