ContainerImageInventory 表的查询

有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询

映像清单

列出所有容器映像及其状态。

ContainerImageInventory
| summarize AggregatedValue = count() by Image, ImageTag, Running, _ResourceId

在 ContainerImageInventory 中查找

在 ContainerImageInventory 中查找以在 ContainerImageInventory 表中搜索特定值。/n请注意,此查询需要更新 <SeachValue> 参数,才能生成结果

// This query requires a parameter to run. Enter value in SearchValue to find in table.
let SearchValue =  "<SearchValue>";//Please update term you would like to find in the table.
ContainerImageInventory
| where * contains tostring(SearchValue)
| take 1000