Queries for the DNSQueryLogs table

For information on using these queries in the Azure portal, see Log Analytics tutorial. For the REST API, see Query.

DNS queries by virtual network and return code

Summarize count of DNS queries by virtual network and return code.

DNSQueryLogs
| summarize count() by VirtualNetworkId, ResponseCode