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
Copy file name to clipboardExpand all lines: articles/cosmos-db/restore-account-continuous-backup.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ Before restoring the account, install the [latest version of Azure PowerShell](/
121
121
122
122
### <a id="trigger-restore-ps"></a>Trigger a restore operation for API for NoSQL account
123
123
124
-
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, and timestamp:
124
+
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:
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.
149
152
153
+
[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.
155
+
>
150
156
**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.
151
157
152
158
```azurepowershell
@@ -412,8 +418,14 @@ The simplest way to trigger a restore is by issuing the restore command with nam
412
418
--restore-timestamp 2020-07-13T16:03:41+0000 \
413
419
--resource-group MyResourceGroup \
414
420
--location "West US"
421
+
--public-network-access Disabled
415
422
416
423
```
424
+
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 disable public network access for restored account.
425
+
426
+
> [NOTE]
427
+
> 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.
428
+
417
429
418
430
#### Create a new Azure Cosmos DB account by restoring only selected databases and containers from an existing database account
0 commit comments