Skip to content

Commit 1ad64d4

Browse files
committed
Adding info on how to get restore details from restored account
1 parent ba46ab3 commit 1ad64d4

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

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

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to identify the restore time and restore a live or delete
44
author: kanshiG
55
ms.service: cosmos-db
66
ms.topic: how-to
7-
ms.date: 10/28/2021
7+
ms.date: 11/02/2021
88
ms.author: govindk
99
ms.reviewer: sngun
1010
ms.custom: devx-track-azurepowershell
@@ -89,9 +89,17 @@ After initiating a restore operation, select the **Notification** bell icon at t
8989

9090
:::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":::
9191

92-
## Get the restore time after the restore completes
92+
### Get the restore details from the restored account
9393

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.
95103

96104
## <a id="restore-account-powershell"></a>Restore an account using Azure PowerShell
97105

@@ -152,6 +160,14 @@ Restore-AzCosmosDBAccount `
152160
153161
```
154162

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:
166+
167+
```azurepowershell
168+
Get-AzCosmosDBAccount -ResourceGroupName MyResourceGroup -Name MyCosmosDBDatabaseAccount
169+
```
170+
155171
### <a id="enumerate-sql-api"></a>Enumerate restorable resources for SQL API
156172

157173
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
315331
316332
```
317333

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+
318342
### <a id="enumerate-sql-api"></a>Enumerate restorable resources for SQL API
319343

320344
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

Comments
 (0)