Skip to content

Commit 58c8b02

Browse files
authored
[RDBMS] az postgres flexible-server update: BUG FIX, bypass fabric mirroring validation to allow updating high availability status for PG11 and PG12 servers (#31944)
1 parent 5679cd8 commit 58c8b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ def flexible_server_update_custom_func(cmd, client, instance,
474474
if high_availability.lower() != "disabled" and standby_availability_zone:
475475
high_availability_param.standby_availability_zone = standby_availability_zone
476476

477-
if high_availability.lower() != "disabled":
477+
# PG 11 and 12 will never receive fabric mirroring support. Skip this check for servers of these versions
478+
if high_availability.lower() != "disabled" and str(instance.version) not in ["11", "12"]:
478479
config_client = cf_postgres_flexible_config(cmd.cli_ctx, '_')
479480
fabric_mirror_status = config_client.get(resource_group_name, server_name, 'azure.fabric_mirror_enabled')
480481
if (fabric_mirror_status and fabric_mirror_status.value.lower() == 'on'):

0 commit comments

Comments
 (0)