Skip to navigation
Who can use this feature

Anyone with these permissions: Restore resources

This article explains how to restore an Azure managed disk from your Eon snapshots.

To replace the disks of the existing VM with the disks from a snapshot, see Azure VM: Restore Disks in Place.

This procedure applies to both Azure Virtual Machines and SQL Server on Azure Virtual Machines. Both resource types use the same restore wizard.

Restore the disk

Before you start

Before you restore an Azure disk, make sure:

  • If the disk is encrypted with Azure Disk Encryption (ADE), the restore subscription permissions must have been installed with the ADE encrypted VM restore option enabled.

  • If a disk’s Key Vault is in another subscription, the Azure CLI and jq installed.

Some disk encryption set combinations aren’t supported. See Restore support notes before you choose a disk encryption set.

1

Find the snapshot you want to restore

  1. In your inventory, select the Azure VM whose disk you want to restore. The Resource details panel opens.

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

  3. Expand the snapshot you want to restore. Click Specific disk, select the disk you want to restore, and then click Restore. The Restore Disk wizard opens.

2

Choose the restore account

In the Restore Disk wizard, you’re taken through a two-step process. The first step is to choose a restore account.

Choose the subscription you want to restore the disk to, and then click Next.

3

Set the restored disk details

In the Disk configuration step, you’ll set the restored disk details.

  1. Choose a Region to deploy the restored disk to.

  2. Choose a Resource group to deploy the restored disk to.

  3. Under Encryption at rest, choose a disk encryption set to encrypt the restored disk with your customer-managed key, or keep Platform-managed key.

    • The list shows the disk encryption sets in the restore subscription and the region you chose.

    • Eon preselects the disk encryption set the source disk used and tags it Original.

    • If that set isn’t available in the subscription and region you chose, Eon selects Platform-managed key and shows an info message.

    • If the set you want isn’t listed, grant Eon’s restore app access to it.

      Eon lists a disk encryption set only when its restore app can read it. You need to grant access only in these cases:

      • The disk encryption set is outside your restore scope.
      • Your restore permissions are earlier than version 1.13.0. From version 1.13.0, Eon can read every disk encryption set in your restore scope, so you can update your restore permissions instead.

      To grant access, give Eon’s restore app the Reader role on the set, then check that Eon can read it. You need permissions to assign roles on the disk encryption set in Azure; if you don’t have them, ask your Azure administrator.

      1. In the Encryption at rest picker, select Don’t see your disk encryption set? The console shows the commands to run, with Eon’s restore app ID filled in.

      2. Assign the Reader role to Eon’s restore app on the disk encryption set. In the following commands, replace <restore-app-id> with Eon’s restore app ID, which the console fills in for you. Replace <disk-encryption-set-id> with the resource ID of your disk encryption set.

        SP=$(az ad sp show --id '<restore-app-id>' --query id -o tsv) && MSYS_NO_PATHCONV=1 az role assignment create --assignee-object-id "$SP" --assignee-principal-type ServicePrincipal --role Reader --scope '<disk-encryption-set-id>'

        MSYS_NO_PATHCONV=1 stops Git Bash on Windows from rewriting the resource ID.

      3. In the Disk encryption set resource ID field, enter the resource ID of the disk encryption set, and click Check access. The result tells you what to do next:

        ResultWhat to do
        ReadableClick Use this set to select the disk encryption set.
        Not readableCheck that the Reader role assignment finished, and that it’s on this disk encryption set. Then check access again.
        Not foundCheck that the disk encryption set exists and that the resource ID is correct.
        Wrong subscriptionUse a disk encryption set in the restore account’s subscription.
        Wrong regionUse a disk encryption set in the region you’re restoring to.
        Invalid IDEnter the full Azure resource ID of the disk encryption set.
        Check failedCheck access again. If it keeps failing, contact Eon Support.

      A newly granted disk encryption set can take a while to appear in the Encryption at rest list. Use this set selects it right away, so you don’t have to wait. Then continue with the rest of the restore wizard.

  4. Choose whether to turn Keep original settings on or off.

    • If you leave Keep original settings on, the restored disk retains the same settings as the original disk.

    • If you turn it off, you can customize the disk’s Name.

  5. If you want to retain the tags that were present when the snapshot was taken, turn Keep original tags on. Otherwise, turn Keep original tags off.

Encryption keys

If a disk is encrypted with ADE, the wizard shows what you need to do about its key. What you do depends on where the encryption key is stored:

  • Every disk’s Key Vault is in the restore account’s subscription, and you restore to the VM’s original region: The restored disks reference the original keys automatically, and the VM boots with its existing encryption. There’s no additional action needed from you.

  • A disk’s Key Vault is in another subscription, or you restore to another region: Azure requires a disk’s Key Vault to be in the same subscription and region as the disk, so you copy each key into a Key Vault in the restore account’s subscription, in the region you restore to. For the region requirement, see Azure Disk Encryption Key Vault requirements. Then you tell Eon where you put it.

    1. In the restore account’s subscription and the region you restore to, create a Key Vault with disk encryption enabled, or use an existing one. The wizard calls this setting “enabled for disk encryption.” In the Azure portal, it’s Azure Disk Encryption for volume encryption. If the restore account is limited to a resource group, the Key Vault must be in that resource group.

    2. For each key the wizard lists, copy the commands the wizard shows, replace <target-vault-name> with the name of your Key Vault, and run them. Copy every key version the wizard lists, even when several share a name. Linux keeps a separate key version for each disk. The last command prints the new secret URL.

    3. In the wizard, enter the new secret URL in New secret URL. The URL must include the key version. Then enter the Key Vault’s resource ID in Destination Key Vault resource ID. The Key Vault must be the one in the secret URL.

4

Start the restore job

Click Restore to start the asynchronous restore job.

You can see your list of restore jobs on the Restore jobs tab in the Jobs page.

After the job is completed, the status changes to SUCCESS, and you can work with the restored disk as normal.

See also