Skip to content

Commit

Permalink
Update src/public/Convert-SentinelARArmToYaml.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bader authored Jul 21, 2024
1 parent 4e29530 commit 5888b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/Convert-SentinelARArmToYaml.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function Convert-SentinelARArmToYaml {
$KeyName = "techniques"
$technique = $value -replace "(T\d{4})\.\d{3}", '$1'
# Create an empty key
if (-not($AnalyticsRuleCleaned[$KeyName])) {
if ( -not $AnalyticsRuleCleaned.Contains($KeyName) ) {
$AnalyticsRuleCleaned.Add($KeyName, @())
}
# Add subTechnique if the mainTechnique is not already present
Expand Down

0 comments on commit 5888b04

Please sign in to comment.