Hi, Can we pull out all the log analytics workspace details from all of the subscription

Copper Contributor

Hi, Can we pull out all the log analytics workspace details from all of the subscription in same tenant ?any way to do so scripts or query?

2 Replies

@abhilearning9876 

I would use Azure Resource Graph (ARG) for this for info about the Workspaces, there is a good built-in example query you can use or edit:

From the Azure Portal --> Log Analytics workspaces --> "Open Query" --> then press [Run Query]

Screenshot 2021-04-15 093021.jpg
You can select "All subscriptions" or the required ones
Screenshot 2021-04-15 093103.jpg