Skip to content

Commit

Permalink
[cosmosdb-preview] Update readme and history files for cosmos db (Azu…
Browse files Browse the repository at this point in the history
…re#6249)

* update python sdk

* sdk version 10-15

* crud tests

* minor changes

* rename test files

* minor changes

* minor change

* minor cleanup

* fix tests failure

* create test

* delete and shw commands

* working test

* firewall changes

* minor update

* update sdk with 03-01 version

* add tests

* fix update and tests

* minor cleanup

* added test case

* added param source_backup_location

* update sdk

* mayank public network access changes

* burst capacity changes

* update shard-node-sku to shard-node-tier

* address review comments

* address built issues

* fix static analysis errors

* updates to crossregionrestore

* reverted models_py3 changes - not needed, this is for sdk

* added validation for location in test case

* multi region account

* addressed comments

* Fixing merge conflicts

* mayank public network access changes

* update implementation and test records

* update test records

* cross region restore fixes and clean run

* address review comments

* addressed comments, removed mayanks changes as his seperate PR got merged.

* style fixes from azdev style

* updated comments

* resolve static analysis issues

* address review comments

* address revie comments

* address revie comments

* added single region account cross region scenario fixes

* minor changes, updated comments, changed region to eastus and westus

* updated region for batch1. batch2, cross region restore test

* updating recordings

* resolve linter issues

* added recordings

* azdev style update

* update recordings

* update recordings for mongocluster operations

* minor changes

* update test recordings

* added recording for burst capacity

* recordings

* update recordings

* update recordings

* address review comments

* address review comments

* wip for inaccount restore suggestions

* update assertions for inaccount restore tests

* address review comments

* updated readme and history

---------

Co-authored-by: Ashwini Singh <ashwsing@microsoft.com>
Co-authored-by: Ashwini Singh <42292682+ashwinisingh01@users.noreply.github.com>
Co-authored-by: dsapaliga <dsapaliga@microsoft.com>
Co-authored-by: Mayank Katwal <mayankkatwal@microsoft.com>
Co-authored-by: Dinesh Kumar Dhamotharan <ddhamotharan@microsoft.com>
Co-authored-by: mayankkatwal <121567171+mayankkatwal@users.noreply.github.com>
  • Loading branch information
7 people committed May 4, 2023
1 parent 3fd86f7 commit 0712d04
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 200 deletions.
1 change: 1 addition & 0 deletions src/cosmosdb-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Release History
* Add 'source_backup_location' parameter to 'cosmosdb restore' command
* Add support for performing in-account restore of deleted databases and graphs in a Gremlin account.
* Add support for performing in-account restore of deleted tables in a Table account.
* Add `--enable-burst-capacity` parameter for create/update database account.

++++++
0.23.0
Expand Down
20 changes: 20 additions & 0 deletions src/cosmosdb-preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ This package provides commands to
- Create/Delete a cosmosdb materialized views builder service resource
- Provision and update database account with Continuous 7 days backup mode
- Retrieve and redistribute throughput at physical partition level.
- Create a new Azure Cosmos DB database account with burst capacity.
- Update an Azure Cosmos DB database account to enable/disable burst capacity.

## How to use ##

Expand Down Expand Up @@ -263,6 +265,24 @@ az cosmosdb service delete \
--name "MaterializedViewsBuilder" \
```

#### Create a new CosmosDB burst capacity enabled Account ####

```sh
az cosmosdb create \
--resource-group "my-rg" \
--name "my-db-account" \
--enable-burst-capacity true
```

#### Enable burst capacity on an existing CosmosDB Account ####

```sh
az cosmosdb update \
--resource-group "my-rg" \
--name "my-db-account" \
--enable-burst-capacity true
```

#### Restore a deleted database within same account for a Sql database account ####

```sh
Expand Down
Loading

0 comments on commit 0712d04

Please sign in to comment.