如何在azure门户中永久删除旧的日志分析工作区?

Par*_*ngh 0 azure azure-log-analytics

我有两个 MS-Azure 订阅:SUB1 和 SUB2

在 SUB1 中,我创建了名为“nonprod-app-law”的 Log-analytics-workspace,几天后我将其删除。

在 SUB2 中,我创建了名为“nonprod-app-law”的日志分析工作区。但低于错误

错误:

0-06-28T19:29:24.0541229Z There were errors in your deployment. Error code: DeploymentFailed.

2020-06-28T19:29:24.0626384Z ##[error]Details:

2020-06-28T19:29:24.0627398Z ##[debug]Processed: ##vso[task.issue type=error;]Details:

2020-06-28T19:29:24.0629668Z ##[error]Conflict: The workspace name 'nonprod-app-law' is not unique

2020-06-28T19:29:24.0630757Z ##[debug]Processed: ##vso[task.issue type=error;]Conflict: The workspace name 'nonprod-app-law' is not unique
Run Code Online (Sandbox Code Playgroud)

Dre*_*ost 5

如果您在门户中删除,则默认行为是软删除。要强制删除,您需要运行一些 powershell

Remove-AzOperationalInsightsWorkspace -ResourceGroupName "resource-group-name" -Name "workspace-name" -ForceDelete
Run Code Online (Sandbox Code Playgroud)