From 41441560668787ef8f964f5178c206815d65f215 Mon Sep 17 00:00:00 2001 From: alabi leke Date: Mon, 14 Sep 2026 21:35:57 -0400 Subject: [PATCH 1/2] Clarify valid units for --max-size in SQL commands --- src/azure-cli/azure/cli/command_modules/sql/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/_params.py b/src/azure-cli/azure/cli/command_modules/sql/_params.py index cc2445cd5a8..1f3eaa99577 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/_params.py +++ b/src/azure-cli/azure/cli/command_modules/sql/_params.py @@ -199,7 +199,7 @@ def get_location_type_with_default_from_resource_group(cli_ctx): max_size_bytes_param_type = CLIArgumentType( options_list=['--max-size'], type=SizeWithUnitConverter('B', result_type=int), - help='The max storage size. If no unit is specified, defaults to bytes (B).') + help='The max storage size. If no unit is specified, defaults to bytes (B). Valid units are B, kB, MB, GB, TB, e.g. 102400MB.') zone_redundant_param_type = CLIArgumentType( options_list=['--zone-redundant', '-z'], From c4cd73919e9d3d92eeeb968250c91795ced74f94 Mon Sep 17 00:00:00 2001 From: alabi leke Date: Tue, 15 Sep 2026 15:14:45 -0400 Subject: [PATCH 2/2] Fix line-too-long pylint error in --max-size help text --- src/azure-cli/azure/cli/command_modules/sql/_params.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/_params.py b/src/azure-cli/azure/cli/command_modules/sql/_params.py index 1f3eaa99577..64bcb7ff08e 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/_params.py +++ b/src/azure-cli/azure/cli/command_modules/sql/_params.py @@ -199,7 +199,8 @@ def get_location_type_with_default_from_resource_group(cli_ctx): max_size_bytes_param_type = CLIArgumentType( options_list=['--max-size'], type=SizeWithUnitConverter('B', result_type=int), - help='The max storage size. If no unit is specified, defaults to bytes (B). Valid units are B, kB, MB, GB, TB, e.g. 102400MB.') + help='The max storage size. If no unit is specified, defaults to bytes (B). ' + 'Valid units are B, kB, MB, GB, TB, e.g. 102400MB.') zone_redundant_param_type = CLIArgumentType( options_list=['--zone-redundant', '-z'],