thub.users.profile.tabs.comments.personalized


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

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

script posting not possible due to security reason, I have added json file that you can use and only remove node 'Main' and add again without sub nodes

This is close actually it is replace all / in yml
I want for specific child element only say O or S here

{
Path:
"S": "//server/mypath/subdir",
sub:
"O":"//another server/nextpath/file"

}

Further I have tried to split the object but not happened also I have checked with
$a=$b.path.s.values|gm

And replace method is there then why it's not executing

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