Add PostgreSQL Flexible Server ATP policy to Enforce-Guardrails-PostgreSQL - #2181
Open
kumarpk3456 (kumarpk3456) wants to merge 3 commits into
Open
Add PostgreSQL Flexible Server ATP policy to Enforce-Guardrails-PostgreSQL#2181kumarpk3456 (kumarpk3456) wants to merge 3 commits into
kumarpk3456 (kumarpk3456) wants to merge 3 commits into
Conversation
kumarpk3456 (kumarpk3456)
had a problem deploying
to
csu-rw
August 5, 2026 15:59 — with
GitHub Actions
Error
kumarpk3456 (kumarpk3456)
had a problem deploying
to
csu-rw
August 5, 2026 16:30 — with
GitHub Actions
Error
kumarpk3456 (kumarpk3456)
requested a deployment
to
csu-rw
August 5, 2026 16:57 — with
GitHub Actions
Waiting
Qi Zhang (Zhangqi910)
approved these changes
Aug 7, 2026
Qi Zhang (Zhangqi910)
requested a review
from Shiva Sai Yeddlapuri (yeddlapurishivasai)
August 7, 2026 09:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes 4232
Overview
This Pull Request updates the
Enforce-Guardrails-PostgreSQLinitiative to include support for Azure Database for PostgreSQL Flexible Server Advanced Threat Protection.The initiative previously referenced only the built-in policy
db048e65-913c-49f9-bb5f-1084184671d3, which targets the legacyMicrosoft.DBforPostgreSQL/serversresource type. As a result,Microsoft.DBforPostgreSQL/flexibleServersresources were not evaluated by this guardrail.This PR adds/fixes
2a6ae02f-7590-40d7-88ba-b18e205a32fd(Configure Advanced Threat Protection to be enabled on Azure database for PostgreSQL flexible servers) to theEnforce-Guardrails-PostgreSQLinitiative.db048e65-913c-49f9-bb5f-1084184671d3for PostgreSQL Single Server deployments.Microsoft.DBforPostgreSQL/serversandMicrosoft.DBforPostgreSQL/flexibleServersresource types.Breaking Changes
Testing Evidence
(db048e65-913c-49f9-bb5f-1084184671d3), no flexible server policy present
Get-Content .\src\resources\Microsoft.Authorization\policySetDefinitions\Enforce-Guardrails-PostgreSQL.json | ConvertFrom-Json
db048e65-913c-49f9-bb5f-1084184671d3 (PostgreSQL Single Server ATP policy)
2a6ae02f-7590-40d7-88ba-b18e205a32fd (PostgreSQL Flexible Server ATP policy)
Step 1:- PostgreSQL Flexible Server Deployment
Caption: Created a test Azure Database for PostgreSQL Flexible Server resource for policy validation.
What it shows:
PostgreSQL Flexible Server successfully deployed.
Resource Name: pgflex4232test
Used as the target resource to validate initiative coverage.