Azure资源图列表端口NSG

Azure资源图列表端口NSG,azure,kql,azure-nsg,Azure,Kql,Azure Nsg,我正在尝试构建一个查询,该查询列出了所有订阅中的所有NSG,这些订阅将我定义的列表作为源端口。 假设我有一个包含以下端口的列表l=[21,22,53]。如何将此列表传递给查询,以便仅获取源为列表端口的NSG 到目前为止,我所拥有的: Resources | where type =~ "microsoft.network/networksecuritygroups" | mv-expand rules=properties.securityRules | extend des

我正在尝试构建一个查询,该查询列出了所有订阅中的所有NSG,这些订阅将我定义的列表作为源端口。 假设我有一个包含以下端口的列表
l=[21,22,53]
。如何将此列表传递给查询,以便仅获取源为列表端口的NSG

到目前为止,我所拥有的:

Resources
| where type =~ "microsoft.network/networksecuritygroups"
| mv-expand rules=properties.securityRules
| extend description = rules.properties.description
| extend destprefix = rules.properties.destinationAddressPrefix
| extend destport = rules.properties.destinationPortRange
| extend sourceprefix = rules.properties.sourceAddressPrefix
| extend sourceport = rules.properties.sourcePortRange
预期输出将是一个列表,其中仅包含满足我的列表的NSG


谢谢

能否提供输入数据的示例(使用datatable构造)以及基于所提供列表的预期输出?