Skip to content

Commit 7088ecc

Browse files
Updated Confirm-PacOwner with new filter options for newly discovered configuration (#1044)
1 parent 48d315d commit 7088ecc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Scripts/Helpers/Confirm-PacOwner.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ function Confirm-PacOwner {
2828
# At present, the only way to identify these is by string comparing the description field. This is not ideal.
2929
# "Security Policies" (e.g., MCSB, NIST, ...) use a description "This object has been generated by Microsoft Defender for Cloud. To make changes, navigate to the security policies management page.",
3030
# "Defender Plans" (e.g., Servers, App Service, Databases, ...) use a description starting with "This policy assignment was automatically created by "
31-
if ($description.StartsWith("This object has been generated by ")) {
31+
if ($description.StartsWith("This object has been generated by ") -or `
32+
$description.StartsWith("This is the default set of policies monitored by Azure Security Center ")) {
3233
$ManagedByCounters.dfcSecurityPolicies += 1
3334
return "managedByDfcSecurityPolicies"
3435
}

0 commit comments

Comments
 (0)