Is there any way in azure to gather the information about which resources have associated the diagnostic logs settings?
I was exploring graph but is not possible yet, I was maybe exploring azure data explorer but with no success. I know that using PowerShell and az cli I can retrieve diagnostic information, but I as looking for something more straight forward to do so.
the idea is check which resources have associated certain options in the azure diagnostic logs settings and which ones don't
When it comes to Azure CLI to retrieve the diagnostic settings linked to an Azure resource, you can below command as shown below.
But as you mentioned, you need a different approach to achieve the same requirement. For that, use below KQL query
AzureDiagnosticstable which gives your required outcome. Change the type of the resource provider accordingly.Note: I would suggest you using CLI or REST API the better options to achieve your requirement without any conflicts in case of large amount of data.