Home > Mobile >  Kusto query to view DNS servers in Azure
Kusto query to view DNS servers in Azure

Time:07-23

I am trying to query the custom DNS servers that are configured in Azure VNETs across all VNETs, I am not sure if I am close, or far off... This is what I have so far :

 resources  
 | where type == "microsoft.network/virtualnetworks"
 | where properties['dhcpOptions']['dnsServers'][0] == "*"
 | summarize count () by 'dnsServers'

CodePudding user response:

resources
| where type == "microsoft.network/virtualnetworks" | project name, tostring(properties.dhcpOptions.dnsServers)

  • Related