-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[POSTGRESQL] az postgres flexible-server create/georestore/replica: Allow SSDV2 servers to perform create replica and geo restore
#32649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
@evelyn-ys @yonzhan please trigger checks |
There was a problem hiding this 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 enables SSDV2 (Premium SSD V2) PostgreSQL flexible servers to use geo-redundancy, geo-restore, and read replica features. The changes remove validation blocks that previously prevented SSDV2 servers from using these capabilities.
Changes:
- Removed geo-redundancy validation restriction for SSDV2 servers in the storage type validator
- Removed SSDV2 blocking checks from replica creation and geo-restore operations
- Updated test to use dynamic location and removed the negative test case for replica creation
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| validators.py | Removed validation that blocked geo-redundant backups for SSDV2 servers |
| flexible_server_custom_postgres.py | Removed SSDV2 checks that prevented replica creation and geo-restore operations |
| test_postgres_flexible_commands_ssdv2.py | Changed hardcoded location to dynamic location and removed replica creation error test |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| backup_retention = 7 | ||
| server_name = self.create_random_name(SERVER_NAME_PREFIX, SERVER_NAME_MAX_LENGTH) | ||
| location = 'canadacentral' | ||
| location = self.postgres_location |
Copilot
AI
Jan 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test file now enables replica creation and geo-restore for SSDV2 servers, but no positive test cases have been added to verify these newly supported features work correctly. Consider adding test cases for: (1) creating a replica from an SSDV2 server, (2) performing geo-restore on an SSDV2 server with geo-redundant backups enabled, and (3) creating an SSDV2 server with geo-redundant backups enabled.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az postgres flexible-server createaz postgres flexible-server georestoreaz postgres flexible-server replica createDescription
Cli currently blocks creating HA / Geo redundant backups enabled servers. Please unblock them across all regions.
Geo redundancy
Geo restore
Read replica
MVU
Testing Guide
manual
History Notes
[POSTGRESQL]
az postgres flexible-server create/georestore/replica: Allow SSDV2 servers to perform create replica and geo restore