Get all connections in to WorkSpaces

Category: azure operational insights

Question

Xavier Jiménez on Sat, 27 Oct 2018 15:18:18


Hello,

Actually I've made a script to get all workspace and output the connections. The problem is that almost all connections have been deprecated since now analitycs become Diagnostic Log and that ones don't report on any parameter of WorkSpace Intelligence Packs.

I think about get a script for get all resources per type and then in every resource find if he is connected in any Workspace. But since is that will a huge script and non effience I would preffer to avoid.

So my question is.. ¿There is a way or existing script to get all workspaces with his connections ? (Workspace Name, resource linked, type of log activated)

Connection --> Diagnostic Logs connected to a Workspace (KV,Storage,NSG,VM....) Since Activity Logs got a parameter in WorkSpace Intelligence cmdlet I don't need that.

Thanks!

Replies

Jason_J (Azure) on Mon, 29 Oct 2018 22:58:17


Hello Xavier,

I see the REST call to list all data sources by Workspace, would this help:

https://docs.microsoft.com/en-us/rest/api/loganalytics/datasources/listbyworkspace#datasource