Azure VM: Restore Disks in Place
Who can use this feature
Anyone with these permissions: Restore resources
Restoring the disks of an existing Azure VM in place returns it to the state of an Eon snapshot without creating a new VM. The VM keeps its ID, network interfaces, private IP addresses, and configuration.
This article explains how to restore the disks of an Azure VM in place from the Eon console.
To restore into a new VM instead, see Azure VM: Restore a VM. To restore a single disk as a new disk, see Azure VM: Restore a Disk.
Restore the disks of a VM
You can start from the inventory page in the Eon console.
Eon deallocates the VM while it swaps the disks, which interrupts anything running on it. Deallocating releases a dynamic public IP address and discards data on the VM’s temporary disk. The wizard doesn’t warn about either.
Before you start
Before you restore the disks of a VM in place, make sure:
-
The restore subscription is connected for the Azure subscription that contains the VM. If it’s limited to one resource group, that group contains the VM. Its permissions version is 1.17.0 or later, which includes the permission Eon needs to start the VM after the swap. A restore subscription whose version Eon hasn’t detected can’t restore disks in place. It also has restore permissions turned on for VMs.
-
A restore account has been connected to your Eon account.
- The VM is an Azure virtual machine, not a SQL Server on Azure VM, and it’s running or stopped and isn’t in a scale set. It has no ephemeral OS disk, no disks that aren’t managed disks, and doesn’t use Azure Disk Encryption.
Find the snapshot you want to restore
-
In your inventory, select the Azure VM whose disks you want to restore. The Resource details panel opens.
-
Click the Eon snapshots tab. You’ll see a calendar view with colored dots on the days when snapshots were taken. There can be more than one snapshot per day.
When you click a day, a list of Eon snapshots taken that day is displayed below the calendar.
-
Expand the snapshot you want to restore. Under What do you want to restore?, select Restore disks in place, and then click Restore. The Restore disks in place wizard opens.
Choose the disks to restore
In the Disks step, Eon chooses the restore account and runs a plan check on the live VM. The read-only Restore account block shows the name of the restore account Eon uses. The plan check lists each disk of the snapshot in a table.
-
Review the plan check results. If This VM’s disks can’t be restored in place appears, the VM has a blocker. If a disk can’t be restored, it’s listed with the reason and can’t be selected. For what each result means, see Plan check results.
-
Clear the disks you don’t want to restore. Eon selects every disk that can be restored.
-
For a data disk marked LUN needed, enter a LUN under LUNs of the restored disks. The disk isn’t attached to the VM now and the snapshot doesn’t record its LUN, so you choose the LUN to attach the restored disk at. Choose a whole number that no other disk on the VM uses.
-
Click Next.
Disks that were added to the VM after the snapshot was taken appear under Stays attached. Eon doesn’t touch them.
Review and start the restore
In the Review step, Eon summarizes how many of the snapshot’s disks it restores into the VM, and shows the Restore account block again.
-
Select the checkbox for each warning under Acknowledge before you continue. The warnings that appear depend on the VM and your selection.
-
To choose whether the VM is running after the restore, turn Start instance after restore on or off. If you don’t change the switch, Eon starts the VM after the swap only when the VM was running just before Eon stopped it.
-
Click Restore disks. Eon starts the asynchronous restore job.
If the VM’s disks change while you review them, or Eon would now choose a different restore account, Eon asks you to review the changes or plan the restore again before you can restore.
You can monitor the restore job on the Restore jobs tab in the Jobs page. The job type is VM in-place disk restore.
When the restore job succeeds, the restored disks are in the same slots as the disks they replaced. The VM is running only if Eon started it.
Plan check results
The plan check reads the VM live, so the result reflects its disks at the moment you open the wizard. The wizard words each blocker and warning slightly differently from the descriptions below.
Restore account
You don’t choose the restore account. Eon considers the restore subscriptions connected for the Azure subscription that contains the VM, either for the whole subscription or for the VM’s resource group. Of these, it keeps the active ones in the project that your role allows as a restore destination. Eon swaps the disks with the one that passes every check. When a subscription-wide restore subscription and one limited to the VM’s resource group both pass, Eon uses the one limited to the resource group.
When no restore account passes every check, the plan check lists the blockers of the restore account closest to working, together, under This VM’s disks can’t be restored in place. When your role allows none of the restore accounts, the plan check fails with You can’t restore this VM’s disks in place: permission denied: restore account access restricted by role. Ask an administrator to change your role’s restore destination limits.
VM blockers
A blocker at this level disables the restore for every disk.
Disk blockers
A disk blocker disables only the affected disk. The wizard lists it with the disk’s ID and the reason it can’t be restored, and you can restore the VM’s other disks.
Warnings to acknowledge
A warning doesn’t block the restore. You acknowledge each warning that applies on the Review step before you can start.
What happens during the restore
Eon restores the data first, so the VM is unavailable only while Eon swaps the disks:
-
Eon restores each selected disk from the snapshot into a new disk while the VM keeps running.
-
Eon skips the scheduled backups and scans of the VM that haven’t started yet. They appear as Skipped in the job list. If a backup of the VM has already started, Eon waits until it has captured the disks, which usually takes a few minutes.
-
Eon checks the VM’s disks again. If they changed since you reviewed them, the restore fails before it stops the VM.
-
Eon stops the VM, detaches the selected disks, and attaches the restored disks in the same slots.
-
Eon starts the VM if you chose to, or if you left the switch unchanged and the VM was running before the stop.
Disks that you didn’t select stay attached and aren’t changed.
Backups and scans after the restore
For one hour after the restore, Eon holds the scheduled backups and scans of the VM. When the hour ends, a held scheduled backup runs if its schedule window is still open. If the window has closed, the backup appears as Skipped.
On-demand backups aren’t held. Starting an on-demand backup of the VM ends the hold early.
What happens to the original disks
Eon keeps each original disk, detached and marked with the job ID, and never deletes it.
The originals stay in your account and incur cost until you delete them.
Eon tags each detached original disk with eon:in-place-restore:job-id, eon:in-place-restore:vm-id, and eon:in-place-restore:slot.
The restore job’s details list each swap under Disk swap: the Slot, the Original disk (kept), and the Restored disk. The state next to the VM’s ID is Swapped after a successful restore. While the swap runs it shows Swap in progress. If a job ends while it still shows that state, check which disks are attached to the VM.
There’s no way to revert a restore in Eon. To go back to an original disk, stop the VM, detach the restored disk from the slot that Disk swap lists, and attach the original there.
If the restore fails
What Eon does depends on how far the restore got:
-
Before Eon stops the VM: The VM isn’t changed, and Eon deletes the disks it restored.
-
After the stop, before the swap: Eon starts the VM if it was running before, and deletes the disks it restored.
-
During the swap: Eon puts the original disks back in their slots, starts the VM if it was running before, and deletes the disks it restored. The job’s Disk swap state is Original disks put back.
-
If Eon can’t put the original disks back: The state is Putting the originals back failed, and Eon deletes nothing. The original disks and the restored disks are both kept, so you can attach the ones you want. The VM stays stopped.
-
If the VM doesn’t start again after Eon puts the original disks back: The job fails and the VM stays stopped. Eon doesn’t delete the restored disks. Start the VM yourself.
-
If the VM doesn’t start after a successful swap: The job fails and the VM keeps the restored disks. Start the VM yourself, or stop it, detach the restored disks, and attach the original disks.