Skip to content

Commit 693bc3c

Browse files
Merge pull request #230221 from AbhishekMallick01/Mar-10-2023-SelectiveDisk
Selective disk backup (preview) release
2 parents dde22d8 + a43e685 commit 693bc3c

File tree

3 files changed

+65
-16
lines changed

3 files changed

+65
-16
lines changed

articles/backup/backup-azure-vms-enhanced-policy.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Back up Azure VMs with Enhanced policy
33
description: Learn how to configure Enhanced policy to back up VMs.
44
ms.topic: how-to
5-
ms.date: 07/04/2022
5+
ms.date: 03/15/2023
66
ms.reviewer: geg
77
ms.service: backup
88
author: jyothisuri
@@ -16,7 +16,7 @@ Azure Backup now supports _Enhanced policy_ that's needed to support new Azure o
1616

1717
>[!Important]
1818
>- [Default policy](./backup-during-vm-creation.md#create-a-vm-with-backup-configured) will not support protecting newer Azure offerings, such as [Trusted Launch VM](backup-support-matrix-iaas.md#tvm-backup), [Ultra SSD](backup-support-matrix-iaas.md#vm-storage-support), [Shared disk](backup-support-matrix-iaas.md#vm-storage-support), and Confidential Azure VMs.
19-
>- Enhanced policy currently doesn't support protecting Ultra SSD.
19+
>- Enhanced policy currently doesn't support protecting Ultra SSD. You can use [selective disk backup (preview)](selective-disk-backup-restore.md) to exclude these disks, and then configure backup.
2020
>- Backups for VMs having [data access authentication enabled disks](../virtual-machines/windows/download-vhd.md?tabs=azure-portal#secure-downloads-and-uploads-with-azure-ad) will fail.
2121
2222
You must enable backup of Trusted Launch VM through enhanced policy only. Enhanced policy provides the following features:
@@ -75,6 +75,10 @@ Follow these steps:
7575
>- Enhanced policy is only available to unprotected VMs that are new to Azure Backup. Note that Azure VMs that are protected with existing policy can't be moved to Enhanced policy.
7676
>- Back up an Azure VM with disks that has public network access disabled is not supported.
7777
78+
## Enable selective disk backup and restore (preview)
79+
80+
You can exclude non-critical disks from backup by using selective disk backup to save costs. Using this capability, you can selectively back up a subset of the data disks that are attached to your VM, and then restore a subset of the disks that are available in a recovery point, both from instant restore and vault tier. [Learn more](selective-disk-backup-restore.md).
81+
7882
## Next steps
7983

8084
- [Run a backup immediately](./backup-azure-vms-first-look-arm.md#run-a-backup-immediately)

articles/backup/selective-disk-backup-restore.md

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Selective disk backup and restore for Azure virtual machines
33
description: In this article, learn about selective disk backup and restore using the Azure virtual machine backup solution.
4-
ms.topic: conceptual
5-
ms.date: 11/10/2021
4+
ms.topic: how-to
5+
ms.date: 03/15/2023
66
ms.custom: references_regions, devx-track-azurecli, devx-track-azurepowershell3
77
ms.service: backup
88
author: jyothisuri
@@ -11,16 +11,24 @@ ms.author: jsuri
1111

1212
# Selective disk backup and restore for Azure virtual machines
1313

14-
Azure Backup supports backing up all the disks (operating system and data) in a VM together using the virtual machine backup solution. Now, using the selective disks backup and restore functionality, you can back up a subset of the data disks in a VM. This provides an efficient and cost-effective solution for your backup and restore needs. Each recovery point contains only the disks that are included in the backup operation. This further allows you to have a subset of disks restored from the given recovery point during the restore operation. This applies to both restore from snapshots and the vault.
14+
Azure Backup supports backing up all the disks (operating system and data) in a VM together using the virtual machine backup solution. Now, using the selective disks backup and restore functionality, you can back up a subset of the data disks in a VM.
15+
16+
This is supported both for Enhanced Policy (preview) as well as Standard Policy. This provides an efficient and cost-effective solution for your backup and restore needs. Each recovery point contains only the disks that are included in the backup operation. This further allows you to have a subset of disks restored from the given recovery point during the restore operation. This applies to both restore from snapshots and the vault.
17+
18+
>[!Note]
19+
>- This is supported for both backup policies - [Enhanced policy](backup-azure-vms-enhanced-policy.md) and [Standard policy](backup-during-vm-creation.md#create-a-vm-with-backup-configured).
20+
>- The *Selective disk backup and restore in Enhanced policy (preview)* is available in public Azure regions only.
1521
1622
## Scenarios
1723

1824
This solution is useful particularly in the following scenarios:
1925

2026
1. If you have critical data to be backed up in only one disk, or a subset of the disks and don’t want to back up the rest of the disks attached to a VM to minimize the backup storage costs.
21-
2. If you have other backup solutions for part of your VM or data. For example, if you back up your databases or data using a different workload backup solution and you want to use Azure VM level backup for the rest of the data or disks to build an efficient and robust system using the best capabilities available.
27+
2. If you've other backup solutions for part of your VM or data. For example, if you back up your databases or data using a different workload backup solution and you want to use Azure VM level backup for the rest of the data or disks to build an efficient and robust system using the best capabilities available.
2228

23-
Using PowerShell or Azure CLI, you can configure selective disk backup of the Azure VM. Using a script, you can include or exclude data disks using their LUN numbers. Currently, the ability to configure selective disks backup through the Azure portal is limited to the **Backup OS Disk only** option. So you can configure backup of your Azure VM with OS disk, and exclude all the data disks attached to it.
29+
3. If you're using [Enhanced policy](backup-azure-vms-enhanced-policy.md), you can use this solution to exclude unsupported disks (Ultra Disks, Shared Disks) and configure a VM for backup.
30+
31+
Using PowerShell, Azure CLI, or Azure portal, you can configure selective disk backup of the Azure VM. Using a script, you can include or exclude data disks using their *LUN numbers*. The ability to configure selective disks backup via the Azure portal is limited to the *Backup OS Disk* only for the Standard policy, but can be configured for all data disks for Enhanced policy.
2432

2533
>[!NOTE]
2634
> The OS disk is by default added to the VM backup and can't be excluded.
@@ -29,6 +37,9 @@ Using PowerShell or Azure CLI, you can configure selective disk backup of the Az
2937

3038
Ensure you're using Az CLI version 2.0.80 or higher. You can get the CLI version with this command:
3139

40+
>[!Note]
41+
>These CLI steps apply to selective disk backup for VMs using both policies - enhanced and standard.
42+
3243
```azurecli
3344
az --version
3445
```
@@ -44,7 +55,7 @@ az account set -s {subscriptionID}
4455
4556
### Configure backup with Azure CLI
4657

47-
During the configure protection operation, you need to specify the disk list setting with an **inclusion** / **exclusion** parameter, giving the LUN numbers of the disks to be included or excluded in the backup.
58+
During the configure protection operation, you need to specify the disk list setting with an **inclusion**/**exclusion** parameter, giving the *LUN* numbers of the disks to be included or excluded in the backup.
4859

4960
>[!NOTE]
5061
>The configure protection operation overrides the previous settings, they will not be cumulative.
@@ -288,17 +299,24 @@ Here you can view the backed-up disks during restore, when you select the recove
288299

289300
![View backed-up disks during restore](./media/selective-disk-backup-restore/during-restore.png)
290301

291-
Configuring the selective disks backup experience for a VM through the Azure portal is limited to the **Backup OS Disk only** option. To use selective disks backup on already a backed-up VM or for advanced inclusion or exclusion of specific data disks of a VM, use PowerShell or Azure CLI.
302+
- If you're using Standard policy to back up the VM, configuring the selective disks backup experience for a VM through the Azure portal is limited to the **Backup OS Disk only** option. To use selective disks backup on already a backed-up VM or for advanced inclusion or exclusion of specific data disks of a VM, use PowerShell or Azure CLI.
303+
304+
- If you're using Enhanced policy to back up the VM, you can select the data disks you want to back up, and optionally choose to include disks added to the VM in future for back up.
292305

293306
>[!NOTE]
294307
>If data spans across disks, make sure all the dependent disks are included in the backup. If you don’t backup all the dependent disks in a volume, during restore the volume comprising of some non-backed up disks won't be created.
295308
296-
### Backup OS disk only in the Azure portal
309+
### Backup OS disk only in the Azure portal (Standard policy)
297310

298311
When you enable backup using Azure portal, you can choose the **Backup OS Disk only** option. So you can configure backup of your Azure VM with OS disk, and exclude all data disks attached to it.
299312

300313
![Configure backup for the OS disk only](./media/selective-disk-backup-restore/configure-backup-operating-system-disk.png)
301314

315+
## Configure Selective Disk Backup in the Azure Portal (Enhanced Policy)
316+
317+
When you enable the backup operation using the Azure portal, you can choose the data disks that you want to include in the backup (the OS disk is always included). You can also choose to include disks that are added in the future for backup automatically by enabling the “Include future disks” option.
318+
319+
302320
## Using Azure REST API
303321

304322
You can configure Azure VM Backup with a few select disks or you can modify an existing VM's protection to include/exclude few disks as documented [here](backup-azure-arm-userestapi-backupazurevms.md#excluding-disks-in-azure-vm-backup).
@@ -315,21 +333,34 @@ Selective disk restore is an added functionality you get when you enable the sel
315333

316334
## Limitations
317335

318-
Selective disks backup functionality isn't supported for classic virtual machines and encrypted virtual machines. So Azure VMs that are encrypted with Azure Disk Encryption (ADE) using BitLocker for encryption of Windows VM, and the dm-crypt feature for Linux VMs are unsupported.
336+
Selective disks backup functionality for Standard policy isn't supported for classic virtual machines and encrypted virtual machines. So Azure VMs that are encrypted with Azure Disk Encryption (ADE) using BitLocker for encryption of Windows VM, and the dm-crypt feature for Linux VMs are unsupported. However, VMs with Azure Disk Encryption enabled can use selective disk backup with Enhanced policy.
319337

320338
The restore options to **Create new VM** and **Replace existing** aren't supported for the VM for which selective disks backup functionality is enabled.
321339

322-
Currently, Azure VM backup doesn't support VMs with ultra-disks or shared disks attached to them. Selective disk backup can't be used to in such cases, which exclude the disk and backup the VM.
340+
Currently, Azure VM backup doesn't support VMs with ultra-disks or shared disks attached to them. Selective disk backup for Standard policy can't be used to in such cases, which exclude the disk and backup the VM. You can use selective disk backup with Enhanced policy to exclude these disks and configure backup.
323341

324342
If you use disk exclusion or selective disks while backing up Azure VM, _[stop protection and retain backup data](backup-azure-manage-vms.md#stop-protection-and-retain-backup-data)_. When resuming backup for this resource, you need to set up disk exclusion settings again.
325343

326344
## Billing
327345

328346
Azure virtual machine backup follows the existing pricing model, explained in detail [here](https://azure.microsoft.com/pricing/details/backup/).
329347

330-
**Protected Instance (PI) cost** is calculated for the OS disk only if you choose to back up using the **OS Disk only** option. If you configure backup and select at least one data disk, the PI cost will be calculated for all the disks attached to the VM. **Backup storage cost** is calculated based on only the included disks and so you get to save on the storage cost. **Snapshot cost** is always calculated for all the disks in the VM (both the included and excluded disks).
348+
### Standard policy
331349

332-
If you have chosen the Cross Region Restore (CRR) feature, then the [CRR pricing](https://azure.microsoft.com/pricing/details/backup/) applies on the backup storage cost after excluding the disk.
350+
If you're using Standard policy, **Protected Instance (PI) cost** is calculated for the OS disk only if you choose to back up using the **OS Disk only** option. If you configure backup and select at least one data disk, the PI cost will be calculated for all the disks attached to the VM. **Backup storage cost** is calculated based on only the included disks and so you get to save on the storage cost. **Snapshot cost** is always calculated for all the disks in the VM (both the included and excluded disks).
351+
352+
### Enhanced policy
353+
354+
If you're using Enhanced policy, **Protected Instance (PI)** cost, snapshot cost, and vault tier storage cost are all calculated based on the disks that you've included for backup.
355+
356+
**Known limitations**
357+
358+
| OS type | Limitation |
359+
| --- | --- |
360+
| Windows | - **Spanned volumes**: For spanned volumes (volumes spread across more than one physical disk), ensure that all disks are included in the backup. If not, Azure Backup might not be able to reliably restore the data and exclude it in billing. <br><br> - **Storage pool**: If you're using disks carved out of a storage pool and if a *LUN number* included for backup is common across virtual disks and data disks, the size of the virtual disk is also included in the backup size in addition to the data disks. |
361+
| Linux | - **Logical volumes**: For logical volumes spread across more than one disk, ensure that all disks are included in the backup. If not, Azure Backup might not be able to reliably restore the data and exclude it in billing. <br><br> - **Distro support**: Azure Backup uses *lsscsi* and *lsblk* to determine the disks being excluded for backup. If your distro (Debian 8.11, 10.13, and so on) doesn't support *lsscsi*, install it using `sudo apt install lsscsi` to ensure Selective disk backup works. |
362+
363+
If you've chosen the Cross Region Restore (CRR) feature, then the [CRR pricing](https://azure.microsoft.com/pricing/details/backup/) applies on the backup storage cost after excluding the disk.
333364

334365
## Frequently asked questions
335366

@@ -342,11 +373,15 @@ PI cost is calculated based on actual (used) size of the VM.
342373

343374
### I have configured only OS disk backup, why is the snapshot happening for all the disks?
344375

345-
Selective disk backup features let you save on backup vault storage cost by hardening the included disks that are part of the backup. However, the snapshot is taken for all the disks that are attached to the VM. So the snapshot cost is always calculated for all the disks in the VM (both the included and excluded disks). For more information, see [billing](#billing).
376+
If you're using standard policy, the Selective disk backup features let you save on backup vault storage cost by hardening the included disks that are part of the backup. However, the snapshot is taken for all the disks that are attached to the VM. So the snapshot cost is always calculated for all the disks in the VM (both the included and excluded disks). For more information, see [billing](#billing).
377+
378+
If you're using Enhanced policy, the snapshot is taken only for the OS disk and the data disks that you've included.
346379

347380
### I can't configure backup for the Azure virtual machine by excluding ultra disk or shared disks attached to the VM
348381

349-
Selective disk backup feature is a capability provided on top of the Azure virtual machine backup solution. Currently, Azure VM backup doesn't support VMs with ultra-disk or shared disk attached to them.
382+
If you're using Standard policy, Azure VM backup doesn't support VMs with ultra-disk or shared disk attached to them and it is not possible to exclude them with selective disk backup and then configure backup.
383+
384+
If you're using Enhanced policy, you can exclude the unsupported disks from the backup via selective disk backup (in the Azure portal, CLI, PowerShell, and so on), and configure backup for the VM.
350385

351386
## Next steps
352387

articles/backup/whats-new.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ You can learn more about the new releases by bookmarking this page or by [subscr
5353
- February 2021
5454
- [Backup for Azure Blobs (in preview)](#backup-for-azure-blobs-in-preview)
5555

56+
## Support for selective disk backup with enhanced policy for Azure VM (preview)
57+
58+
Azure Backup now provides *Selective Disk backup and restore* capability to Enhanced policy. Using this capability, you can selectively back up a subset of the data disks that are attached to your VM, and then restore a subset of the disks that are available in a recovery point, both from instant restore and vault tier.
59+
60+
This is useful when you:
61+
62+
- Manage critical data in a subset of the VM disks.
63+
- Use database backup solutions and want to back up only their OS disk to reduce cost.
64+
65+
For more information, see [Selective disk backup and restore](selective-disk-backup-restore.md).
5666

5767
## Azure Kubernetes Service backup (preview)
5868

0 commit comments

Comments
 (0)