Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Policy (Azure Database for PostgreSQL flexible servers): PostgreSQL flexible servers should log checkpoints #440

Conversation

tdefise
Copy link
Contributor

@tdefise tdefise commented Apr 9, 2024

Policy

  • Name: PostgreSQL flexible servers should log checkpoints
  • Description: This policy helps audit any PostgreSQL databases in your environment without log_checkpoints setting enabled
  • Supported effect(s): AuditIfNotExists, Disabled
  • Parameters: None

Description

This policy helps audit any PostgreSQL databases in your environment without log_checkpoints setting enabled

Details

Enabling log_checkpoints helps the PostgreSQL Database to Log each checkpoint in turn generates query and error logs. However, access to transaction logs is not supported.
Query and error logs can be used to identify, troubleshoot, and repair configuration errors and sub-optimal performance.

Contribution Rules

  • Contain a single Policy in a folder by itself with 3 files: azurepolicy.json, azurepolicy.rules.json, and azurepolicy.parameters.json
  • Used Confirm-PolicyDefinitionIsValid.ps1
  • Used Out-FormattedPolicyDefinition.ps1
  • Effect default value alignes with convention

@aschabus aschabus merged commit fe41535 into Azure:main Apr 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants