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