@Oleg Aronov what do you mean by "regular workspaces"? Log Analytics was previous called Operational Insights, so when you run Get-AzOperationalInsightsWorkspace you get the log analytics workspaces only. Please go to Azure portal and compare it against the list you get by using the cmdlet.
Azure Log Analytics workspace via PowerShell
Oleg Aronov
106
Reputation points
Hello:
I wonder if there is a way to get all my Log Analytics workspaces from Azure via PowerShell.
I thought I could use "Get-AzOperationalInsightsWorkspace", but apparently, it will select just regular Workspaces, but not Log Analytics workspaces.
Please let me know, it's possible.
Thank you!
Accepted answer
-
Saurabh Sharma 23,806 Reputation points Microsoft Employee
2020-09-04T00:48:24.473+00:00