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)