I have tried the same but no query is operate when I have tried as to get details like 'reason for non-compliance' 'last evaluated'
policyresources
| Where type =='microsoft.insights/diagnosticSettings
At the left search bar no type is populating for diagnostic settings also no compliance details get in metadata api url-- Microsoft.policyinsights/policyMetadata
Basically it will not become null at then end also it will be like
```
.exe -argementlist if(foo -eq "doo"){echo y}
```
When you run exe and passing arguments displayed on console to prevent not to display foo, I have make it private but at the. End it's not removed or cleared I want to clear and change value
I got all details including compliance reason, not give 'reason for non-compliance' and give reason code from properties that is not required,
I observe that the reason get from type == diagnosticSettings and try to get it using search graph query but no luck,
can you let me know guestconfigurations is related to diagnosticSettings because
Guestconfigurationresources |where type == 'microsoft.guestconfiguration/guestconfigurationassignments'
OR
Resources|where type == 'microsoft.insights/diagnosticSettings'
May give the expected result about compliance reason from compliance details