Hi @Nirali Shah
Our documentation has a style guide, but the only tool referenced is powershell-yaml. https://github.com/Azure/Azure-Sentinel/wiki/Query-Style-Guid. I haven't had to make a solution yet, or convert to yaml ein bulk, so I haven't tested any scripts to do this. However a starter script would look something like this.
Install-Module powershell-yaml
$ContentRaw = get-Content "Azure_Sentinel_analytics_rules.json"
$ContentObject = $ContentRaw | ConvertFrom-Json -Depth 99
$OutDirectory = New-Item "AnalyticRulesYAML" -ItemType Directory -Force
foreach ($Rule in $ContentObject.resources){
$FileName = $Rule.properties.displayName.Replace(" ","_") + ".yaml"
$OutPath = $OutDirectory.FullName + "\" + $FileName
ConvertTo-Yaml -Data $Rule -OutFile $OutPath
}
I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.
Kind regards
Alistair