Skip to content

Commit fe5b137

Browse files
authored
Merge pull request #268749 from AbhishekMallick-MS/Mar-12-2024-MDCCVMbackup
Agentless multi-disk crash consistent VM backup - Public preview updates
2 parents f005d77 + b8bc899 commit fe5b137

21 files changed

+250
-37
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: About agentless multi-disk crash-consistent backup for Azure Virtual Machines by using Azure Backup
3+
description: Learn about agentless multi-disk crash-consistent backup for Azure VMs by using Azure Backup via Azure portal.
4+
ms.topic: conceptual
5+
ms.date: 03/14/2024
6+
author: AbhishekMallick-MS
7+
ms.author: v-abhmallick
8+
---
9+
10+
# About agentless multi-disk crash-consistent backup for Azure VMs (preview)
11+
12+
Azure Backup supports agentless VM backups by using multi-disk [crash-consistent restore points](../virtual-machines/virtual-machines-create-restore-points.md) (preview). The [Enhanced VM backup policy](backup-azure-vms-enhanced-policy.md) now enables you to configure the consistency type of the backups (application-consistent restore points or crash-consistent restore points preview) for Azure VMs. This feature also enables Azure VM backup to retry the backup operation with *crash-consistent snapshots* (for *supported VMs*) if the application-consistent snapshot fails.
13+
14+
## When do I choose crash-consistent backup over application-consistent backup?
15+
16+
Choose to perform creah-consistent backup in the following scenarios:
17+
18+
- If your workload is performance sensitive and can tolerate recovery from crash-consistent backups, crash-consistent backups help quiesce VM I/O for a shorter period during backup. Crash-consistent backup doesn't use Volume Shadow Copy Service (VSS) (for Windows) or *fsfreeze* (for Linux) to avoid the associated quiescing delays.
19+
20+
- If you don't want to install the [VM Agent](../virtual-machines/extensions/agent-windows.md) or [snapshot extension](../virtual-machines/extensions/vmsnapshot-windows.md) required for application-consistent or file-system-consistent snapshots in your Azure VM, use crash-consistent backups for an agentless backup solution.
21+
22+
- If your operating system is not supported for application or file-system-consistent backup, use crash-consistent backups. Crash-consistent backup is operating system agnostic as it doesn't rely on the VM agent or snapshot extension.
23+
24+
## When do I not use crash-consistent backups?
25+
26+
Don't use crash-consistent backups in the following scenarios:
27+
28+
- If your application can't tolerate recovery from crash-consistent backups.
29+
- If you use pre/post scripts for Linux VM backups.
30+
- If you use read/write host caching and your workload is sensitive to cached data not being flushed before backup.
31+
32+
## Pricing for agentless multi-disk crash-consistent backup
33+
34+
During preview, Azure VMs backed up with multi-disk crash-consistent type is charged for 0.5 protected instance (PI) and the backup storage consumed.
35+
36+
## Supported scenarios for agentless multi-disk crash-consistent VM backup (preview)
37+
38+
[!INCLUDE [backup-azure-agentless-multi-disk-crash-consistent-vm-backup-support-scenarios.md](../../includes/backup-azure-agentless-multi-disk-crash-consistent-vm-backup-support-scenarios.md)]
39+
40+
41+
>[!Note]
42+
>Multi-disk crash consistency might not succeed for disks configured with read or write host caching because writes that occur while the snapshot is taken might not be acknowledged by Azure Storage. If you need to maintain consistency, we recommend you use the application-consistent backups.
43+
44+
## Next steps
45+
46+
[Back up Azure VM with agentless multi-disk crash-consistent backup (preview)](backup-azure-vms-agentless-multi-disk-crash-consistent.md)
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
title: Back up Azure VM with agentless multi-disk crash-consistent backup by using Azure Backup
3+
description: Learn how to configure backup for Azure VMs with agentless multi-disk crash-consistent backup via Azure portal.
4+
ms.topic: how-to
5+
ms.date: 03/14/2024
6+
author: AbhishekMallick-MS
7+
ms.author: v-abhmallick
8+
---
9+
10+
# Back up Azure VM with agentless multi-disk crash-consistent backup (preview)
11+
12+
This article describes how to configure backup for Azure VMs with agentless multi-disk crash-consistent backup (preview) and back up VM by using the Azure portal.
13+
14+
Azure Backup supports agentless VM backups by using multi-disk crash-consistent restore points (preview). The Enhanced VM backup policy now enables you to configure the consistency type of the backups (application-consistent restore points or crash-consistent restore points preview) for Azure VMs. This feature also enables Azure VM backup to retry the backup operation with *crash-consistent snapshots* (for *supported VMs*) if the application-consistent snapshot fails.
15+
16+
## Before you start
17+
18+
Review the supported scenarios and limitations of agentless multi-disk crash-consistent backup. [Learn more](backup-azure-vms-agentless-multi-disk-crash-consistent-overview.md).
19+
20+
## Configure backup for a new Azure VM with agentless multi-disk crash-consistent backup
21+
22+
You need to set *crash-consistent backup* explicitly in this policy because *application/file-system-consistent backup* is the default setting.
23+
24+
>[!Note]
25+
>The agentless crash-consistent backup is available with the *Enhanced VM backup policy* only.
26+
27+
To configure backup for a new Azure VM with agentless multi-disk crash-consistent backup enabled, [create a Recovery Services vault](backup-create-recovery-services-vault.md#create-a-recovery-services-vault) and follow these steps:
28+
29+
1. On the **Configure backup** blade, under **Policy sub type**, select **Enhanced** > **Create a new policy**.
30+
31+
2. On the **Create policy** blade, set the **Consistency type** to **Only crash consistent snapshot (Preview)** to enable *agentless crash consistent backup*.
32+
33+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/configure-agentless-vm-backup-for-new-vm-with-new-policy.png" alt-text="Screenshot shows how to configure agentless crash-consistent backup for a new VM with a new backup policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/configure-agentless-vm-backup-for-new-vm-with-new-policy.png":::
34+
35+
3. Select **OK**.
36+
37+
## Move a VM from application/file-system-consistent to crash-consistent backup
38+
39+
If you have VMs backed up with Enhanced Policy, you can move them from agent-based application/file-system-consistent backups to agentless crash-consistent backups by:
40+
41+
- Changing their associated backup policy (recommended)
42+
- Editing the policy setting directly
43+
44+
### Option 1: Change the VM backup policy to switch from application/file-system-consistent backup to crash-consistent backup (recommended)
45+
46+
Follow these steps:
47+
48+
1. Go to a **Recovery Services vault**, and then select **Manage** > **Backup policies** to check the policy for the VMs you want to move to *crash-consistent backup*.
49+
50+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/vault-locate-policy.png" alt-text="Screenshot shows how to locate all backup policies present in a vault." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/vault-locate-policy.png":::
51+
52+
2. Select the *backup policy*, and then on the **Modify policy** blade, select **Associated Items** to identify the VMs that you want to move to crash-consistent backup.
53+
54+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/policy-settings.png" alt-text="Scerrnshot shows how to check associated items in a backup policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/policy-settings.png":::
55+
56+
>[!Note]
57+
>Ensure that the VMs are supported for crash-consistent backups. Learn about the [supported scenarios](backup-azure-vms-agentless-multi-disk-crash-consistent-overview.md#supported-scenarios-for-agentless-multi-disk-crash-consistent-vm-backup-preview).
58+
59+
3. Go to the **Modify policy**, and then make a note of the settings in the policy to use the same in the new backup policy.
60+
61+
4. Go to the **Backup policies** blade, and select **Add** to create a new policy.
62+
63+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/add-backup-policy.png" alt-text="Screenshot shows how to add a new backup policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/add-backup-policy.png":::
64+
65+
5. On the **Select policy type** blade, select **Azure Virtual Machine**.
66+
67+
6. On the **Create policy** blade, select **Enhanced** as the **Policy sub type**, and then configure the new policy with the same backup frequency and retention as the existing policy.
68+
69+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/create-new-enhanced-backup-policy.png" alt-text="Screenshot shows creation of a new backup policy with the same backup frequency and retention rules." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/create-new-enhanced-backup-policy.png":::
70+
71+
7. Set the **Consistency type** to **Only crash consistent snapshot (Preview)**, and then select **Create**.
72+
73+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/set-crash-consistent-policy.png" alt-text="Screenshot shows how to set crash-consistent policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/set-crash-consistent-policy.png":::
74+
75+
8. Go to the *existing policy*, select **Associated Items**, and then select **View details** corresponding to the VM you want to move to crash consistent backup.
76+
77+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/view-details-to-move-vm-crash-consistent.png" alt-text="Screenshot shows how to view details of a VM." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/view-details-to-move-vm-crash-consistent.png":::
78+
79+
9. Select **Backup policy** to go to the **Change Backup Policy** blade.
80+
81+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/backup-policy-change.png" alt-text="Screenshot shows how to initiate changing policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/backup-policy-change.png":::
82+
83+
10. On the **Change Backup Policy** blade, change the backup policy to the new one you created, verify that it has the Consistency type set to Crash consistent, and then select **Change**.
84+
85+
A **Modifying protection** notification and a **Configure backup** job in your vault for the VM is triggered. Monitor the notification or job to check if the crash-consistent backup policy is added successfully.
86+
87+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/modify-vm-protection-policy-success-notification.png" alt-text="Screenshot shows the success status for change in VM backup policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/modify-vm-protection-policy-success-notification.png":::
88+
89+
### Option 2: Modify the backup policy to change from application/file-system-consistent backup to crash-consistent backup
90+
91+
If you don't want to create a new policy and move only specific VMs, edit the **Consistency type** option in the existing policy.
92+
93+
Follow these steps:
94+
95+
1. Go to the *Recovery Services vault*, select **Backup policies**, and then choose an existing policy.
96+
97+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/vault-locate-policy.png" alt-text="Screenshot shows how to check for all backup policies present in a vault." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/vault-locate-policy.png":::
98+
99+
2. On the **Modify policy**, select **Associated Items**.
100+
101+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/policy-settings.png" alt-text="Screenshot shows how to check the associated items in a backup policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/policy-settings.png":::
102+
103+
>[!Note]
104+
>Ensure that all the VMs in the policy are supported for crash-consistent backups. Learn about the [supported scenarios](backup-azure-vms-agentless-multi-disk-crash-consistent-overview.md#supported-scenarios-for-agentless-multi-disk-crash-consistent-vm-backup-preview).
105+
>
106+
> :::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/backup-policy-associated-items-edit.png" alt-text="Screenshot shows the list of VM associated with a backup policy." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/backup-policy-associated-items-edit.png":::
107+
108+
3. Go to the **Modify policy** blade, and set the **Consistency type** to **Only crash consistent snapshot (Preview)**, and then select **Update**.
109+
110+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/modify-policy-crash-consistent.png" alt-text="Screenshot shows how to check for the change in policy settings." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/modify-policy-crash-consistent.png":::
111+
112+
You can monitor the *Modify backup policy* job on the **Backup jobs** blade. The *Configure backup jobs* triggered for each VM in the policy appear.
113+
114+
:::image type="content" source="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/modify-policy-jobs.png" alt-text="Screenshot shows how to monitor the policy change operation." lightbox="./media/backup-azure-vms-agentless-multi-disk-crash-consistent/modify-policy-jobs.png":::
115+
116+
>[!Note]
117+
>If the job fails for an unsupported VM, revert the policy to opt out of crash-consistent backup and retry the update after you remove all unsupported VMs from the policy.
118+
119+
## Next steps
120+
121+
[Run an on-demand backup of Azure VM](backup-azure-vms-first-look-arm.md#run-a-backup-immediately).

0 commit comments

Comments
 (0)