Search code examples
azureazure-resource-graph

Azure resource graph returns null for a config while the same is present in Json view of resource


While running the below query I get null on internalDomainNameSuffix, but the same has value on Json view from the resource page overview.

resources | where type == 'microsoft.network/networkinterfaces' and name == 'interface1'| project  name, properties.dnsSettings.internalDomainNameSuffix

The query result shows correct data for a few resources, but shows null in others while it still shows data through the Json view (It is inconsistent, shows data for some resources but not for others).


Solution

  • Thanks for your suggestions all.

    After few conversations with msft, the conclusion is that at specific scenarios involving VM/Network Interface the resource manager is not updated with the property internalDomainNameSuffix along with other properties.

    Workaround suggested is: Any operation performed on the resource will force update the resource manager which in-turn updates all the properties. Just a simple tag update does this as well.

    Reg fix: Msft understands this behaviour but does not have any plans on fixing it anytime in the near future or ever.