Azure Log Analytics workspace via PowerShell

Oleg Aronov 106 Reputation points
2020-09-03T22:00:12.263+00:00

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!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,209 questions
{count} votes

Accepted answer
  1. Saurabh Sharma 23,806 Reputation points Microsoft Employee
    2020-09-04T00:48:24.473+00:00

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

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.