Skip to content

Commit 7b40013

Browse files
authored
Update restore-account-continuous-backup.md
Getting ready for the disabled network access
1 parent 79334c0 commit 7b40013

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Before restoring the account, install the [latest version of Azure PowerShell](/
121121
122122
### <a id="trigger-restore-ps"></a>Trigger a restore operation for API for NoSQL account
123123
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:
125125
126126
```azurepowershell
127127
@@ -131,6 +131,7 @@ Restore-AzCosmosDBAccount `
131131
-SourceDatabaseAccountName "SourceDatabaseAccountName" `
132132
-RestoreTimestampInUtc "UTCTime" `
133133
-Location "AzureRegionName"
134+
-PublicNetworkAccess Disabled
134135
135136
```
136137

@@ -144,9 +145,14 @@ Restore-AzCosmosDBAccount `
144145
-SourceDatabaseAccountName "source-sql" `
145146
-RestoreTimestampInUtc "2021-01-05T22:06:00" `
146147
-Location "West US"
148+
-PublicNetworkAccess Disabled
147149
148150
```
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.
149152

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 x of the Powershell.
155+
>
150156
**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.
151157

152158
```azurepowershell
@@ -412,8 +418,14 @@ The simplest way to trigger a restore is by issuing the restore command with nam
412418
--restore-timestamp 2020-07-13T16:03:41+0000 \
413419
--resource-group MyResourceGroup \
414420
--location "West US"
421+
--public-network-access Disabled
415422
416423
```
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 preview of powershell module of CosmosDB by executing `az extension update --name cosmosdb-preview `. You would also require version x of the CLI.
428+
417429

418430
#### Create a new Azure Cosmos DB account by restoring only selected databases and containers from an existing database account
419431

0 commit comments

Comments
 (0)