Skip to content

Commit 9ea3671

Browse files
authored
[POSTGRESQL] az postgres flexible-server create/georestore/replica: Allow SSDV2 servers to perform create replica and geo restore (#32649)
1 parent 47cfdec commit 9ea3671

File tree

4 files changed

+316
-377
lines changed

4 files changed

+316
-377
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,6 @@ def flexible_replica_create(cmd, client, resource_group_name, source_server, rep
627627
location = source_server_object.location
628628
location = ''.join(location.lower().split())
629629

630-
if source_server_object.storage.type == "PremiumV2_LRS":
631-
raise CLIError("Read replica is not supported for servers with Premium SSD V2.")
632-
633630
list_location_capability_info = get_postgres_location_capability_info(cmd, location)
634631

635632
if tier is None and source_server_object is not None:
@@ -720,9 +717,6 @@ def flexible_server_georestore(cmd, client, resource_group_name, server_name, so
720717
except Exception as e:
721718
raise ResourceNotFoundError(e)
722719

723-
if source_server_object.storage.type == "PremiumV2_LRS":
724-
raise CLIError("Geo restore is not supported for servers with Premium SSD V2.")
725-
726720
db_context = DbContext(
727721
cmd=cmd, azure_sdk=postgresql_flexibleservers, cf_firewall=cf_postgres_flexible_firewall_rules,
728722
cf_db=cf_postgres_flexible_db, cf_availability=cf_postgres_check_resource_availability,

0 commit comments

Comments
 (0)