Skip to content

Commit 3a2fcb7

Browse files
authored
Merge pull request #224707 from Heidilohr/work-newpackage-removal
Remove newpackagesavailable query due to bug
2 parents fe84ba4 + fe6164e commit 3a2fcb7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

articles/virtual-desktop/agent-updates-diagnostics.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Set up diagnostics for monitoring agent updates
33
description: How to set up diagnostic reports to monitor agent updates.
44
author: Sefriend
55
ms.topic: how-to
6-
ms.date: 03/28/2022
6+
ms.date: 01/31/2023
77
ms.author: sefriend
88
manager: rkiran
99
---
@@ -36,17 +36,17 @@ To see when agent component updates are available:
3636

3737
3. Copy and paste the following Kusto query to see if agent component updates are available for the specified session host. Make sure to change the **sessionHostName** parameter to the name of your session host.
3838

39-
> [!NOTE]
40-
> If you haven't enabled the Scheduled Agent Updates feature, you won't see anything in the NewPackagesAvailable field.
39+
> [!NOTE]
40+
> If you haven't enabled the Scheduled Agent Updates feature, you won't see anything in the NewPackagesAvailable field.
4141
42-
```kusto
43-
WVDAgentHealthStatus
44-
| where TimeGenerated >= ago(30d)
45-
| where SessionHostName == "sessionHostName"
46-
| project TimeGenerated, AgentVersion, SessionHostName, LastUpgradeTimeStamp, UpgradeState, UpgradeErrorMsg, NewPackagesAvailable
47-
| sort by TimeGenerated desc
48-
| take 1
49-
```
42+
```kusto
43+
WVDAgentHealthStatus
44+
| where TimeGenerated >= ago(30d)
45+
| where SessionHostName == "sessionHostName"
46+
| project TimeGenerated, AgentVersion, SessionHostName, LastUpgradeTimeStamp, UpgradeState, UpgradeErrorMsg
47+
| sort by TimeGenerated desc
48+
| take 1
49+
```
5050
5151
## Use diagnostics to see when agent updates are happening
5252
@@ -58,14 +58,14 @@ To see when agent updates are happening or to make sure that the Scheduled Agent
5858
5959
3. Copy and paste the following Kusto query to see when the agent has updated for the specified session host. Make sure to change the **sessionHostName** parameter to the name of your session host.
6060
61-
```kusto
62-
WVDAgentHealthStatus
63-
| where TimeGenerated >= ago(30d)
64-
| where SessionHostName == "sessionHostName"
65-
| project TimeGenerated, AgentVersion, SessionHostName, LastUpgradeTimeStamp, UpgradeState, UpgradeErrorMsg
66-
| summarize arg_min(TimeGenerated, *) by AgentVersion
67-
| sort by TimeGenerated asc
68-
```
61+
```kusto
62+
WVDAgentHealthStatus
63+
| where TimeGenerated >= ago(30d)
64+
| where SessionHostName == "sessionHostName"
65+
| project TimeGenerated, AgentVersion, SessionHostName, LastUpgradeTimeStamp, UpgradeState, UpgradeErrorMsg
66+
| summarize arg_min(TimeGenerated, *) by AgentVersion
67+
| sort by TimeGenerated asc
68+
```
6969
7070
## Use diagnostics to check for unsuccessful agent updates
7171
@@ -77,14 +77,14 @@ To check if an agent component update was unsuccessful:
7777
7878
3. Copy and paste the following Kusto query to see when the agent has updated for the specified session host. Make sure to change the **sessionHostName** parameter to the name of your session host.
7979
80-
```kusto
81-
WVDAgentHealthStatus
82-
| where TimeGenerated >= ago(30d)
83-
| where SessionHostName == "sessionHostName"
84-
| where MaintenanceWindowMissed == true
85-
| project TimeGenerated, AgentVersion, SessionHostName, LastUpgradeTimeStamp, UpgradeState, UpgradeErrorMsg, MaintenanceWindowMissed
86-
| sort by TimeGenerated asc
87-
```
80+
```kusto
81+
WVDAgentHealthStatus
82+
| where TimeGenerated >= ago(30d)
83+
| where SessionHostName == "sessionHostName"
84+
| where MaintenanceWindowMissed == true
85+
| project TimeGenerated, AgentVersion, SessionHostName, LastUpgradeTimeStamp, UpgradeState, UpgradeErrorMsg, MaintenanceWindowMissed
86+
| sort by TimeGenerated asc
87+
```
8888
8989
## Next steps
9090

0 commit comments

Comments
 (0)