Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/cosmosdb-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@

Release History
===============
0.18.1
++++++
* Modify parameter for Managed Identity name.
0.20.0
* Add support for Continuous mode restore with user provided identity.

0.19.0
++++++
* Add support for performing in-account restore of deleted databases and containers for a Sql database account.
* Add support for performing in-account restore of deleted databases and collections for a MongoDB database account.

0.18.1
++++++
* Modify parameter for Managed Identity name.

0.18.0
++++++
* Add support for retrieving and redistributing throughput at physical partition level.
Expand Down
2 changes: 2 additions & 0 deletions src/cosmosdb-preview/azext_cosmosdb_preview/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ def load_arguments(self, _):
c.argument('databases_to_restore', nargs='+', action=CreateDatabaseRestoreResource)
c.argument('gremlin_databases_to_restore', nargs='+', action=CreateGremlinDatabaseRestoreResource, is_preview=True)
c.argument('tables_to_restore', nargs='+', action=CreateTableRestoreResource, is_preview=True)
c.argument('assign_identity', nargs='*', help="Assign system or user assigned identities separated by spaces. Use '[system]' to refer system assigned identity.", is_preview=True)
c.argument('default_identity', help="The primary identity to access key vault in CMK related features. e.g. 'FirstPartyIdentity', 'SystemAssignedIdentity' and more.", is_preview=True)

# Restorable Database Accounts
with self.argument_context('cosmosdb restorable-database-account show') as c:
Expand Down
4 changes: 4 additions & 0 deletions src/cosmosdb-preview/azext_cosmosdb_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ def cli_cosmosdb_restore(cmd,
target_database_account_name,
restore_timestamp,
location,
assign_identity=None,
default_identity=None,
databases_to_restore=None,
gremlin_databases_to_restore=None,
tables_to_restore=None):
Expand Down Expand Up @@ -848,6 +850,8 @@ def cli_cosmosdb_restore(cmd,
resource_group_name=resource_group_name,
account_name=target_database_account_name,
locations=locations,
assign_identity=assign_identity,
default_identity=default_identity,
is_restore_request=True,
restore_source=target_restorable_account.id,
restore_timestamp=restore_timestamp_datetime_utc.isoformat(),
Expand Down
Loading