Skip to content

Commit c3cc06e

Browse files
Merge pull request #278131 from SnehaSudhirG/13June-SampleQueryUpdate
updated the queries for win and Lin
2 parents 84ace74 + 71e6f11 commit c3cc06e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/update-manager/sample-query-logs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.service: azure-update-manager
55
ms.custom: linux-related-content
66
author: SnehaSudhirG
77
ms.author: sudhirsneha
8-
ms.date: 09/18/2023
8+
ms.date: 06/13/2024
99
ms.topic: conceptual
1010
---
1111

@@ -46,7 +46,7 @@ The following query returns a list of update installations for Windows Server wi
4646

4747
```kusto
4848
patchinstallationresources
49-
| where type has "softwarepatches" and properties !has "version"
49+
| where type has "softwarepatches" and isnull(properties.version)
5050
| extend machineName = tostring(split(id, "/", 8)), resourceType = tostring(split(type, "/", 0)), tostring(rgName = split(id, "/", 4)), tostring(RunID = split(id, "/", 10))
5151
| extend prop = parse_json(properties)
5252
| extend lTime = todatetime(prop.lastModifiedDateTime), patchName = tostring(prop.patchName), kbId = tostring(prop.kbId), installationState = tostring(prop.installationState), classifications = tostring(prop.classifications)
@@ -61,7 +61,7 @@ The following query returns a list of update installations for Linux with their
6161

6262
```kusto
6363
patchinstallationresources
64-
| where type has "softwarepatches" and properties has "version"
64+
| where type has "softwarepatches" and isnotnull(properties.version) and isnull(properties.kbId)
6565
| extend machineName = tostring(split(id, "/", 8)), resourceType = tostring(split(type, "/", 0)), tostring(rgName = split(id, "/", 4)), tostring(RunID = split(id, "/", 10))
6666
| extend prop = parse_json(properties)
6767
| extend lTime = todatetime(prop.lastModifiedDateTime), patchName = tostring(prop.patchName), version = tostring(prop.version), installationState = tostring(prop.installationState), classifications = tostring(prop.classifications)

0 commit comments

Comments
 (0)