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-arm-restore-vms.md
+16-23Lines changed: 16 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: 'Azure Backup: Restore virtual machines by using the Azure portal'
2
+
title: 'Azure Backup: Restore VMs by using the Azure portal'
3
3
description: Restore an Azure virtual machine from a recovery point by using the Azure portal
4
4
ms.reviewer: geg
5
5
author: dcurwin
@@ -14,8 +14,6 @@ ms.author: dacurwin
14
14
15
15
This article describes how to restore Azure VM data from the recovery points stored in [Azure Backup](backup-overview.md) Recovery Services vaults.
16
16
17
-
18
-
19
17
## Restore options
20
18
21
19
Azure Backup provides a number of ways to restore a VM.
@@ -26,7 +24,6 @@ Azure Backup provides a number of ways to restore a VM.
26
24
**Restore disk** | Restores a VM disk, which can then be used to create a new VM.<br/><br/> Azure Backup provides a template to help you customize and create a VM. <br/><br> The restore job generates a template that you can download and use to specify custom VM settings, and create a VM.<br/><br/> The disks are copied to the storage account you specify.<br/><br/> Alternatively, you can attach the disk to an existing VM, or create a new VM using PowerShell.<br/><br/> This option is useful if you want to customize the VM, add configuration settings that weren't there at the time of backup, or add settings that must be configured using the template or PowerShell.
27
25
**Replace existing** | You can restore a disk, and use it to replace a disk on the existing VM.<br/><br/> The current VM must exist. If it's been deleted, this option can't be used.<br/><br/> Azure Backup takes a snapshot of the existing VM before replacing the disk, and stores it in the staging location you specify. Existing disks connected to the VM are replaced with the selected restore point.<br/><br/> The snapshot is copied to the vault, and retained in accordance with the retention policy. <br/><br/> Replace existing is supported for unencrypted managed VMs. It's not supported for unmanaged disks, [generalized VMs](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource), or for VMs [created using custom images](https://azure.microsoft.com/resources/videos/create-a-custom-virtual-machine-image-in-azure-resource-manager-with-powershell/).<br/><br/> If the restore point has more or less disks than the current VM, then the number of disks in the restore point will only reflect the VM configuration.<br/><br/>
28
26
29
-
30
27
> [!NOTE]
31
28
> You can also recover specific files and folders on an Azure VM. [Learn more](backup-azure-restore-files-from-vm.md).
32
29
>
@@ -41,20 +38,17 @@ Some details about storage accounts:
41
38
-**Replace disk**: When you replace a disk on an existing VM, Azure Backup takes a snapshot of the existing VM before replacing the disk. The snapshot is stored in the staging location (storage account) you specify. This storage account is used to temporarily store the snapshot during the restore process, and we recommend that you create a new account to do this, that can be easily removed afterwards.
42
39
-**Storage account location**: The storage account must be in the same region as the vault. Only these accounts are displayed. If there are no storage accounts in the location, you need to create one.
43
40
-**Storage type**: Blob storage isn't supported.
44
-
-**Storage redundancy**: Zone redundant storage (ZRS) isn't supported. The replication and redundancy information for the account is shown in parentheses after the account name.
41
+
-**Storage redundancy**: Zone redundant storage (ZRS) isn't supported. The replication and redundancy information for the account is shown in parentheses after the account name.
45
42
-**Premium storage**:
46
-
- When restoring non-premium VMs, premium storage accounts aren't supported.
47
-
- When restoring managed VMs, premium storage accounts configured with network rules aren't supported.
48
-
43
+
- When restoring non-premium VMs, premium storage accounts aren't supported.
44
+
- When restoring managed VMs, premium storage accounts configured with network rules aren't supported.
49
45
50
46
## Before you start
51
47
52
48
To restore a VM (create a new VM), make sure you have the correct role-based access control (RBAC) [permissions](backup-rbac-rs-vault.md#mapping-backup-built-in-roles-to-backup-management-actions) for the Restore VM operation.
53
49
54
50
If you don't have permissions, you can [restore a disk](#restore-disks), and then after the disk is restored, you can [use the template](#use-templates-to-customize-a-restored-vm) that was generated as part of the restore operation to create a new VM.
55
51
56
-
57
-
58
52
## Select a restore point
59
53
60
54
1. In the vault associated with the VM you want to restore, click **Backup items** > **Azure Virtual Machine**.
@@ -89,7 +83,6 @@ As one of the [restore options](#restore-options), you can create a VM quickly w
89
83
90
84
6. In **Restore configuration**, select **OK**. In **Restore**, click **Restore** to trigger the restore operation.
91
85
92
-
93
86
## Restore disks
94
87
95
88
As one of the [restore options](#restore-options), you can create a disk from a restore point. Then with the disk, you can do one of the following:
@@ -129,7 +122,6 @@ After the disk is restored, use the template that was generated as part of the r
As one of the [restore options](#restore-options), you can replace an existing VM disk with the selected restore point. [Review](#restore-options) all restore options.
@@ -140,7 +132,6 @@ As one of the [restore options](#restore-options), you can replace an existing V
There are a number of common scenarios in which you might need to restore VMs.
@@ -158,6 +149,7 @@ There are a number of common scenarios in which you might need to restore VMs.
158
149
**Zone Pinned VMs** | Azure Backup supports backup and restore of zoned pinned VMs. [Learn more](https://azure.microsoft.com/global-infrastructure/availability-zones/)
159
150
160
151
## Track the restore operation
152
+
161
153
After you trigger the restore operation, the backup service creates a job for tracking. Azure Backup displays notifications about the job in the portal. If they aren't visible, select the **Notifications** symbol, and then select **View all Jobs** to see the Restore Process Status.
@@ -182,24 +174,25 @@ There are a number of things to note after restoring a VM:
182
174
- If the backed-up VM had a static IP address, the restored VM will have a dynamic IP address to avoid conflict. You can [add a static IP address to the restored VM](../virtual-network/virtual-networks-reserved-private-ip.md#how-to-add-a-static-internal-ip-to-an-existing-vm).
183
175
- A restored VM doesn't have an availability set. If you use the restore disk option, then you can [specify an availability set](../virtual-machines/windows/tutorial-availability-sets.md) when you create a VM from the disk using the provided template or PowerShell.
184
176
- If you use a cloud-init-based Linux distribution, such as Ubuntu, for security reasons the password is blocked after the restore. Use the VMAccess extension on the restored VM to [reset the password](../virtual-machines/linux/reset-password.md). We recommend using SSH keys on these distributions, so you don't need to reset the password after the restore.
185
-
- If you are unable to access VM once restored due to VM having broken relationship with domain controller then follow the below steps to bring up the VM:
186
-
- Attach OS disk as a data disk to a recovered VM.
187
-
- Manually install VM agent if Azure Agent is found to be unresponsive by following this [link](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/install-vm-agent-offline).
188
-
- Enable Serial Console access on VM to allow commandline access to VM
189
-
190
-
```
177
+
- If you are unable to access VM once restored due to VM having broken relationship with domain controller, then follow the steps below to bring up the VM:
178
+
- Attach OS disk as a data disk to a recovered VM.
179
+
- Manually install VM agent if Azure Agent is found to be unresponsive by following this [link](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/install-vm-agent-offline).
180
+
- Enable Serial Console access on VM to allow command-line access to VM
181
+
182
+
```cmd
191
183
bcdedit /store <drive letter>:\boot\bcd /enum
192
184
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /set {bootmgr} displaybootmenu yes
193
185
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /set {bootmgr} timeout 5
194
186
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /set {bootmgr} bootems yes
195
187
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /ems {<<BOOT LOADER IDENTIFIER>>} ON
196
188
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /emssettings EMSPORT:1 EMSBAUDRATE:115200
197
189
```
198
-
- When the VM is rebuilt use Azure portal to reset local administrator account and password
199
-
- Use Serial console access and CMD to disjoin VM from domain
- Once the VM is disjoined and restarted, you will be able to successfully RDP to VM with local admin credentials and rejoin VM back to domain successfully.
0 commit comments