Skip to content

[RDBMS] az postgres flexible-server update: BUG FIX, bypass fabric mirroring validation to allow updating high availability status for PG11 and PG12 servers#31944

Merged
evelyn-ys merged 27 commits intoAzure:devfrom
nasc17:nasc/fixpg12Ha
Aug 21, 2025

Conversation

@nasc17
Copy link
Copy Markdown
Member

@nasc17 nasc17 commented Aug 14, 2025

Related command
az postgres flexible-server update

Description
Cannot enable HA in a pg12 server using az cli

root@westus2-stage-lmgmt-1:~# az postgres flexible-server update --name westus2-stage-postgresql --resource-group anf.dc.mgmt.westus2-stage.rg --high-availability ZoneRedundant
(ConfigurationNotExists) The configuration 'azure.fabric_mirror_enabled' does not exist for westus2-stage-postgresql server version 12.
Code: ConfigurationNotExists
Message: The configuration 'azure.fabric_mirror_enabled' does not exist for westus2-stage-postgresql server version 12.

Skip this check for PG11 and PG12 servers

Testing Guide
Manual

History Notes
[RDBMS] az postgres flexible-server update: BUG FIX, bypass fabric mirroring validation to allow updating high availability status for PG11 and PG12 servers

Copilot AI review requested due to automatic review settings August 14, 2025 03:43
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 14, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️latest
️✔️3.12
️✔️3.9

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Aug 14, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 14, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@nasc17 nasc17 requested a review from mattboentoro August 14, 2025 03:43
@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the az postgres flexible-server update command that prevented enabling high availability for PostgreSQL 11 and 12 servers due to a missing configuration check.

  • Adds version check to skip fabric mirroring configuration validation for PG11 and PG12 servers
  • Allows high availability to be enabled for these older PostgreSQL versions that don't support fabric mirroring

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Copy link
Copy Markdown
Member

@mattboentoro mattboentoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: change the title to describe that we're bypassing fabric support

@nasc17 nasc17 changed the title [RDBMS] az postgres flexible-server update: BUG FIX, allow enabling high availabiity for PG11 and PG12 servers [RDBMS] az postgres flexible-server update: BUG FIX, bypass fabric mirroring validation to allow high availability enablement for PG11 and PG12 servers Aug 14, 2025
@nasc17 nasc17 changed the title [RDBMS] az postgres flexible-server update: BUG FIX, bypass fabric mirroring validation to allow high availability enablement for PG11 and PG12 servers [RDBMS] az postgres flexible-server update: BUG FIX, bypass fabric mirroring validation to allow updating high availability status for PG11 and PG12 servers Aug 14, 2025
@nasc17
Copy link
Copy Markdown
Member Author

nasc17 commented Aug 15, 2025

@evelyn-ys please trigger test run

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 16, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@nasc17
Copy link
Copy Markdown
Member Author

nasc17 commented Aug 20, 2025

@evelyn-ys checks have passed and team sign off. Please review

@evelyn-ys evelyn-ys merged commit 58c8b02 into Azure:dev Aug 21, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants