An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
Hi Binh Nguyen,
Thanks for reaching out in Microsoft Q&A forum,
The dnsresources table in Azure Resource Graph is eventually consistent, so newly created record-sets can take several minutes (typically up to 10–15 minutes) to show up in your KQL queries. Unfortunately there’s no “tweak” you can do in your dnsresources query to force it to be real-time.
Here are a couple of options to get immediate visibility on your new record set:
- Use the Azure DNS data-plane APIs (or CLI/PowerShell) to fetch the record directly from ARM
- Azure CLI example:
az network dns record-set A show --resource-group MyRG \ --zone-name a.com \ --name myrecord - PowerShell example:
These calls hit the DNS service directly and are always current.Get-AzDnsRecordSet -ResourceGroupName MyRG -ZoneName a.com -Name myrecord -RecordType A
- Azure CLI example:
- If you need to continue using Resource Graph, you’ll have to wait for the resource graph cache to update. There isn’t an API or query hint today to force an immediate refresh.
- (Alternative) Enable DNS diagnostics and send record-set change logs into Log Analytics or Storage. Then query the Log Analytics tables for record changes – those logs arrive in near-real time.
Hope that helps!
Update:
You can see the document they clearly told only private DNS used to query and public DNS zone are not applicable here.
https://learn.microsoft.com/en-us/azure/dns/private-dns-arg
Reference list
- DNS Zones and Records Overview | Microsoft Learn
- Private DNS information in Azure Resource Graph - Azure DNS | Microsoft Learn
Kindly let us know if the above helps or you need further assistance on this issue.
Please do not forget to
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.