You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Implemented 12 soft delete commands (list, show, delete/purge, recover for accounts, databases, and collections)
- Added soft delete configuration parameters to cosmosdb create/update commands
- Added comprehensive test coverage with 6 test methods
- Optimized test execution by removing unnecessary sleep statements
- Added linter exclusions for framework-generated parameters
- Updated HISTORY.rst and bumped version to 1.7.0
Copy file name to clipboardExpand all lines: src/cosmosdb-preview/azext_cosmosdb_preview/_help.py
+137Lines changed: 137 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -564,11 +564,25 @@
564
564
Default: single region account in the location of the specified resource group.
565
565
Failover priority values are 0 for write regions and greater than 0 for read regions. A failover priority value must be unique and less than the total number of regions.
566
566
Multiple locations can be specified by using more than one `--locations` argument.
567
+
- name: --enabled-soft-deletion
568
+
short-summary: Enable or disable soft deletion on the account
569
+
long-summary: |
570
+
When enabled, deleted databases and containers are retained for the configured retention period and can be recovered.
571
+
- name: --sd-retention
572
+
short-summary: Soft deletion retention period in minutes
573
+
long-summary: |
574
+
The retention period for soft-deleted resources. Must be at least equal to min-minutes-before-permanent-deletion-allowed.
575
+
- name: --min-purge-minutes
576
+
short-summary: Minimum minutes before permanent deletion is allowed
577
+
long-summary: |
578
+
The minimum time that must pass after soft-deletion before a resource can be permanently deleted (purged).
567
579
examples:
568
580
- name: Update an Azure Cosmos DB database account. (autogenerated)
569
581
text: az cosmosdb update --capabilities EnableGremlin --name MyCosmosDBDatabaseAccount --resource-group MyResourceGroup
570
582
- name: Update an Azure Cosmos DB database account to enable materialized views.
571
583
text: az cosmosdb update --name MyCosmosDBDatabaseAccount --resource-group MyResourceGroup --enable-materialized-views true
Copy file name to clipboardExpand all lines: src/cosmosdb-preview/azext_cosmosdb_preview/_params.py
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -829,6 +829,78 @@ def load_arguments(self, _):
829
829
c.argument('scope', options_list=['--scope', '-s'], help="Data plane resource path at which this Role Assignment is being granted.")
830
830
c.argument('principal_id', options_list=['--principal-id', '-p'], help="AAD Object ID of the principal to which this Role Assignment is being granted.")
0 commit comments