Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit b628c68

Browse files
Enhance PBMM policy assignment to disable diagnostic settings metrics (Azure#156)
Ensure diagnostic settings policy only checks for logs
1 parent 61afd59 commit b628c68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

policy/builtin/assignments/pbmm.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ resource policySetAssignment 'Microsoft.Authorization/policyAssignments@2020-03-
5959
listOfMembersToIncludeInWindowsVMAdministratorsGroup: {
6060
value: listOfMembersToIncludeInWindowsVMAdministratorsGroup
6161
}
62+
'logsEnabled-7f89b1eb-583c-429a-8828-af049802c1d9': {
63+
value: true
64+
}
65+
'metricsEnabled-7f89b1eb-583c-429a-8828-af049802c1d9': {
66+
value: false
67+
}
6268
}
6369
enforcementMode: enforcementMode
6470
}

0 commit comments

Comments
 (0)