UpdateRunProgress 表的查询
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
计算机的修补安装失败
为每台计算机列出安装不成功的更新的安装状态。
// To create an alert for this query, click '+ New alert rule'
UpdateRunProgress
| where TimeGenerated>ago(1d)
| where InstallationStatus == "NotStarted"
| summarize by Title, InstallationStatus, SourceComputerId, UpdateId, Computer, ResourceId
| join kind= inner (
UpdateRunProgress
| where TimeGenerated>ago(1d)
| where InstallationStatus != "NotStarted"
| summarize by Title, InstallationStatus, SourceComputerId, UpdateId, Computer
) on UpdateId
| where InstallationStatus1 != "Succeed"
| summarize by Title, InstallationStatus, Computer, ResourceId