Skip to content

{RDBMS} Update Python SDK for PostgreSQL flexible servers to version API to 2025-08-01#32517

Merged
evelyn-ys merged 10 commits intoAzure:devfrom
nasc17:nasc/api20250801
Dec 14, 2025
Merged

{RDBMS} Update Python SDK for PostgreSQL flexible servers to version API to 2025-08-01#32517
evelyn-ys merged 10 commits intoAzure:devfrom
nasc17:nasc/api20250801

Conversation

@nasc17
Copy link
Copy Markdown
Member

@nasc17 nasc17 commented Dec 10, 2025

Related command

Description
Update CLI to use latest Python SDK version 2.0.0 using new package import from https://pypi.org/project/azure-mgmt-postgresqlflexibleservers/

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.

Copilot AI review requested due to automatic review settings December 10, 2025 01:11
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Dec 10, 2025

️✔️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
️✔️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 Dec 10, 2025

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

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Dec 10, 2025

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>

@nasc17
Copy link
Copy Markdown
Member Author

nasc17 commented Dec 10, 2025

@evelyn-ys Please trigger tests

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 pull request updates the Azure CLI PostgreSQL flexible servers SDK from version 1.1.0b2 to version 2.0.0, introducing API version 2025-08-01. The changes involve updating method names, API endpoints, and parameter signatures to align with the new SDK version.

Key Changes:

  • Updated package dependency from azure-mgmt-postgresqlflexibleservers==1.1.0b2 to version 2.0.0 across all platform-specific requirement files
  • Renamed API methods to match new SDK conventions (e.g., executecheck_with_location, begin_createbegin_create_or_update, ServerForUpdateServerForPatch)
  • Updated client factory methods to use renamed operation groups (e.g., location_based_capabilitiescapabilities_by_location)
  • Modified test expectations including migration names, PostgreSQL versions (16→17), SKU names, and test locations (eastus2euap/southcentralus → canadacentral)
  • Added default_database_name parameter to Cluster model for elastic clusters

Reviewed changes

Copilot reviewed 16 out of 48 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
setup.py Updated package version from 1.1.0b2 to 2.0.0
requirements.py3.*.txt Updated package version across Windows, Linux, and Darwin platforms
validators.py Updated name availability check methods from execute/execute to check_with_location/check_globally
flexible_server_custom_postgres.py Updated model class from ServerForUpdate to ServerForPatch, changed begin_create to begin_create_or_update, added default_database_name to Cluster model, removed unused cf_availability_without_location references
flexible_server_custom_common.py Updated server list method from list() to list_by_subscription()
flexible_server_virtual_network.py Changed private DNS zone suffix method from execute() to get()
flexible_server_commands.py Updated operation group names and removed deprecated operations
_client_factory.py Updated client factory methods to use renamed operation groups
_flexible_server_location_capabilities_util.py Changed capability list method from execute to list
_flexible_server_util.py Updated default location from 'eastus' to 'canadacentral' for testing
test_rdbms_flexible_commands.py Updated test expectations including PostgreSQL version 17, new SKU names, and location changes
test_rdbms_flexible_commands_postgres_migration.py Updated migration test UUIDs to match new test recordings
test recording YAML files Updated API version in URIs from 2024-11-01-preview to 2025-08-01 and refreshed response data

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

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Dec 10, 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 Dec 11, 2025

@yonzhan @evelyn-ys please merge

@evelyn-ys evelyn-ys merged commit 3b4fab9 into Azure:dev Dec 14, 2025
58 of 59 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