Skip to content

Commit 0d1fca4

Browse files
authored
Update restore-account-continuous-backup.md
1 parent 8556a7f commit 0d1fca4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Restore-AzCosmosDBAccount `
135135
-RestoreTimestampInUtc "UTCTime" `
136136
-Location "AzureRegionName" `
137137
-PublicNetworkAccess Disabled `
138-
-DisableTtl 1
138+
-DisableTtl $true
139139
140140
```
141141

@@ -150,11 +150,11 @@ Restore-AzCosmosDBAccount `
150150
-RestoreTimestampInUtc "2021-01-05T22:06:00" `
151151
-Location "West US" `
152152
-PublicNetworkAccess Disabled
153-
-DisableTtl 0
153+
-DisableTtl $false
154154
155155
156156
```
157-
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. Setting DisableTtl to 1 ensures TTL is disabled on the restored account, and not providing any value to it would restore the account with TTL enabled.
157+
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. Setting DisableTtl to $true ensures TTL is disabled on restored account,this ensure restore action sets [DefaultTimeToLive](https://learn.microsoft.com/azure/cosmos-db/nosql/time-to-live) on container to null on the restored account, and not providing parameter restores the account with TTL enabled if it was set earlier.
158158

159159
> [!NOTE]
160160
> For restoring with public network access disabled, the minimum stable version of Az.CosmosDB required is 1.12.0.
@@ -430,7 +430,7 @@ az cosmosdb restore \
430430
431431
```
432432

433-
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. Setting disable-ttl to True ensures TTL is disabled on the restored account, and not providing any value to it would restore the account with TTL enabled.
433+
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. Setting disable-ttl to to $true ensures TTL is disabled on restored account, which ensures restore action sets [DefaultTimeToLive](https://learn.microsoft.com/azure/cosmos-db/nosql/time-to-live) on container(s) to null on the restored account, and not providing this parameter restores the account with TTL enabled if it was set earlier..
434434

435435
> [!NOTE]
436436
> For restoring with public network access disabled, the minimum stable version of azure-cli is 2.52.0.

0 commit comments

Comments
 (0)