Skip to content

Commit ad097be

Browse files
Merge pull request #260096 from kanshiG/docs-editor/restore-account-continuous-bac-1701496879
Update restore-account-continuous-backup.md
2 parents db7f7c7 + 2479607 commit ad097be

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

articles/cosmos-db/restore-account-continuous-backup.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,16 @@ Before restoring the account, install the [latest version of Azure PowerShell](/
123123
124124
The following cmdlet is an example to trigger a restore operation with the restore command by using the target account, source account, location, resource group, PublicNetworkAccess and timestamp:
125125
126+
127+
126128
```azurepowershell
127129
128130
Restore-AzCosmosDBAccount `
129131
-TargetResourceGroupName "MyRG" `
130132
-TargetDatabaseAccountName "RestoredAccountName" `
131133
-SourceDatabaseAccountName "SourceDatabaseAccountName" `
132134
-RestoreTimestampInUtc "UTCTime" `
133-
-Location "AzureRegionName"
135+
-Location "AzureRegionName" `
134136
-PublicNetworkAccess Disabled
135137
136138
```
@@ -144,14 +146,14 @@ Restore-AzCosmosDBAccount `
144146
-TargetDatabaseAccountName "Pitracct" `
145147
-SourceDatabaseAccountName "source-sql" `
146148
-RestoreTimestampInUtc "2021-01-05T22:06:00" `
147-
-Location "West US"
149+
-Location "West US" `
148150
-PublicNetworkAccess Disabled
149151
150152
```
151-
If `PublicNetworkAccess` is not set, restored account is accessible from public network, please ensure to pass Disabled to the `PublicNetworkAccess` option to disable public network access for restored account.
153+
If `PublicNetworkAccess` is not set, restored account is accessible from public network, please ensure to pass `Disabled` to the `PublicNetworkAccess` option to disable public network access for restored account.
152154

153155
> [!NOTE]
154-
> For restoring with public network access disabled, you'll need to install the preview of powershell module of CosmosDB by executing `Install-Module -Name Az.CosmosDB -AllowPrerelease`. You would also require version 5.1 of the Powershell.
156+
> For restoring with public network access disabled, the minimum stable version of Az.CosmosDB required is 1.12.0.
155157
156158
**Example 2:** Restoring specific collections and databases. This example restores the collections *MyCol1*, *MyCol2* from *MyDB1* and the entire database *MyDB2*, which, includes all the containers under it.
157159

@@ -194,7 +196,7 @@ Restore-AzCosmosDBAccount `
194196
-TargetDatabaseAccountName "Pitracct" `
195197
-SourceDatabaseAccountName "SourceTable" `
196198
-RestoreTimestampInUtc "2022-04-06T22:06:00" `
197-
-TablesToRestore $tablesToRestore
199+
-TablesToRestore $tablesToRestore `
198200
-Location "West US"
199201
```
200202
### To restore a continuous account that is configured with managed identity using CLI
@@ -372,8 +374,8 @@ Use the following command to list all the versions of tables. This command only
372374

373375
```azurepowershell
374376
Get-AzCosmosdbTableRestorableTable `
375-
-DatabaseAccountInstanceId "d056a4f8-044a-436f-80c8-cd3edbc94c68"
376-
` -Location "West US"
377+
-DatabaseAccountInstanceId "d056a4f8-044a-436f-80c8-cd3edbc94c68" `
378+
-Location "West US"
377379
```
378380
#### Find tables that can be restored at any given timestamp
379381

@@ -411,8 +413,6 @@ The simplest way to trigger a restore is by issuing the restore command with nam
411413

412414
#### Create a new Azure Cosmos DB account by restoring from an existing account
413415

414-
415-
416416
```azurecli-interactive
417417
418418
az cosmosdb restore \
@@ -428,11 +428,7 @@ az cosmosdb restore \
428428
If `--public-network-access` is not set, restored account is accessible from public network. Please ensure to pass `Disabled` to the `--public-network-access` option to prevent public network access for restored account.
429429

430430
> [!NOTE]
431-
> For restoring with public network access disabled, you'll need to install the cosmosdb-preview 0.23.0 of CLI extension by executing `az extension update --name cosmosdb-preview `. You would also require version 2.17.1 of the CLI.
432-
433-
434-
435-
431+
> For restoring with public network access disabled, the minimum stable version of azure-cli is 2.52.0.
436432
437433
#### Create a new Azure Cosmos DB account by restoring only selected databases and containers from an existing database account
438434

@@ -669,16 +665,6 @@ az cosmosdb mongodb restorable-resource list \
669665
--restore-timestamp "2020-07-20T16:09:53+0000"
670666
```
671667

672-
673-
674-
675-
676-
677-
678-
679-
680-
681-
682668
#### List all the versions of databases in a live database account
683669
The enumeration commands described below help you discover the resources that are available for restore at various timestamps. Additionally, they also provide a feed of key events on the restorable account, database, and graph resources. These commands only work for live accounts.
684670

0 commit comments

Comments
 (0)