Skip to content

Commit

Permalink
Fix rule to detect that disconnection logging is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoalonsoportillo authored Jul 23, 2024
1 parent 2f77e26 commit 4c81264
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"properties": {
"displayName": "Disconnections should be logged for PostgreSQL flexible servers.",
"displayName": "Disconnections should be logged for PostgreSQL flexible servers",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "This policy helps audit any PostgreSQL flexible servers in your environment without log_disconnections enabled.",
Expand Down Expand Up @@ -35,7 +35,7 @@
"name": "log_disconnections",
"existenceCondition": {
"field": "Microsoft.DBforPostgreSQL/flexibleServers/configurations/value",
"equals": "ON"
"notEquals": "ON"
}
}
}
Expand All @@ -46,4 +46,4 @@
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/1d14b021-1bae-4f93-b36b-69695e14984a",
"name": "1d14b021-1bae-4f93-b36b-69695e14984a"
}
}

0 comments on commit 4c81264

Please sign in to comment.