Skip to content

Commit 9862f41

Browse files
authored
Merge pull request #246047 from AbhishekMallick-MS/Jul-24-2023-CrrMARS
CRR support for MARS agent - public preview release
2 parents ede3bd9 + 6f0c1ba commit 9862f41

16 files changed

+155
-39
lines changed

articles/backup/about-restore-microsoft-azure-recovery-services.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Restore options with Microsoft Azure Recovery Services (MARS) agent
33
description: Learn about the restore options available with the Microsoft Azure Recovery Services (MARS) agent.
44
ms.reviewer: mepand
55
ms.topic: conceptual
6-
ms.date: 05/07/2021
6+
ms.date: 08/14/2023
77
author: AbhishekMallick-MS
88
ms.author: v-abhmallick
99
---
@@ -29,8 +29,31 @@ Using the MARS agent you can:
2929
- **[Restore all backed up files in a volume](restore-all-files-volume-mars.md):** This option recovers all backed up data in a specified volume from the recovery point in Azure Backup. It allows a faster transfer speed (up to 40 MBPS).<br>We recommend you to use this option for recovering large amounts of data, or entire volumes.
3030
- **[Restore a specific set of backed up files and folders in a volume using PowerShell](backup-client-automation.md#restore-data-from-azure-backup):** If the paths to the files and folders relative to the volume root are known, this option allows you to restore the specified set of files and folders from a recovery point, using the faster transfer speed of the full volume restore. However, this option doesn’t provide the convenience of browsing files and folders in the recovery point using the Instant Restore option.
3131
- **[Restore individual files and folders using Instant Restore](backup-azure-restore-windows-server.md):** This option allows quick access to the backup data by mounting volume in the recovery point as a drive. You can then browse, and copy files and folders. This option offers a copy speed of up to 6 MBPS, which is suitable for recovering individual files and folders of total size less than 80 GB. Once the required files are copied, you can unmount the recovery point.
32+
- **Cross Region Restore for MARS (preview)**: If your Recovery Services vault uses GRS resiliency and has the [Cross Region Restore setting turned on](backup-create-recovery-services-vault.md#set-cross-region-restore), you can restore the backup data from the secondary region.
33+
34+
## Cross Region Restore (preview)
35+
36+
Cross Region Restore (CRR) allows you to restore MARS backup data from a secondary region, which is an Azure paired region. This enables you to conduct drills for audit and compliance, and recover data during the unavailability of the primary region in Azure in the case of a disaster.
37+
38+
To use this feature:
39+
40+
1. [Turn on Cross Region Restore in your Recovery Services vault](backup-create-rs-vault.md#set-cross-region-restore). Once Cross Region Restore is enabled, you can't disable it.
41+
2. After you turn on the feature, it can take up to *48 hours* for the backup items to be available in the secondary region. Currently, the secondary region RPO is *36 hours*, because the RPO in the primary region is *24 hours*, and it can take up to *12 hours* to replicate the backup data from the primary to secondary region.
42+
3. To restore the backup data for the original machine, you can directly select **Secondary Region** as the source of the backup data in the wizard.
43+
44+
:::image type="content" source="./media/backup-azure-restore-windows-server/select-source-region-for-restore.png" alt-text="Screenshot shows the selection for secondary region as the backup data source during Cross Region Restore.":::
45+
46+
4. To restore backup data for an alternate server from the secondary region, you need to download the *Secondary Region vault credential* from the Azure portal.
47+
48+
:::image type="content" source="./media/about-restore-microsoft-azure-recovery-services/download-vault-credentials-for-cross-region-restore.png" alt-text="Screenshot shows how to download vault credentials for secondary region.":::
49+
50+
5. To automate recovery from secondary region for audit or compliance drills, [use this command](backup-client-automation.md#cross-region-restore).
51+
52+
>[!Note]
53+
>- Recovery Services vaults with private endpoint are currently not supported for Cross Region Restore with MARS.
54+
>- Recovery Services vaults enabled with Cross Region Restore will be automatically charged at RA-GRS rates for the MARS backups stored in the vault once the feature is generally available.
3255
3356
## Next steps
3457

35-
- For more frequently asked questions, see [MARS agent FAQs](backup-azure-file-folder-backup-faq.yml).
58+
- For additional frequently asked questions, see [MARS agent FAQs](backup-azure-file-folder-backup-faq.yml).
3659
- For information about supported scenarios and limitations, see [Support Matrix for the backup with the MARS agent](backup-support-matrix-mars-agent.md).

articles/backup/backup-azure-file-folder-backup-faq.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
description: Addresses common questions about backing up files and folders with Azure Backup.
55
ms.topic: faq
66
ms.service: backup
7-
ms.date: 02/25/2022
7+
ms.date: 08/14/2023
88
author: AbhishekMallick-MS
99
ms.author: v-abhmallick
1010
title: Frequently asked questions - Microsoft Azure Recovery Services (MARS) agent
@@ -23,9 +23,18 @@ sections:
2323
- question: |
2424
Where can I download the vault credentials file?
2525
answer: |
26-
In the Azure portal, navigate to **Properties** for your vault. Under **Backup Credentials**, select the checkbox for **Already using the latest Recovery Services Agent**. Select **Download**.
26+
In the Azure portal, go to **Properties** for your vault. Under **Backup Credentials**, select **Download**.
27+
28+
- If you want to register your MARS agent or restore data from the primary region, select **Primary Region**, *confirm* that you're using the latest Recovery Services Agent, and then select **Download**.
29+
- If you're doing an alternate server restore from the backup data in the secondary region using Cross Region Restore, then select **Secondary Region** to download the vault credentials.
30+
31+
:::image type="content" source="./media/backup-azure-file-folder-backup-faq/download-vault-credentials.png" alt-text="Screenshot shows how to initiate downloading vault credential file.":::
32+
33+
:::image type="content" source="./media/backup-azure-file-folder-backup-faq/download-vault-credential-file.png" alt-text="Screenshot shows the Download option for vault credential files in secondary region.":::
34+
>[!Note]
35+
>You can't use this secondary region vault credential for registration of the MARS agent.
36+
2737
28-
![Download credentials](./media/backup-azure-file-folder-backup-faq/download-credentials.png)
2938
3039
- question: |
3140
How long are vault credentials valid?

articles/backup/backup-azure-restore-system-state.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Restore System State to a Windows Server
33
description: Step-by-step explanation for restoring Windows Server System State from a backup in Azure.
44
ms.topic: conceptual
5-
ms.date: 12/09/2022
5+
ms.date: 08/14/2023
66
ms.service: backup
77
author: AbhishekMallick-MS
88
ms.author: v-abhmallick
@@ -14,6 +14,7 @@ This article explains how to restore Windows Server System State backups from an
1414
1. Restore System State as files from Azure Backup. When restoring System State as files from Azure Backup, you can either:
1515
* Restore System State to the same server where the backups were taken, or
1616
* Restore System State file to an alternate server.
17+
* If you have Cross Region Restore enabled in your vault, you can restore the backup data from a secondary region.
1718

1819
2. Apply the restored System State files to a Windows Server using the Windows Server Backup utility.
1920

@@ -33,6 +34,10 @@ The following steps explain how to roll back your Windows Server configuration t
3334

3435
![Choose this server option to restore the data to the same machine](./media/backup-azure-restore-system-state/samemachine.png)
3536

37+
If you have enabled Cross Region Restore (preview) and want to restore from the secondary region, select **Secondary Region**. Else, select **Primary Region**.
38+
39+
:::image type="content" source="./media/backup-azure-restore-windows-server/select-source-region-for-restore.png" alt-text="Screenshot shows the selection of the source region of recovery point.":::
40+
3641
4. On the **Select Recovery Mode** pane, choose **System State** and then select **Next**.
3742

3843
![Browse files](./media/backup-azure-restore-system-state/recover-type-selection.png)
@@ -84,6 +89,10 @@ The terminology used in these steps includes:
8489

8590
5. Provide the vault credential file that corresponds to the *Sample vault*. If the vault credential file is invalid (or expired), download a new vault credential file from the *Sample vault* in the Azure portal. Once the vault credential file is provided, the Recovery Services vault associated with the vault credential file appears.
8691

92+
If you want to use Cross Region Restore to restore the backup data from the secondary region, you need to download the *Secondary Region vault credential file* from the Azure portal, and then pass the file in the MARS agent.
93+
94+
:::image type="content" source="./media/backup-azure-restore-windows-server/pass-vault-credentials-in-mars-agent.png" alt-text="Screenshot shows the secondary vault credentials passed in MARS agent.":::
95+
8796
6. On the Select Backup Server pane, select the *Source machine* from the list of displayed machines.
8897
7. On the Select Recovery Mode pane, choose **System State** and select **Next**.
8998

articles/backup/backup-azure-restore-windows-server.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Restore files to Windows Server using the MARS Agent
33
description: In this article, learn how to restore data stored in Azure to a Windows server or Windows computer with the Microsoft Azure Recovery Services (MARS) Agent.
4-
ms.topic: conceptual
5-
ms.date: 09/07/2018
4+
ms.topic: how-to
5+
ms.date: 08/14/2023
66
author: AbhishekMallick-MS
77
ms.author: v-abhmallick
88
---
@@ -12,8 +12,9 @@ This article explains how to restore data from a backup vault. To restore data,
1212

1313
* Restore data to the same machine from which the backups were taken.
1414
* Restore data to an alternate machine.
15+
* If you have Cross Region Restore enabled on your vault, you can restore the backup data from the secondary region.
1516

16-
Use the Instant Restore feature to mount a writeable recovery point snapshot as a recovery volume. You can then explore the recovery volume and copy files to a local computer, in that way selectively restoring files.
17+
Use the Instant Restore feature to mount a writeable recovery point snapshot as a recovery volume. You can then explore the recovery volume and copy files to a local computer, thus selectively restoring files.
1718

1819
> [!NOTE]
1920
> The [January 2017 Azure Backup update](https://support.microsoft.com/help/3216528/azure-backup-update-for-microsoft-azure-recovery-services-agent-januar) is required if you want to use Instant Restore to restore data. Also, the backup data must be protected in vaults in locales listed in the support article. Consult the [January 2017 Azure Backup update](https://support.microsoft.com/help/3216528/azure-backup-update-for-microsoft-azure-recovery-services-agent-januar) for the latest list of locales that support Instant Restore.
@@ -39,6 +40,11 @@ If you accidentally deleted a file and want to restore it to the same machine (f
3940

4041
![Screenshot of Recover Data Wizard Getting Started page (restore to same machine)](./media/backup-azure-restore-windows-server/samemachine_gettingstarted_instantrestore.png)
4142

43+
If you have enabled Cross Region Restore (preview) and want to restore from the secondary region, select **Secondary Region**. Else, select **Primary Region**.
44+
45+
:::image type="content" source="./media/backup-azure-restore-windows-server/select-source-region-for-restore.png" alt-text="Screenshot shows the selection of the source region of recovery point.":::
46+
47+
4248
4. On the **Select Recovery Mode** page, choose
4349
**Individual files and folders** > **Next**.
4450

@@ -102,10 +108,16 @@ These steps include the following terminology:
102108

103109
![Screenshot of Recover Data Wizard Getting Started page (restore to alternate machine)](./media/backup-azure-restore-windows-server/alternatemachine_gettingstarted_instantrestore.png)
104110

105-
5. Provide the vault credential file that corresponds to the sample vault, and select **Next**.
111+
5. Provide the vault credential file that corresponds to the sample vault.
106112

107113
If the vault credential file is invalid (or expired), [download a new vault credential file from the sample vault](backup-azure-file-folder-backup-faq.yml#where-can-i-download-the-vault-credentials-file-) in the Azure portal. After you provide a valid vault credential, the name of the corresponding backup vault appears.
108114

115+
If you want to use Cross Region Restore to restore backup data from the secondary region, you need to download the *Secondary Region* vault credential file* from the Azure portal, and then pass the file in the MARS agent.
116+
117+
:::image type="content" source="./media/backup-azure-restore-windows-server/pass-vault-credentials-in-mars-agent.png" alt-text="Screenshot shows the vault credentials added to MARS agent.":::
118+
119+
Select **Next** to continue.
120+
109121
6. On the **Select Backup Server** page, select the source machine from the list of displayed machines, and provide the passphrase. Then select **Next**.
110122

111123
![Screenshot of Recover Data Wizard Select Backup Server page (restore to alternate machine)](./media/backup-azure-restore-windows-server/alternatemachine_selectmachine_instantrestore.png)

articles/backup/backup-client-automation.md

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Use PowerShell to back up Windows Server to Azure
33
description: In this article, learn how to use PowerShell to set up Azure Backup on Windows Server or a Windows client, and manage backup and recovery.
4-
ms.topic: conceptual
5-
ms.date: 08/24/2021
4+
ms.topic: how-to
5+
ms.date: 08/29/2021
66
ms.custom: devx-track-azurepowershell, has-azure-ad-ps-ref
77
author: AbhishekMallick-MS
88
ms.author: v-abhmallick
@@ -131,7 +131,7 @@ $CredsPath = "C:\downloads"
131131
$CredsFilename = Get-AzRecoveryServicesVaultSettingsFile -Backup -Vault $Vault1 -Path $CredsPath
132132
```
133133

134-
### Registering using the PS Az module
134+
### Register using the PowerShell Az module
135135

136136
> [!NOTE]
137137
> A bug with generation of vault certificate is fixed in Az 3.5.0 release. Use Az 3.5.0 release version or greater to download a vault certificate.
@@ -228,9 +228,9 @@ Server properties updated successfully
228228

229229
All backups from Windows Servers and clients to Azure Backup are governed by a policy. The policy includes three parts:
230230

231-
1. A **backup schedule** that specifies when backups need to be taken and synchronized with the service.
232-
2. A **retention schedule** that specifies how long to retain the recovery points in Azure.
233-
3. A **file inclusion/exclusion specification** that dictates what should be backed up.
231+
- A **backup schedule** that specifies when backups need to be taken and synchronized with the service.
232+
- A **retention schedule** that specifies how long to retain the recovery points in Azure.
233+
- A **file inclusion/exclusion specification** that dictates what should be backed up.
234234

235235
In this document, since we're automating backup, we'll assume nothing has been configured. We begin by creating a new backup policy using the [New-OBPolicy](/powershell/module/msonlinebackup/new-obpolicy) cmdlet.
236236

@@ -676,7 +676,41 @@ Job completed.
676676
The recovery operation completed successfully.
677677
```
678678

679-
## Uninstalling the Azure Backup agent
679+
## Cross Region Restore
680+
681+
Cross Region Restore (CRR) allows you to restore MARS backup data from a secondary region, which is an Azure paired region. This enables you to conduct drills for audit and compliance, and recover data during the unavailability of the primary region in Azure in the case of a disaster.
682+
683+
### Original server restore
684+
685+
If you're performing restore for the original server from the secondary region (Cross Region Restore), use the flag `UseSecondaryRegion` while getting the `OBRecoverableSource` object.
686+
687+
```azurepowershell
688+
$sources = Get-OBRecoverableSource -UseSecondaryRegion
689+
$RP = Get-OBRecoverableItem -Source $sources[0]
690+
$RO = New-OBRecoveryOption -DestinationPath $RecoveryPath -OverwriteType Overwrite
691+
Start-OBRecovery -RecoverableItem $RP -RecoveryOption $RO -Async | ConvertTo-Json
692+
693+
```
694+
695+
### Alternate server restore
696+
697+
If you're performing restore for an alternate server from the secondary region (Cross Region Restore), download the *secondary region vault credential file* from the Azure portal and pass the secondary region vault credential for restore.
698+
699+
```azurepowershell
700+
$serverName = ‘myserver.mycompany.com’
701+
$secVaultCred = “C:\Users\myuser\Downloads\myvault_Mon Jul 17 2023.VaultCredentials”
702+
$passphrase = ‘Default Passphrase’
703+
$alternateServers = Get-OBAlternateBackupServer -VaultCredentials $secVaultCred
704+
$altServer = $alternateServers[2] | Where-Object {$_.ServerName -Like $serverName}
705+
$pwd = ConvertTo-SecureString -String $passphrase -AsPlainText -Force
706+
$sources = Get-OBRecoverableSource $altServer
707+
$RP = Get-OBRecoverableItem -Source $sources[0]
708+
$RO = New-OBRecoveryOption
709+
Start-OBRecoveryMount -RecoverableItem $RP -RecoveryOption $RO -EncryptionPassphrase $pwd -Async | ConvertTo-Json
710+
711+
```
712+
713+
## Uninstall the Azure Backup agent
680714

681715
Uninstalling the Azure Backup agent can be done by using the following command:
682716

0 commit comments

Comments
 (0)