azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Restore-AzOperationalInsightsWorkspace instead of New-AzOperationalInsightsWorkspace

Open PCNZ opened this issue 2 years ago • 1 comments

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.

PCNZ avatar Dec 16 '22 03:12 PCNZ

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

KrishnaG-MSFT avatar Dec 16 '22 04:12 KrishnaG-MSFT

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

KrishnaG-MSFT avatar Dec 17 '22 16:12 KrishnaG-MSFT