Skip to content

Commit 56baf75

Browse files
authored
Merge pull request #113704 from tvuylsteke/patch-10
Fixing kusto annotation
2 parents acda5f9 + eaccea3 commit 56baf75

File tree

1 file changed

+17
-45
lines changed

1 file changed

+17
-45
lines changed

articles/virtual-desktop/diagnostics-log-analytics.md

Lines changed: 17 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,19 @@ manager: lizross
2020
2121
Windows Virtual Desktop uses [Azure Monitor](../azure-monitor/overview.md) for monitoring and alerts like many other Azure services. This lets admins identify issues through a single interface. The service creates activity logs for both user and administrative actions. Each activity log falls under the following categories:
2222

23-
- Management Activities:
24-
25-
- Track whether attempts to change Windows Virtual Desktop objects using APIs or PowerShell are successful. For example, can someone successfully create a host pool using PowerShell?
26-
23+
- Management Activities:
24+
- Track whether attempts to change Windows Virtual Desktop objects using APIs or PowerShell are successful. For example, can someone successfully create a host pool using PowerShell?
2725
- Feed:
28-
29-
- Can users successfully subscribe to workspaces?
30-
31-
- Do users see all resources published in the Remote Desktop client?
32-
26+
- Can users successfully subscribe to workspaces?
27+
- Do users see all resources published in the Remote Desktop client?
3328
- Connections:
34-
35-
- When users initiate and complete connections to the service.
36-
29+
- When users initiate and complete connections to the service.
3730
- Host registration:
38-
39-
- Was the session host successfully registered with the service upon connecting?
40-
31+
- Was the session host successfully registered with the service upon connecting?
4132
- Errors:
42-
43-
- Are users encountering any issues with specific activities? This feature can generate a table that tracks activity data for you as long as the information is joined with the activities.
44-
33+
- Are users encountering any issues with specific activities? This feature can generate a table that tracks activity data for you as long as the information is joined with the activities.
4534
- Checkpoints:
46-
47-
- Specific steps in the lifetime of an activity that were reached. For example, during a session, a user was load balanced to a particular host, then the user was signed on during a connection, and so on.
35+
- Specific steps in the lifetime of an activity that were reached. For example, during a session, a user was load balanced to a particular host, then the user was signed on during a connection, and so on.
4836

4937
Connections that don't reach Windows Virtual Desktop won't show up in diagnostics results because the diagnostics role service itself is part of Windows Virtual Desktop. Windows Virtual Desktop connection issues can happen when the user is experiencing network connectivity issues.
5038

@@ -141,7 +129,7 @@ The following example queries show how the diagnostics feature generates a repor
141129

142130
To get a list of connections made by your users, run this cmdlet:
143131

144-
```powershell
132+
```kusto
145133
WVDConnections
146134
| project-away TenantId,SourceSystem
147135
| summarize arg_max(TimeGenerated, *), StartTime = min(iff(State== 'Started', TimeGenerated , datetime(null) )), ConnectTime = min(iff(State== 'Connected', TimeGenerated , datetime(null) )) by CorrelationId
@@ -164,45 +152,29 @@ WVDConnections
164152

165153
To view feed activity of your users:
166154

167-
```powershell
155+
```kusto
168156
WVDFeeds
169-
170157
| project-away TenantId,SourceSystem
171-
172158
| join kind=leftouter (
173-
174159
WVDErrors
175-
176160
|summarize Errors=makelist(pack('Code', Code, 'CodeSymbolic', CodeSymbolic, 'Time', TimeGenerated, 'Message', Message ,'ServiceError', ServiceError, 'Source', Source)) by CorrelationId
177-
178161
) on CorrelationId
179-
180162
| join kind=leftouter (
181-
182163
WVDCheckpoints
183-
184164
| summarize Checkpoints=makelist(pack('Time', TimeGenerated, 'Name', Name, 'Parameters', Parameters, 'Source', Source)) by CorrelationId
185-
186165
| mv-apply Checkpoints on
187-
188166
(
189-
190167
order by todatetime(Checkpoints['Time']) asc
191-
192168
| summarize Checkpoints=makelist(Checkpoints)
193-
194169
)
195-
196170
) on CorrelationId
197-
198171
| project-away CorrelationId1, CorrelationId2
199-
200172
| order by TimeGenerated desc
201173
```
202174

203175
To find all connections for a single user:
204176

205-
```powershell
177+
```kusto
206178
|where UserName == "userupn"
207179
|take 100
208180
|sort by TimeGenerated asc, CorrelationId
@@ -211,7 +183,7 @@ To find all connections for a single user:
211183

212184
To find the number of times a user connected per day:
213185

214-
```powershell
186+
```kusto
215187
WVDConnections
216188
|where UserName == "userupn"
217189
|take 100
@@ -222,7 +194,7 @@ WVDConnections
222194

223195
To find session duration by user:
224196

225-
```powershell
197+
```kusto
226198
let Events = WVDConnections | where UserName == "userupn" ;
227199
Events
228200
| where State == "Connected"
@@ -237,23 +209,23 @@ on CorrelationId
237209

238210
To find errors for a specific user:
239211

240-
```powershell
212+
```kusto
241213
WVDErrors
242-
| where UserName == "[email protected]"
214+
| where UserName == "userupn"
243215
|take 100
244216
```
245217

246218
To find out whether a specific error occurred:
247219

248-
```powershell
220+
```kusto
249221
WVDErrors
250222
| where CodeSymbolic =="ErrorSymbolicCode"
251223
| summarize count(UserName) by CodeSymbolic
252224
```
253225

254226
To find the occurrence of an error across all users:
255227

256-
```powershell
228+
```kusto
257229
WVDErrors
258230
| where ServiceError =="false"
259231
| summarize usercount = count(UserName) by CodeSymbolic

0 commit comments

Comments
 (0)