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
+27-3Lines changed: 27 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to identify the restore time and restore a live or delete
4
4
author: kanshiG
5
5
ms.service: cosmos-db
6
6
ms.topic: how-to
7
-
ms.date: 10/28/2021
7
+
ms.date: 11/02/2021
8
8
ms.author: govindk
9
9
ms.reviewer: sngun
10
10
ms.custom: devx-track-azurepowershell
@@ -89,9 +89,17 @@ After initiating a restore operation, select the **Notification** bell icon at t
89
89
90
90
:::image type="content" source="./media/restore-account-continuous-backup/track-restore-operation-status.png" alt-text="The status of restored account changes from creating to online when the operation is complete." border="true" lightbox="./media/restore-account-continuous-backup/track-restore-operation-status.png":::
91
91
92
-
## Get the restore time after the restore completes
92
+
###Get the restore details from the restored account
93
93
94
-
After the restore operation completes, you may want to know the source account name or time from the restored account is there way to know from which account it was restored and what was the restore point-in-time? Request to please take a note of AEMO’s question on the subject of this email and Kalyan’s reply to it.
94
+
After the restore operation completes, you may want to know the source account name from which you restored or the restore time. In some cases, the source account may be deleted and you can get these details from the restored account.
95
+
96
+
Use the following steps to get the restore details from Azure portal:
97
+
98
+
1. Sign into the [Azure portal](https://portal.azure.com/) and navigate to the restored account.
99
+
100
+
1. Navigate to the **Export template** pane. It opens a JSON template, corresponding to the restored account.
101
+
102
+
1. The **resources** > **properties** > **restoreParameters** object contains the restore details. The **restoreTimestampInUtc** gives you the time at which the account was restored and the **databasesToRestore** shows the database and container from which the account was restored.
95
103
96
104
## <aid="restore-account-powershell"></a>Restore an account using Azure PowerShell
97
105
@@ -152,6 +160,14 @@ Restore-AzCosmosDBAccount `
152
160
153
161
```
154
162
163
+
### Get the restore details from the restored account
164
+
165
+
Import the `Az.CosmosDB` module and run the following command to get the restore details:
### <aid="enumerate-sql-api"></a>Enumerate restorable resources for SQL API
156
172
157
173
The enumeration cmdlets 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 container resources.
@@ -315,6 +331,14 @@ The simplest way to trigger a restore is by issuing the restore command with nam
315
331
316
332
```
317
333
334
+
### Get the restore details from the restored account
335
+
336
+
Run the following command to get the restore details. The restoreTimestamp will be under the restoreParameters object:
337
+
338
+
```azurecli-interactive
339
+
az cosmosdb show --name MyCosmosDBDatabaseAccount --resource-group MyResourceGroup
340
+
```
341
+
318
342
### <aid="enumerate-sql-api"></a>Enumerate restorable resources for SQL API
319
343
320
344
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 container resources.
0 commit comments