Skip to content

[POSTGRESQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group#33345

Merged
calvinhzy merged 20 commits into
Azure:devfrom
nachoalonsoportillo:remove-long-term-retention-command-group
May 21, 2026
Merged

[POSTGRESQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group#33345
calvinhzy merged 20 commits into
Azure:devfrom
nachoalonsoportillo:remove-long-term-retention-command-group

Conversation

@nachoalonsoportillo
Copy link
Copy Markdown
Member

@nachoalonsoportillo nachoalonsoportillo commented May 10, 2026

Related command
az postgres flexible-server long-term-retention

Description
Removes support for long-term-retention command group, which was announced as deprecated by #32916

Testing Guide

History Notes

[POSTGRESQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group


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

- Updated backup commands to use `-s` instead of `-n` for server name in backup management tests.
- Changed database commands to use `-n` for database name instead of `-d` in database management tests.
- Adjusted firewall rule commands to use `--server-name` instead of `-n` for server name in firewall rule management tests.
- Modified long-term retention commands to use `-s` for server name instead of `-n` in LTR management tests.
- Corrected migration commands to use `--server-name` instead of `--name` for server name in migration management tests.
- Updated tag management tests to use `-s` for server name instead of `-n` in backup list command.
…lica create` to remove `--replica-name` argument and make `--name` required.
- Changed AllowLargeResponse to accept a size parameter of 2048.
- Removed the live_only decorator from the test_postgres_flexible_server_ltr method.
Copilot AI review requested due to automatic review settings May 10, 2026 20:50
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 10, 2026

️✔️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
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 10, 2026

❌AzureCLI-BreakingChangeTest
❌postgresql
rule cmd_name rule_message suggest_message
1012 - SubgroupRemove postgres flexible-server long-term-retention sub group postgres flexible-server long-term-retention removed please confirm sub group postgres flexible-server long-term-retention removed
⚠️ 1004 - CmdPropRemove postgres flexible-server backup create cmd postgres flexible-server backup create removed property deprecate_info_target

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

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 10, 2026

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

@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 removes the deprecated az postgres flexible-server long-term-retention command group from the PostgreSQL command module, following the prior deprecation announcement (PR #32916).

Changes:

  • Removed command-table registration for postgres flexible-server long-term-retention and its associated client factory.
  • Removed long-term-retention parameters, help text, and command implementation helpers.
  • Removed the live scenario test and related linter exclusion for the removed command group.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/postgresql/tests/latest/test_postgres_flexible_commands_ltr.py Removes the LTR scenario test now that the command group is removed.
src/azure-cli/azure/cli/command_modules/postgresql/linter_exclusions.yml Drops the linter exclusion for the removed LTR list command.
src/azure-cli/azure/cli/command_modules/postgresql/flexible_server_commands.py Removes registration of the LTR command group from the flexible server command table.
src/azure-cli/azure/cli/command_modules/postgresql/commands/backup_commands.py Removes LTR-specific helper functions (pre-check, start).
src/azure-cli/azure/cli/command_modules/postgresql/_params.py Removes argument definitions specific to the LTR command group.
src/azure-cli/azure/cli/command_modules/postgresql/_help.py Removes help entries for the LTR command group and its commands.
src/azure-cli/azure/cli/command_modules/postgresql/_client_factory.py Removes the LTR backups client factory.
src/azure-cli/azure/cli/command_modules/postgresql/_breaking_change.py Removes the prior deprecation/breaking-change registrations for the LTR command group (now fully removed).

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

@nachoalonsoportillo nachoalonsoportillo changed the title [POSTGRESQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group [PostgreSQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group May 10, 2026
@nachoalonsoportillo nachoalonsoportillo changed the title [PostgreSQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group [POSTGRESQL] BREAKING CHANGE: az postgres flexible-server long-term-retention: Remove support for command group May 10, 2026
@calvinhzy
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

calvinhzy
calvinhzy previously approved these changes May 13, 2026
@calvinhzy
Copy link
Copy Markdown
Member

Please fix CI so I can approve it again, seems merging dev count me as the last pusher.

@calvinhzy
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy
Copy link
Copy Markdown
Member

Please merge dev into this branch.

@calvinhzy
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@calvinhzy calvinhzy merged commit 69c6c3f into Azure:dev May 21, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants