@@ -374,20 +374,28 @@ def _configure_db_dw_params(arg_ctx):
374
374
creation_arg_group = 'Creation'
375
375
376
376
arg_ctx .argument ('collation' ,
377
- arg_group = creation_arg_group )
377
+ arg_group = creation_arg_group ,
378
+ help = 'The collation of the database.' )
378
379
379
380
arg_ctx .argument ('catalog_collation' ,
380
381
arg_group = creation_arg_group ,
381
- arg_type = get_enum_type (CatalogCollationType ))
382
+ arg_type = get_enum_type (CatalogCollationType ),
383
+ help = 'Collation of the metadata catalog.' )
382
384
383
385
# WideWorldImportersStd and WideWorldImportersFull cannot be successfully created.
384
386
# AdventureWorksLT is the only sample name that is actually supported.
385
387
arg_ctx .argument ('sample_name' ,
386
388
arg_group = creation_arg_group ,
387
- arg_type = get_enum_type ([SampleName .adventure_works_lt ]))
389
+ arg_type = get_enum_type ([SampleName .adventure_works_lt ]),
390
+ help = 'The name of the sample schema to apply when creating this'
391
+ 'database.' )
388
392
389
393
arg_ctx .argument ('license_type' ,
390
- arg_type = get_enum_type (DatabaseLicenseType ))
394
+ arg_type = get_enum_type (DatabaseLicenseType ),
395
+ help = 'The license type to apply for this database.'
396
+ '``LicenseIncluded`` if you need a license, or ``BasePrice``'
397
+ 'if you have a license and are eligible for the Azure Hybrid'
398
+ 'Benefit.' )
391
399
392
400
arg_ctx .argument ('zone_redundant' ,
393
401
arg_type = zone_redundant_param_type )
@@ -739,17 +747,27 @@ def load_arguments(self, _):
739
747
])
740
748
741
749
c .argument ('administrator_login' ,
742
- options_list = ['--admin-user' , '-u' ])
750
+ options_list = ['--admin-user' , '-u' ],
751
+ help = 'Required. Administrator login name.' )
743
752
744
753
c .argument ('administrator_login_password' ,
745
- options_list = ['--admin-password' , '-p' ])
754
+ options_list = ['--admin-password' , '-p' ],
755
+ help = 'Required. Administrator login password.' )
746
756
747
757
c .argument ('authentication_type' ,
748
758
options_list = ['--auth-type' , '-a' ],
749
- arg_type = get_enum_type (AuthenticationType ))
759
+ arg_type = get_enum_type (AuthenticationType ),
760
+ help = 'Authentication type.' )
761
+
762
+ c .argument ('storage_key' ,
763
+ help = 'Required. Storage key.' )
750
764
751
765
c .argument ('storage_key_type' ,
752
- arg_type = get_enum_type (StorageKeyType ))
766
+ arg_type = get_enum_type (StorageKeyType ),
767
+ help = 'Required. Storage key type.' )
768
+
769
+ c .argument ('storage_uri' ,
770
+ help = 'Required. Storage Uri.' )
753
771
754
772
with self .argument_context ('sql db import' ) as c :
755
773
# Create args that will be used to build up the ImportExistingDatabaseDefinition object
@@ -763,17 +781,27 @@ def load_arguments(self, _):
763
781
])
764
782
765
783
c .argument ('administrator_login' ,
766
- options_list = ['--admin-user' , '-u' ])
784
+ options_list = ['--admin-user' , '-u' ],
785
+ help = 'Required. Administrator login name.' )
767
786
768
787
c .argument ('administrator_login_password' ,
769
- options_list = ['--admin-password' , '-p' ])
788
+ options_list = ['--admin-password' , '-p' ],
789
+ help = 'Required. Administrator login password.' )
770
790
771
791
c .argument ('authentication_type' ,
772
792
options_list = ['--auth-type' , '-a' ],
773
- arg_type = get_enum_type (AuthenticationType ))
793
+ arg_type = get_enum_type (AuthenticationType ),
794
+ help = 'Authentication type.' )
795
+
796
+ c .argument ('storage_key' ,
797
+ help = 'Required. Storage key.' )
774
798
775
799
c .argument ('storage_key_type' ,
776
- arg_type = get_enum_type (StorageKeyType ))
800
+ arg_type = get_enum_type (StorageKeyType ),
801
+ help = 'Required. Storage key type.' )
802
+
803
+ c .argument ('storage_uri' ,
804
+ help = 'Required. Storage Uri.' )
777
805
778
806
# The parameter name '--name' is used for 'database_name', so we need to give a different name
779
807
# for the import extension 'name' parameter to avoid conflicts. This parameter is actually not
@@ -1174,7 +1202,8 @@ def _configure_security_policy_storage_params(arg_ctx):
1174
1202
options_list = ['--max-size' , '--storage' ])
1175
1203
1176
1204
c .argument ('license_type' ,
1177
- arg_type = get_enum_type (ElasticPoolLicenseType ))
1205
+ arg_type = get_enum_type (ElasticPoolLicenseType ),
1206
+ help = 'The license type to apply for this elastic pool.' )
1178
1207
1179
1208
c .argument ('zone_redundant' ,
1180
1209
arg_type = zone_redundant_param_type )
@@ -1196,6 +1225,9 @@ def _configure_security_policy_storage_params(arg_ctx):
1196
1225
c .argument ('maintenance_configuration_id' ,
1197
1226
arg_type = maintenance_configuration_id_param_type )
1198
1227
1228
+ c .argument ('high_availability_replica_count' ,
1229
+ arg_type = read_replicas_param_type )
1230
+
1199
1231
with self .argument_context ('sql elastic-pool create' ) as c :
1200
1232
# Create args that will be used to build up the ElasticPool object
1201
1233
create_args_for_complex_type (
@@ -1207,6 +1239,7 @@ def _configure_security_policy_storage_params(arg_ctx):
1207
1239
'tags' ,
1208
1240
'zone_redundant' ,
1209
1241
'maintenance_configuration_id' ,
1242
+ 'high_availability_replica_count' ,
1210
1243
])
1211
1244
1212
1245
# Create args that will be used to build up the ElasticPoolPerDatabaseSettings object
@@ -1371,10 +1404,14 @@ def _configure_security_policy_storage_params(arg_ctx):
1371
1404
options_list = ['--name' , '-n' ])
1372
1405
1373
1406
c .argument ('administrator_login' ,
1374
- options_list = ['--admin-user' , '-u' ])
1407
+ options_list = ['--admin-user' , '-u' ],
1408
+ help = 'Administrator username for the server. Once'
1409
+ 'created it cannot be changed.' )
1375
1410
1376
1411
c .argument ('administrator_login_password' ,
1377
- options_list = ['--admin-password' , '-p' ])
1412
+ options_list = ['--admin-password' , '-p' ],
1413
+ help = 'The administrator login password (required for'
1414
+ 'server creation).' )
1378
1415
1379
1416
c .argument ('assign_identity' ,
1380
1417
options_list = ['--assign_identity' , '-i' ],
@@ -1899,11 +1936,16 @@ def _configure_security_policy_storage_params(arg_ctx):
1899
1936
1900
1937
c .argument ('administrator_login' ,
1901
1938
options_list = ['--admin-user' , '-u' ],
1902
- required = False )
1939
+ required = False ,
1940
+ help = 'Administrator username for the managed instance. Can'
1941
+ 'only be specified when the managed instance is being'
1942
+ 'created (and is required for creation).' )
1903
1943
1904
1944
c .argument ('administrator_login_password' ,
1905
1945
options_list = ['--admin-password' , '-p' ],
1906
- required = False )
1946
+ required = False ,
1947
+ help = 'The administrator login password (required for'
1948
+ 'managed instance creation).' )
1907
1949
1908
1950
c .extra ('vnet_name' ,
1909
1951
options_list = ['--vnet-name' ],
@@ -1964,7 +2006,9 @@ def _configure_security_policy_storage_params(arg_ctx):
1964
2006
])
1965
2007
1966
2008
c .argument ('administrator_login_password' ,
1967
- options_list = ['--admin-password' , '-p' ])
2009
+ options_list = ['--admin-password' , '-p' ],
2010
+ help = 'The administrator login password (required for'
2011
+ 'managed instance creation).' )
1968
2012
1969
2013
c .argument ('assign_identity' ,
1970
2014
options_list = ['--assign-identity' , '-i' ],
0 commit comments