ContainerImageInventory テーブルのクエリ

Azure portal でこれらのクエリを使用する方法については、 Log Analytics のチュートリアルを参照してください。 REST API については、「 Query」を参照してください。

イメージ インベントリ

状態を持つすべてのコンテナー イメージを一覧表示します。

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

ContainerImageInventory で検索する

ContainerImageInventory で検索し、ContainerImageInventory テーブル内の特定の値を検索します。/nNote では、このクエリで結果を生成するために <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