问题描述
你好
实际上,我已经编写了一个脚本来获取所有工作空间并输出连接.问题在于,自从analityc成为诊断日志"以来,几乎所有连接都已被弃用,并且这些连接不报告WorkSpace Intelligence Pack的任何参数.
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)
连接->连接到工作区(KV,Storage,NSG,VM ...)的诊断日志,因为活动日志在WorkSpace Intelligence cmdlet中有一个参数,所以我不需要它.
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.
谢谢!
推荐答案
我看到REST调用可以按Workspace列出所有数据源,这会有所帮助:
I see the REST call to list all data sources by Workspace, would this help:
https://docs.microsoft.com/zh-CN/rest /api/loganalytics/datasources/listbyworkspace#datasource
这篇关于获取所有与WorkSpaces的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!