通过Azure资源图查询获得与子网相关联的Azure资源
我希望获取与子网相关的所有资源。我可以找到参考oh如何以相反的方式进行操作(获取特定资源,其中包括与之关联的子网),但找不到任何文档,我们可以在其中获取与子网相关的所有资源。
我的最终目标是获取使用特定网络安全组的所有Azure资源。这使我提出了上述问题。
从另一个问题中,我了解我可以使用REST API获取特定虚拟网络的详细信息。 如何检查使用Fluent API或管理API在Azure中分配的另一个资源的子网?。如果有人建议任何人都能实现这一目标,我将不胜感激。
提前致谢。
I am looking to fetch all resources associated with a subnet. I could find references oh how to do it the other way around (fetch a particular resource and it includes the subnet it is associated with), but can't find any documents where we can fetch all resources linked with a subnet.
My ultimate goal is to fetch all azure resources which use a particular network security group. That led me to the above question.
From another question I understand I can use a REST Api to get details for a specific virtual network. How to check is subnet allocated with another resource in azure using Fluent API or management API?. I would appreciate if someone could suggest anyway to achieve this.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它在虚拟网络下。
It is here under Virtual Network.
如果将来有人需要这个时间。我刚刚运行了此查询,以获取与特定子网相关的Azure资源列表。结果是提供资源名称,组,位置和其他有用信息的表。
In case someone some time in the future needs this. I have just ran this query to get list of Azure resources associated with a specific subnet. The result is a table providing resource name, group, location and other useful info.
我自己找到了答案:p。您可以在子网详细信息中获得关联的设备以及有关获取VirtualNetworks的其他详细信息。
资源图查询:
属性 - > subnets-> properties-> ipconfigurations
ipconfigurations是连接的设备。
Found the answer myself :p. You get the associated devices within the subnet details along with other details on getting virtualnetworks.
Resource graph query:
properties->subnets->properties->ipConfigurations
The ipConfigurations are the connected devices.