Skip to content

Commit d433ca0

Browse files
committed
cli fixes
1 parent 2a6319e commit d433ca0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def load_arguments(self, _):
441441
c.argument('default_identity', help="The primary identity to access key vault in CMK related features. e.g. 'FirstPartyIdentity', 'SystemAssignedIdentity' and more.")
442442
c.argument('public_network_access', options_list=['--public-network-access', '-p'], arg_type=get_enum_type(['ENABLED', 'DISABLED']), help="Sets public network access in server to either Enabled or Disabled.")
443443
c.argument('disable_ttl', options_list=['--disable-ttl', '-d'], arg_type=get_three_state_flag(), help="Enable or disable restoring with ttl disabled.")
444-
c.argument('source_backup_location', help="This is the location of the source account where backups are located. Provide this value if the source and target are in different locations.", is_preview=True)
444+
c.argument('source_backup_location', help="This is the location of the source account where backups are located. Provide this value if the source and target are in different locations.")
445445

446446
# Mongo role definition
447447
with self.argument_context('cosmosdb mongodb role definition') as c:

src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ def _create_database_account(client,
367367
if disable_ttl is not None:
368368
restore_parameters.restore_with_ttl_disabled = disable_ttl
369369

370+
if source_backup_location is not None:
371+
restore_parameters.source_backup_location = source_backup_location
372+
370373
params = DatabaseAccountCreateUpdateParameters(
371374
location=arm_location,
372375
locations=locations,
@@ -398,8 +401,7 @@ def _create_database_account(client,
398401
enable_per_region_per_partition_autoscale=enable_prpp_autoscale,
399402
minimal_tls_version=minimal_tls_version,
400403
enable_pbe=enable_pbe,
401-
default_priority_level=default_priority_level,
402-
source_backup_location=source_backup_location
404+
default_priority_level=default_priority_level
403405
)
404406

405407
async_docdb_create = client.begin_create_or_update(resource_group_name, account_name, params)

0 commit comments

Comments
 (0)