Skip to content

[POSGRESQL] BREAKING CHANGE: az postgres flexible-server create/update: Remove --high-availability for preferred argument --zonal-resiliency - #33300

Merged
Zhiyi Huang (calvinhzy) merged 10 commits into
Azure:devfrom
nasc17:nasc/removeHAargumentBreakingChange
May 22, 2026
Merged

Zhiyi Huang (calvinhzy) merged 10 commits into
Azure:devfrom
nasc17:nasc/removeHAargumentBreakingChange

Conversation

@nasc17

@nasc17 nasc17 commented Apr 30, 2026

Copy link
Copy Markdown
Member

Related command
az postgres flexible-server create
az postgres flexible-server update

Description
We are switching out high availability argument name for zonal resiliency in alignment with documentation across other PostgreSQL tools.

Testing Guide
Manual

History Notes

[POSGRESQL] BREAKING CHANGE: az postgres flexible-server create/update: Remove --high-availability for preferred argument --zonal-resiliency


This checklist is used to make sure that common guidelines for a pull request are followed.

nasc17 and others added 2 commits April 30, 2026 01:14
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 30, 2026 12:28
@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Apr 30, 2026

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

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Apr 30, 2026

Copy link
Copy Markdown
❌AzureCLI-BreakingChangeTest
❌postgresql
rule cmd_name rule_message suggest_message
1007 - ParaRemove postgres flexible-server create cmd postgres flexible-server create removed parameter high_availability please add back parameter high_availability for cmd postgres flexible-server create
1007 - ParaRemove postgres flexible-server update cmd postgres flexible-server update removed parameter high_availability please add back parameter high_availability for cmd postgres flexible-server update

Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:

  • Breaking changes can only be merged during the designated breaking change window
  • A pre-announcement must be released at least one month in advance

For more details on how to introduce breaking changes, refer to the documentation: azure-cli/doc/how_to_introduce_breaking_changes.md

@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>

@yonzhan

Copy link
Copy Markdown
Collaborator

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the PostgreSQL Flexible Server create and update command surface area to replace the --high-availability argument with --zonal-resiliency, aligning the CLI with naming used elsewhere in PostgreSQL tooling/documentation.

Changes:

  • Removes --high-availability parameter wiring and validation, and uses --zonal-resiliency as the controlling argument.
  • Updates flexible-server create/update implementations to derive HA mode from --zonal-resiliency.
  • Updates validator-focused tests to use --zonal-resiliency.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/postgresql/utils/validators.py Drops the --high-availability validator path and validates zonal resiliency instead.
src/azure-cli/azure/cli/command_modules/postgresql/commands/custom_commands.py Removes high_availability args from create/update entrypoints and maps zonal resiliency to HA mode.
src/azure-cli/azure/cli/command_modules/postgresql/_params.py Removes --high-availability argument definition; retains/introduces --zonal-resiliency.
src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py Removes the previous argument deprecation/redirect registration for --high-availability.
src/azure-cli/azure/cli/command_modules/postgresql/tests/latest/test_postgres_flexible_commands.py Updates validator tests to use --zonal-resiliency.
Comments suppressed due to low confidence (1)

src/azure-cli/azure/cli/command_modules/postgresql/utils/validators.py:359

  • The error message raised for Burstable tier uses "High availability is not supported..." but the public-facing argument being validated here is --zonal-resiliency. Updating the wording to reference zonal resiliency (and optionally parenthetically mention HA) will make the CLI guidance consistent with the new parameter name.
        if tier.lower() == 'burstable':
            raise ArgumentUsageError('High availability is not supported for the Burstable tier.')
        if single_az and allow_same_zone is False:

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/azure-cli/azure/cli/command_modules/postgresql/_params.py
Comment thread src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/postgresql/utils/validators.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other than addressing the issues identified by Copilot, it looks good to me.

@nasc17 nasc17 changed the title [POSGRESQL] BREAKING CHANGE az postgres flexible-server create | update: Remove -high-availability for perferred argument --zonal-resiliency [POSGRESQL] BREAKING CHANGE az postgres flexible-server create | update: Remove -high-availability for preferred argument --zonal-resiliency Apr 30, 2026
@nasc17

nasc17 commented May 1, 2026

Copy link
Copy Markdown
Member Author

Zhiyi Huang (@calvinhzy) can we please have test triggered

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@nachoalonsoportillo

Nacho Alonso Portillo (nachoalonsoportillo) commented May 3, 2026

Copy link
Copy Markdown
Member

Yong Zhang (@yonzhan) all my PRs are also failing because of webapp tests are failing. Who and when is going to fix those?

@calvinhzy Zhiyi Huang (calvinhzy) changed the title [POSGRESQL] BREAKING CHANGE az postgres flexible-server create | update: Remove -high-availability for preferred argument --zonal-resiliency [POSGRESQL] BREAKING CHANGE: az postgres flexible-server create | update: Remove -high-availability for preferred argument --zonal-resiliency May 6, 2026
@calvinhzy Zhiyi Huang (calvinhzy) changed the title [POSGRESQL] BREAKING CHANGE: az postgres flexible-server create | update: Remove -high-availability for preferred argument --zonal-resiliency [POSGRESQL] BREAKING CHANGE: az postgres flexible-server create/update: Remove -high-availability for preferred argument --zonal-resiliency May 6, 2026
@calvinhzy

Copy link
Copy Markdown
Contributor

Hi nasc17 can you merge the latest dev branch again

@mattboentoro

Copy link
Copy Markdown
Member

Zhiyi Huang (@calvinhzy) I just merged dev

@calvinhzy

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@mattboentoro

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 33300 in repo Azure/azure-cli

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy

Copy link
Copy Markdown
Contributor

Please merge dev again

@nasc17

nasc17 commented May 20, 2026

Copy link
Copy Markdown
Member Author

Zhiyi Huang (@calvinhzy) please trigger checks

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@nasc17

nasc17 commented May 21, 2026

Copy link
Copy Markdown
Member Author

Zhiyi Huang (@calvinhzy) Yong Zhang (@yonzhan) please merge

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix conflicts in CI

@nasc17

nasc17 commented May 21, 2026

Copy link
Copy Markdown
Member Author

Zhiyi Huang (@calvinhzy) Yong Zhang (@yonzhan) please trigger checks

@nasc17 nasc17 changed the title [POSGRESQL] BREAKING CHANGE: az postgres flexible-server create/update: Remove -high-availability for preferred argument --zonal-resiliency [POSGRESQL] BREAKING CHANGE: az postgres flexible-server create/update: Remove --high-availability for preferred argument --zonal-resiliency May 21, 2026
@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@nasc17

nasc17 commented May 22, 2026

Copy link
Copy Markdown
Member Author

Zhiyi Huang (@calvinhzy) Yong Zhang (@yonzhan) ready to merge

@calvinhzy
Zhiyi Huang (calvinhzy) merged commit 725f4d8 into Azure:dev May 22, 2026
50 checks passed
@nasc17
nasc17 deleted the nasc/removeHAargumentBreakingChange branch June 12, 2026 21:42
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.

6 participants