You configured Azure Virtual Desktop resource Diagnostic settings to send logs to a Log Analytics workspace using the AzureDiagnostics table. You need to identify, by host pool, the number of failed connection attempts during the last 24 hours, grouped per hour. Which Kusto Query Language (KQL) query should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: Use AzureDiagnostics; filter Category to Connection and TimeGenerated to the last 24 hours; filter Level to Error; then summarize the failure count by HostPoolName_s and one-hour TimeGenerated intervals..
Why this is the answer
The correct KQL query uses the AzureDiagnostics table, which stores AVD diagnostic logs. Filtering by Category == "Connection" isolates connection-related events. Filtering by TimeGenerated ago(24h) ensures only data from the last 24 hours is included. Filtering by Level == "Error" specifically targets failed attempts. Finally, summarizing by HostPoolNames and bin(TimeGenerated, 1h) groups the results by host pool and hourly intervals, providing the requested count of failures. Incorrect options: WVDConnections is not a standard table for AVD diagnostics; AzureDiagnostics is used. Filtering for data older than 24 hours is also incorrect. Filtering by Category == "Management" would show management operations, not connection attempts. Summarizing by ResourceGroup doesn't provide host pool or hourly details. While filtering by Category == "Connection" is correct, this option misses filtering for errors and doesn't group by HostPoolNames, which is required.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed