From 5e48f4fb18e94e38e13f0443b3cb1b386dd9866e Mon Sep 17 00:00:00 2001 From: Naia Scott Date: Mon, 26 Jan 2026 11:43:41 -0500 Subject: [PATCH] Update warning text --- .../postgresql/_flexible_server_location_capabilities_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/postgresql/_flexible_server_location_capabilities_util.py b/src/azure-cli/azure/cli/command_modules/postgresql/_flexible_server_location_capabilities_util.py index e217b8be5ee..ee5dcfd1260 100644 --- a/src/azure-cli/azure/cli/command_modules/postgresql/_flexible_server_location_capabilities_util.py +++ b/src/azure-cli/azure/cli/command_modules/postgresql/_flexible_server_location_capabilities_util.py @@ -55,8 +55,9 @@ def _postgres_parse_list_capability(result, is_offer_restriction_check_required= geo_backup = [feature for feature in supported_features if feature.name == "GeoBackup"] autonomous_tuning = [feature for feature in supported_features if feature.name == "IndexTuning"] + # Update once capability calls are corrected for each command if restricted == "Enabled" and not is_offer_restriction_check_required: - raise InvalidArgumentValueError("The location is restricted for provisioning of flexible servers. Please try using another region.") + raise InvalidArgumentValueError("The location is restricted from performing this operation.") if restricted != "Disabled" and not is_offer_restriction_check_required: raise InvalidArgumentValueError("No available SKUs in this location.")