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
@@ -122,7 +122,7 @@ Before restoring the account, install the [latest version of Azure PowerShell](/
122
122
123
123
### <aid="trigger-restore-ps"></a>Trigger a restore operation for API for NoSQL account
124
124
125
-
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:
125
+
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, DisableTtl, 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.
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, not providing parameter restores the account with TTL enabled if it was set earlier.
155
158
156
159
> [!NOTE]
157
160
> For restoring with public network access disabled, the minimum stable version of Az.CosmosDB required is 1.12.0.
@@ -422,11 +425,12 @@ az cosmosdb restore \
422
425
--restore-timestamp 2020-07-13T16:03:41+0000 \
423
426
--resource-group <MyResourceGroup> \
424
427
--location "West US" \
425
-
--public-network-access Disabled
428
+
--public-network-access Disabled \
429
+
--disable-ttl True
426
430
427
431
```
428
432
429
-
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.
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, and not providing this parameter restores the account with TTL enabled if it was set earlier.
430
434
431
435
> [!NOTE]
432
436
> For restoring with public network access disabled, the minimum stable version of azure-cli is 2.52.0.
@@ -537,8 +541,7 @@ This command output now shows when a database was created and deleted.
0 commit comments