簡體   English   中英

通過 Azure 資源圖查詢獲取 Azure 與某個 su.net 關聯的資源

[英]Get Azure resources associated with a subnet through Azure Resource Graph Query

我正在尋找與 su.net 相關的所有資源。 我可以找到參考哦如何以相反的方式進行(獲取特定資源並且它包括與之關聯的 su.net),但找不到任何文檔我們可以獲取與 su.net 鏈接的所有資源.

我的最終目標是獲取所有使用特定網絡安全組的 azure 資源。 這讓我想到了上述問題。

從另一個問題我了解到我可以使用 REST Api 來獲取特定 virtual.network 的詳細信息。 如何使用 Fluent API 或管理 API 檢查 su.net 是否在 azure 中分配了另一個資源? . 如果有人可以建議實現這一目標,我將不勝感激。

提前致謝。

自己找到答案:p。 您可以在 su.net 詳細信息中獲取相關設備以及獲取 virtua.networks 的其他詳細信息。

資源圖查詢:

resources
| where type =~ "microsoft.network/virtualnetworks"

屬性->su.nets->屬性->ipConfigurations

ipConfigurations 是連接的設備。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM