@@ -66,53 +66,33 @@ The following example queries show how the diagnostics feature generates a repor
66
66
67
67
This first example shows connection activities initiated by users with supported remote desktop clients:
68
68
69
- ``` powershell
69
+ ``` kusto
70
70
WVDActivityV1_CL
71
-
72
71
| where Type_s == "Connection"
73
-
74
72
| join kind=leftouter (
75
-
76
73
WVDErrorV1_CL
77
-
78
74
| summarize Errors = makelist(pack('Time', Time_t, 'Code', ErrorCode_s , 'CodeSymbolic', ErrorCodeSymbolic_s, 'Message', ErrorMessage_s, 'ReportedBy', ReportedBy_s , 'Internal', ErrorInternal_s )) by ActivityId_g
79
-
80
75
) on $left.Id_g == $right.ActivityId_g
81
-
82
76
| join kind=leftouter (
83
-
84
77
WVDCheckpointV1_CL
85
-
86
78
| summarize Checkpoints = makelist(pack('Time', Time_t, 'ReportedBy', ReportedBy_s, 'Name', Name_s, 'Parameters', Parameters_s) ) by ActivityId_g
87
-
88
79
) on $left.Id_g == $right.ActivityId_g
89
-
90
80
|project-away ActivityId_g, ActivityId_g1
91
81
```
92
82
93
83
This next example query shows management activities by admins on tenants:
94
84
95
- ``` powershell
85
+ ``` kusto
96
86
WVDActivityV1_CL
97
-
98
87
| where Type_s == "Management"
99
-
100
88
| join kind=leftouter (
101
-
102
89
WVDErrorV1_CL
103
-
104
90
| summarize Errors = makelist(pack('Time', Time_t, 'Code', ErrorCode_s , 'CodeSymbolic', ErrorCodeSymbolic_s, 'Message', ErrorMessage_s, 'ReportedBy', ReportedBy_s , 'Internal', ErrorInternal_s )) by ActivityId_g
105
-
106
91
) on $left.Id_g == $right.ActivityId_g
107
-
108
92
| join kind=leftouter (
109
-
110
93
WVDCheckpointV1_CL
111
-
112
94
| summarize Checkpoints = makelist(pack('Time', Time_t, 'ReportedBy', ReportedBy_s, 'Name', Name_s, 'Parameters', Parameters_s) ) by ActivityId_g
113
-
114
95
) on $left.Id_g == $right.ActivityId_g
115
-
116
96
|project-away ActivityId_g, ActivityId_g1
117
97
```
118
98
0 commit comments