Skip to content

Commit a8b42f5

Browse files
committed
Improved helper messages
1 parent e6d5b59 commit a8b42f5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/azure-cli/azure/cli/command_modules/sql/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@
18341834
examples:
18351835
- name: Update a server. (autogenerated)
18361836
text: az sql server update --admin-password myadminpassword --name MyAzureSQLServer --resource-group MyResourceGroup
1837-
- name: Enable soft delete protection with 7-day retention.
1837+
- name: Enable soft delete protection with default (7-day) retention.
18381838
text: az sql server update --name MyAzureSQLServer --resource-group MyResourceGroup --enable-soft-delete
18391839
- name: Modify soft delete retention period.
18401840
text: az sql server update --name MyAzureSQLServer --resource-group MyResourceGroup --enable-soft-delete --soft-delete-retention-days 5

src/azure-cli/azure/cli/command_modules/sql/_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,9 @@ def _configure_security_policy_storage_params(arg_ctx):
19201920

19211921
c.argument('soft_delete_retention_days',
19221922
options_list=['--soft-delete-retention-days', '--sdrd'],
1923-
help='Specify the number of days to retain soft deleted server',
1923+
help='Specify the number of days to retain soft deleted server. During this period, '
1924+
'the server can be restored to an active state with az sql server restore. '
1925+
'After this period has elapsed, the server is hard deleted and can not be restored.',
19241926
validator=validate_soft_delete_parameters)
19251927

19261928
with self.argument_context('sql server create') as c:
@@ -2319,7 +2321,7 @@ def _configure_security_policy_storage_params(arg_ctx):
23192321
with self.argument_context('sql server deleted-server list') as c:
23202322
c.argument('location', arg_type=get_location_type(self.cli_ctx),
23212323
required=True,
2322-
help='Location to list deleted servers from.')
2324+
help='List deleted servers in this location.')
23232325

23242326
###############################################
23252327
# sql managed instance #

0 commit comments

Comments
 (0)