Skip to content
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

{RDBMS} Add warnings that selecting PG version 12 will no longer be supported in az postgres flexible-server upgrade #30537

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ def flexible_server_version_upgrade(cmd, client, resource_group_name, server_nam
current_version = int(instance.version.split('.')[0])
if current_version >= int(version):
raise CLIError("The version to upgrade to must be greater than the current version.")
if version == '12':
logger.warning("Support for PostgreSQL 12 has officially ended. As a result, "
"the option to select version 12 will be removed in the near future. "
"We recommend selecting PostgreSQL 13 or a later version for "
"all future operations.")

replica_operations_client = cf_postgres_flexible_replica(cmd.cli_ctx, '_')
version_mapped = version
Expand Down
Loading