Skip to content

Commit 7cfc6cb

Browse files
Merge pull request #242710 from AbhishekMallick01/Jun-23-2023-QS
QS freshness - article updates
2 parents ac87f5d + 3167c8e commit 7cfc6cb

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

articles/backup/backup-azure-vms-automation.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
---
22
title: Back up and recover Azure VMs with PowerShell
33
description: Describes how to back up and recover Azure VMs using Azure Backup with PowerShell
4-
ms.topic: conceptual
5-
ms.date: 04/25/2022
6-
ms.custom: devx-track-azurepowershell
4+
ms.topic: how-to
5+
ms.date: 06/24/2023
6+
ms.custom: devx-track-azurepowershell, engagement-fy23
77
ms.service: backup
88
author: jyothisuri
99
ms.author: jsuri
1010
---
1111

12-
# Back up and restore Azure VMs with PowerShell
12+
# Back up and restore Azure VMs using Azure PowerShell
1313

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.
1515

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.
1717

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
2418
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.
2519

2620
## Before you start
@@ -33,7 +27,7 @@ Before you can back up (or protect) a virtual machine, you must complete the [pr
3327

3428
The object hierarchy is summarized in the following diagram.
3529

36-
![Recovery Services object hierarchy](./media/backup-azure-vms-arm-automation/recovery-services-object-hierarchy.png)
30+
![Disgram shows the Recovery Services object hierarchy.](./media/backup-azure-vms-arm-automation/recovery-services-object-hierarchy.png)
3731

3832
Review the **Az.RecoveryServices** [cmdlet reference](/powershell/module/az.recoveryservices/) reference in the Azure library.
3933

@@ -53,7 +47,7 @@ To begin:
5347
5448
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.
5549
56-
![list of Recovery Services](./media/backup-azure-vms-automation/list-of-recoveryservices-ps.png)
50+
![Screenshot shows the list of Recovery Services.](./media/backup-azure-vms-automation/list-of-recoveryservices-ps.png)
5751
5852
3. Sign in to your Azure account using **Connect-AzAccount**. This cmdlet brings up a web page prompts you for your account credentials:
5953
@@ -96,7 +90,7 @@ The following steps lead you through creating a Recovery Services vault. A Recov
9690
New-AzRecoveryServicesVault -Name "testvault" -ResourceGroupName "test-rg" -Location "West US"
9791
```
9892
99-
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**.
10094
10195
```powershell
10296
$vault1 = Get-AzRecoveryServicesVault -Name "testvault"
@@ -134,7 +128,7 @@ Use a Recovery Services vault to protect your virtual machines. Before you apply
134128

135129
### Set vault context
136130

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`.
138132

139133
```powershell
140134
Get-AzRecoveryServicesVault -Name "testvault" -ResourceGroupName "Contoso-docs-rg" | Set-AzRecoveryServicesVaultContext
@@ -426,9 +420,9 @@ There's an important difference between the restoring a VM using the Azure porta
426420
>
427421
>
428422
429-
The following graphic shows the object hierarchy from the RecoveryServicesVault down to the BackupRecoveryPoint.
423+
The following graphic shows the object hierarchy from the `RecoveryServicesVault` down to the `BackupRecoveryPoint`.
430424

431-
![Recovery Services object hierarchy showing BackupContainer](./media/backup-azure-vms-arm-automation/backuprecoverypoint-only.png)
425+
![Screenshot shows the BackupContainer listed by Recovery Services object hierarchy.](./media/backup-azure-vms-arm-automation/backuprecoverypoint-only.png)
432426

433427
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.
434428

@@ -672,7 +666,7 @@ The template isn't directly accessible since it's under a customer's storage acc
672666
673667
### Create a VM using the config file
674668
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.
676670
677671
> [!NOTE]
678672
> 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

Comments
 (0)