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

%3CLINGO-SUB%20id%3D%22lingo-sub-2271992%22%20slang%3D%22en-US%22%3EHi%2C%20Can%20we%20pull%20out%20all%20the%20log%20analytics%20workspace%20details%20from%20all%20of%20the%20subscription%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2271992%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20Can%20we%20pull%20out%20all%20the%20log%20analytics%20workspace%20details%20from%20all%20of%20the%20subscription%20in%20same%20tenant%20%3Fany%20way%20to%20do%20so%20scripts%20or%20query%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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