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
# Back up and restore Azure VMs using Azure PowerShell
13
13
14
-
This article explains how to back up and restore an Azure VM in an [Azure Backup](backup-overview.md) Recovery Services vault using PowerShell cmdlets.
14
+
This article describes how to back up and restore an Azure VM in an [Azure Backup](backup-overview.md) Recovery Services vault using PowerShell cmdlets.
15
15
16
-
In this article you learn how to:
16
+
Azure Backup provides independent and isolated backups to guard against unintended destruction of the data on your VMs. Backups are stored in a Recovery Services vault with built-in management of recovery points. Configuration and scaling are simple, backups are optimized, and you can easily restore as needed.
17
17
18
-
> [!div class="checklist"]
19
-
>
20
-
> * Create a Recovery Services vault and set the vault context.
21
-
> * Define a backup policy
22
-
> * Apply the backup policy to protect multiple virtual machines
23
-
> * Trigger an on-demand backup job for the protected virtual machines
24
18
Before you can back up (or protect) a virtual machine, you must complete the [prerequisites](backup-azure-arm-vms-prepare.md) to prepare your environment for protecting your VMs.
25
19
26
20
## Before you start
@@ -33,7 +27,7 @@ Before you can back up (or protect) a virtual machine, you must complete the [pr
33
27
34
28
The object hierarchy is summarized in the following diagram.

37
31
38
32
Review the **Az.RecoveryServices**[cmdlet reference](/powershell/module/az.recoveryservices/) reference in the Azure library.
39
33
@@ -53,7 +47,7 @@ To begin:
53
47
54
48
The aliases and cmdlets for Azure Backup, Azure Site Recovery, and the Recovery Services vault appear. The following image is an example of what you'll see. It isn't the complete list of cmdlets.
55
49
56
-

50
+

57
51
58
52
3. Sign in to your Azure account using **Connect-AzAccount**. This cmdlet brings up a web page prompts you for your account credentials:
59
53
@@ -96,7 +90,7 @@ The following steps lead you through creating a Recovery Services vault. A Recov
3. Specify the type of storage redundancy to use. You can use [Locally Redundant Storage (LRS)](../storage/common/storage-redundancy.md#locally-redundant-storage), [Geo-redundant Storage (GRS)](../storage/common/storage-redundancy.md#geo-redundant-storage), or [Zone-redundant storage (ZRS)](../storage/common/storage-redundancy.md#zone-redundant-storage). The following example shows the **-BackupStorageRedundancy** option for *testvault* set to **GeoRedundant**.
93
+
3. Specify the type of storage redundancy to use. You can use [Locally Redundant Storage (LRS)](../storage/common/storage-redundancy.md#locally-redundant-storage), [Geo-redundant Storage (GRS)](../storage/common/storage-redundancy.md#geo-redundant-storage), or [Zone-redundant storage (ZRS)](../storage/common/storage-redundancy.md#zone-redundant-storage). The following example shows the **-BackupStorageRedundancy** option for `testvault` set to **GeoRedundant**.
@@ -134,7 +128,7 @@ Use a Recovery Services vault to protect your virtual machines. Before you apply
134
128
135
129
### Set vault context
136
130
137
-
Before enabling protection on a VM, use [Set-AzRecoveryServicesVaultContext](/powershell/module/az.recoveryservices/set-azrecoveryservicesvaultcontext) to set the vault context. Once the vault context is set, it applies to all subsequent cmdlets. The following example sets the vault context for the vault, *testvault*.
131
+
Before enabling protection on a VM, use [Set-AzRecoveryServicesVaultContext](/powershell/module/az.recoveryservices/set-azrecoveryservicesvaultcontext) to set the vault context. Once the vault context is set, it applies to all subsequent cmdlets. The following example sets the vault context for the vault, `testvault`.

432
426
433
427
To restore backup data, identify the backed-up item and the recovery point that holds the point-in-time data. Use [Restore-AzRecoveryServicesBackupItem](/powershell/module/az.recoveryservices/restore-azrecoveryservicesbackupitem) to restore data from the vault to your account.
434
428
@@ -672,7 +666,7 @@ The template isn't directly accessible since it's under a customer's storage acc
672
666
673
667
### Create a VM using the config file
674
668
675
-
The following section lists steps necessary to create a VM using _VMConfig_ file.
669
+
The following section lists steps necessary to create a VM using `VMConfig` file.
676
670
677
671
> [!NOTE]
678
672
> It's highly recommended to use the deployment template detailed above to create a VM. This section (Points 1-6) will be deprecated soon.
0 commit comments