azure-docs
azure-docs copied to clipboard
Restore-AzOperationalInsightsWorkspace instead of New-AzOperationalInsightsWorkspace
In the PowerShell example provided to Recover a deleted Log Analytic Workspace, the command "New-AzOperationalInsightsWorkspace" is used. This should be "Restore-AzOperationalInsightsWorkspace".
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 7535b249-202f-2208-f718-68680e3ffb43
- Version Independent ID: 221a6617-c941-13f7-4ef2-f146e33d20a4
- Content: Delete and recover Azure Log Analytics workspace - Azure Monitor
- Content Source: articles/azure-monitor/logs/delete-workspace.md
- Service: azure-monitor
- Sub-service: logs
- GitHub Login: @bwren
- Microsoft Alias: bwren
@PCNZ Thanks for your comment! We will review and provide an update as appropriate.
@PCNZ As per this, New-AzOperationalInsightsWorkspace cmdlet also restores a soft-deleted workspace so technically we need not update the document but to avoid any confusion I have verified and updated the document as per your feedback. The change will go live in less than 24 hours. Thanks again for sharing the feedback.