Skip to content

Commit

Permalink
[SQL] BREAKING CHANGE: Update Microsoft.Sql to track2 SDK (#18637)
Browse files Browse the repository at this point in the history
* Update sql track2

* Update commands.py

update begin_delete

* update setter_name to pass sdk validation

* replace_all_delete

* pass az self-check

* update recording tests

* fix all begin_xyz issue

* run test to unblock some issues

* pass SqlServerMSSupportScenarioTest

* change region to pass tests

* pass LTR test

* add recorded tests for MI

* update db_rename parameters

* pass db management tests

* address aad tests

* pass sql server aad

* revert azure-mgmt-netapp version change

* record test after rebase

* add three passed tests

* modify short term policy

* complete another three tests

* pass tde test

* pass two more tests

* Update custom.py

* pass two more tests

* pass classification test

* pass long and short backup

* update test file to match new config

* pass server and db security tests

* record test_sql_db_sensitivity_classifications again

* update MI tests

* pass MI tests

* pass tests

* modify instance_pool_test

* update aad_admin and aad_only_auth

* update sdk 3.0.1

* record the mssuport and db security tests

* pass instance pool and virtual cluster tests

* update hide uuid

* hack Microsoft.Management UUID

* pass instance failover

* fix lint/style and pass MI tests

* rebase

* pass outbound command test

* change show command and make log replay as live_only

* Delete test_sql_midb_logreplay_mgmt.yaml

* address the comments

* modify get_long_term_retention

* remove the --security-alert-policy-name

* pass two MI AAD tests with specific setup

* add comment and remove record only
  • Loading branch information
ericshape authored Jul 26, 2021
1 parent e05b1cf commit 588910d
Show file tree
Hide file tree
Showing 66 changed files with 55,891 additions and 202,737 deletions.
5 changes: 5 additions & 0 deletions src/azure-cli/azure/cli/command_modules/sql/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@
text: az sql db str-policy show -g mygroup -s myserver -n mydb
"""

helps['sql db str-policy wait'] = """
type: command
short-summary: Place the CLI in a waiting state until the policy is set.
"""

helps['sql db ltr-policy'] = """
type: group
short-summary: Manage SQL database long term retention policy.
Expand Down
6 changes: 4 additions & 2 deletions src/azure-cli/azure/cli/command_modules/sql/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,8 @@ def _configure_security_policy_storage_params(arg_ctx):

c.argument('connection_type',
options_list=['--connection-type', '-t'],
arg_type=get_enum_type(ServerConnectionType))
arg_type=get_enum_type(ServerConnectionType),
help='The required parameters for updating a secure connection policy. The value is default',)

#####
# sql server dns-alias
Expand Down Expand Up @@ -1715,7 +1716,8 @@ def _configure_security_policy_storage_params(arg_ctx):
arg_type=server_param_type)

c.argument('virtual_network_rule_name',
options_list=['--name', '-n'])
options_list=['--name', '-n'],
help='The name of the virtual network rule.')

c.argument('virtual_network_subnet_id',
options_list=['--subnet'],
Expand Down
126 changes: 79 additions & 47 deletions src/azure-cli/azure/cli/command_modules/sql/commands.py

Large diffs are not rendered by default.

Loading

0 comments on commit 588910d

Please sign in to comment.