Skip to content

Conversation

@nasc17
Copy link
Member

@nasc17 nasc17 commented Jan 2, 2026

Related command
az postgres flexible-server

Description
Split postgres flexible-server related commands to its own folder within the module. This would allow from better maintenance of the module from our team.

Similar steps followed by MySQL team: #26531

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


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

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

azure-client-tools-bot-prd bot commented Jan 2, 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

Hi @nasc17,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

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

azure-client-tools-bot-prd bot commented Jan 2, 2026

❌AzureCLI-BreakingChangeTest
❌rdbms
rule cmd_name rule_message suggest_message
1012 - SubgroupRemove postgres sub group postgres removed please confirm sub group postgres removed

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
Collaborator

yonzhan commented Jan 2, 2026

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

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

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>

@nasc17 nasc17 changed the title {POSTGRESQLFLEXIBLESERVERS} Split postgres flexible server commands from RDBMS {POSTGRES} Split postgres flexible server commands from RDBMS Jan 2, 2026
Copy link
Member

@nachoalonsoportillo nachoalonsoportillo left a comment

Choose a reason for hiding this comment

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

Shouldn't all files with rdbms in their names be aso renamed to postgresql?

@nasc17 nasc17 marked this pull request as ready for review January 8, 2026 22:40
Copilot AI review requested due to automatic review settings January 8, 2026 22:40
Copy link
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 splits PostgreSQL flexible server commands from the shared RDBMS module into a dedicated PostgreSQL module, following the pattern established by the MySQL team. The change reorganizes code by moving PostgreSQL-specific validators, utilities, and test files from rdbms to postgresql to improve module maintainability.

Key Changes:

  • Removed PostgreSQL-specific validators, utilities, and test code from the RDBMS module
  • Created new PostgreSQL validators.py with moved validation logic
  • Split test files into separate PostgreSQL test modules
  • Updated imports and removed PostgreSQL client factory functions from RDBMS

Reviewed changes

Copilot reviewed 69 out of 124 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/rdbms/validators.py Removed PostgreSQL flexible server validators and helper functions
src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_flexible_commands.py Deleted entire test file (2965 lines) containing PostgreSQL tests
src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_common.py Removed PostgreSQL-specific functions (github_actions_setup, version_upgrade)
src/azure-cli/azure/cli/command_modules/rdbms/custom.py Removed PostgreSQL-specific variables and updated engine logic
src/azure-cli/azure/cli/command_modules/rdbms/_transformers.py Removed postgres_table_transform_output_list_skus function
src/azure-cli/azure/cli/command_modules/rdbms/_params.py Removed PostgreSQL flexible server parameters and command arguments
src/azure-cli/azure/cli/command_modules/rdbms/_flexible_server_util.py Removed PostgreSQL-specific utility functions and constants
src/azure-cli/azure/cli/command_modules/rdbms/_flexible_server_location_capabilities_util.py Removed PostgreSQL location capability functions
src/azure-cli/azure/cli/command_modules/rdbms/_client_factory.py Removed PostgreSQL client factory functions
src/azure-cli/azure/cli/command_modules/rdbms/init.py Removed PostgreSQL flexible server command loading and help imports
src/azure-cli/azure/cli/command_modules/postgresql/validators.py New file with 803 lines of PostgreSQL validators moved from RDBMS
src/azure-cli/azure/cli/command_modules/postgresql/tests/latest/*.py New test files split from RDBMS test suite

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

@nasc17
Copy link
Member Author

nasc17 commented Jan 8, 2026

@evelyn-ys Please trigger checks

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 9, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@nasc17
Copy link
Member Author

nasc17 commented Jan 9, 2026

@yonzhan @evelyn-ys Please trigger checks

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 10, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@nasc17
Copy link
Member Author

nasc17 commented Jan 12, 2026

@yonzhan Please trigger checks

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 13, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

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