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/backup/backup-azure-vms-enhanced-policy.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Back up Azure VMs with Enhanced policy
3
3
description: Learn how to configure Enhanced policy to back up VMs.
4
4
ms.topic: how-to
5
-
ms.date: 07/04/2022
5
+
ms.date: 03/15/2023
6
6
ms.reviewer: geg
7
7
ms.service: backup
8
8
author: jyothisuri
@@ -16,7 +16,7 @@ Azure Backup now supports _Enhanced policy_ that's needed to support new Azure o
16
16
17
17
>[!Important]
18
18
>-[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.
20
20
>- 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.
21
21
22
22
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:
75
75
>- 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.
76
76
>- Back up an Azure VM with disks that has public network access disabled is not supported.
77
77
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
+
78
82
## Next steps
79
83
80
84
-[Run a backup immediately](./backup-azure-vms-first-look-arm.md#run-a-backup-immediately)
# Selective disk backup and restore for Azure virtual machines
13
13
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.
15
21
16
22
## Scenarios
17
23
18
24
This solution is useful particularly in the following scenarios:
19
25
20
26
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.
22
28
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.
24
32
25
33
>[!NOTE]
26
34
> 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
29
37
30
38
Ensure you're using Az CLI version 2.0.80 or higher. You can get the CLI version with this command:
31
39
40
+
>[!Note]
41
+
>These CLI steps apply to selective disk backup for VMs using both policies - enhanced and standard.
42
+
32
43
```azurecli
33
44
az --version
34
45
```
@@ -44,7 +55,7 @@ az account set -s {subscriptionID}
44
55
45
56
### Configure backup with Azure CLI
46
57
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.
48
59
49
60
>[!NOTE]
50
61
>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
288
299
289
300

290
301
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.
292
305
293
306
>[!NOTE]
294
307
>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.
295
308
296
-
### Backup OS disk only in the Azure portal
309
+
### Backup OS disk only in the Azure portal (Standard policy)
297
310
298
311
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.
299
312
300
313

301
314
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
+
302
320
## Using Azure REST API
303
321
304
322
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
315
333
316
334
## Limitations
317
335
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.
319
337
320
338
The restore options to **Create new VM** and **Replace existing** aren't supported for the VM for which selective disks backup functionality is enabled.
321
339
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.
323
341
324
342
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.
325
343
326
344
## Billing
327
345
328
346
Azure virtual machine backup follows the existing pricing model, explained in detail [here](https://azure.microsoft.com/pricing/details/backup/).
329
347
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
331
349
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.
333
364
334
365
## Frequently asked questions
335
366
@@ -342,11 +373,15 @@ PI cost is calculated based on actual (used) size of the VM.
342
373
343
374
### I have configured only OS disk backup, why is the snapshot happening for all the disks?
344
375
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.
346
379
347
380
### I can't configure backup for the Azure virtual machine by excluding ultra disk or shared disks attached to the VM
348
381
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.
Copy file name to clipboardExpand all lines: articles/backup/whats-new.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,16 @@ You can learn more about the new releases by bookmarking this page or by [subscr
53
53
- February 2021
54
54
-[Backup for Azure Blobs (in preview)](#backup-for-azure-blobs-in-preview)
55
55
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).
0 commit comments