az-303,

How to Recover a Virtual Machine with Azure Backup Service

Sven Malvik Sven Malvik Connect Dec 29, 2020 · 4 mins read
How to Recover a Virtual Machine with Azure Backup Service

This episode is about the Azure Backup Service, and how we can restore a virtual machine. I have already a Windows Server 2016 Datacenter VM created, so we will continue from there and create a file, run a backup, and then restore the file system. Azure Backup Service is part of the AZ-303 exam for becoming an Azure Solution Architect.

Watch Azure Backup Service in preparation for the AZ-303 exam

Make sure you have a Windows Server up and running. Go first into the overview of the VM and open the menu. You will find Backup there.

Backup of VM in Azure PortalBackup of VM in Azure Portal

The first you will be asked is to provide a Recovery Service Vault. If you don’t have one, you can create it from here. When I did this, I had some issues later, and I had to create a new VM and use the Recovery Service Vault that I created before. The same happened to others as well, just so you know. Next, click on Create a new policy.

Recovery Service VaultRecovery Service Vault

In this pane you can set up when you want Azure to take a backup of your VM, daily or weekly and what time. You can now specify the retention of backup points, weekly, monthly, or yearly.

Backup Schedule of VMBackup Schedule of VM

Let’s now login to the Windows Server first. I got a public IP address, so I won’t use Azure Bastion as I usually do.

Login to Windows Server VMLogin to Windows Server VM

I open the file explorer and create a text file that I name Test. My goal is to restore this file later after I have deleted it.

Create fileCreate file

I have opened the Azure portal from within the Windows Server because we will soon install a tool that we will download from here. But first I clicked on Backup in the menu of the VM and hit on Backup now.

Backup VM in AzureBackup VM in Azure

You will get asked for how long you need the backup. I stick to the default.

Retention time of VM backupRetention time of VM backup

Just to show you that the backup is in progress. I clicked on View all jobs which you also find under the Backup-menu.

View all jobs in VM backupView all jobs in VM backup

We see that the backup is on its way. The backup took about an hour, and I didn’t install anything there, I just created a file.

Backup of VM in progressBackup of VM in progress

Let’s now switch back to the Windows Server, and into the file explorer to delete the file I just created. We want to restore the file-system and see if we get the file back.

Delete a text file in WindowsDelete a text file in Windows

I’m back in the portal, and ready for running a file recovery.

File recovery in AzureFile recovery in Azure

We get asked about what recovery point we would like to restore. As we just have one, the choice is easy. Then we click on Download Executable. This takes about a minute. It’s not only an executable we get, but also a password that we need to run the executable.

Download executable for file recoveryDownload executable for file recovery

Once ready, we click on Download, and copy the password.

Download, and copy the passwordDownload, and copy the password

The executable we reside in the Downloads-folder of the VM. Double-click to run.

Run the installationRun the installation

Use now the password you copied.

Proceed with installationProceed with installation

A PowerShell window opens, and tell you to wait a moment. Once finished, we get two new drives.

PowerShell runs the installationPowerShell runs the installation

So, we got two drives. One is reserved for the installation process, and the other (G:) has the restored file-system which includes the file we created and deleted.

File recovery mounted two new drivesFile recovery mounted two new drives

Join Newsletter
Get the latest updates right in your inbox. I never spam!
Sven Malvik
Written by Sven Malvik

Latest Stories

How To Manage Azure Virtual Machines

I will go through the first steps for managing Virtual Machines. We will create a Windows VM, start the Internet Information Service IIS,...

Dec 26, 2020

How to do a Failover of a Windows Server VM with Azure Site Recovery

In this post I will create a Windows Server 2016 Datacenter and then do an automatic failover to another region with Azure Site Recovery....

Jan 04, 2021

Event-Driven Infrastructure with App Configuration

Azure App Configuration is great for externalizing application configurations. But what if an application is our infrastructure? How coul...

Sep 12, 2020

How to Establish a VPN Point to Site Connection in Azure

I will demonstrate how to establish a point to site connection in Azure, and connect from a Windows workstation to a virtual machine via ...

Dec 17, 2020

How to Use Azure Bastion as a Jump Host

Knowing about Azure Bastion is part of the AZ-303 exam for becoming an Azure Solution Architect. Bastion is very useful in cases where yo...

Dec 20, 2020

How to Peer Virtual Networks in Azure

When we have two services running in two different virtual networks, they cannot communicate. To fix this, both VNet’s have to be peered....

Dec 23, 2020

How to configure Azure Storage Accounts to Allow Access from Specific Subnets

Sometimes we store items in a storage account and want to restrict the access to certain services or clients. I will demonstrate how to r...

Dec 25, 2020

Logging in Azure API Management

This post is a complete step-by-step guide on how to send logs from Azure API Management to Azure Event Hub with PowerShell. We start by ...

Apr 11, 2020

AZ-303 Self-Study Guide for Becoming an Azure Solution Architect

Microsoft updated it’s role based exam for AZ-300. It’s now called AZ-303 and launched last year. This certification is a great proof for...

Feb 01, 2021

Serving Website Images from Azure CDN with SSL

In this post I will show you step by step how to serve images on a website from Azure CDN with SSL enabled. My blog has a couple of Azure...

Apr 25, 2020

How to Create Custom Routes in Azure

Custom Routes, or user defined routing, is part of the az-303 certification for becoming an Azure Solution Architect. In this video I tel...

Dec 24, 2020

Latest Stories

How To Manage Azure Virtual Machines

How To Manage Azure Virtual Machines

I will go through the first steps for managing Virtual Machines. We will create a Windows VM, start the Internet Information Service IIS,...

Dec 26, 2020

How to do a Failover of a Windows Server VM with Azure Site Recovery

How to do a Failover of a Windows Server VM with Azure Site Recovery

In this post I will create a Windows Server 2016 Datacenter and then do an automatic failover to another region with Azure Site Recovery....

Jan 04, 2021

Event-Driven Infrastructure with App Configuration

Event-Driven Infrastructure with App Configuration

Azure App Configuration is great for externalizing application configurations. But what if an application is our infrastructure? How coul...

Sep 12, 2020

How to Establish a VPN Point to Site Connection in Azure

How to Establish a VPN Point to Site Connection in Azure

I will demonstrate how to establish a point to site connection in Azure, and connect from a Windows workstation to a virtual machine via ...

Dec 17, 2020

How to Use Azure Bastion as a Jump Host

How to Use Azure Bastion as a Jump Host

Knowing about Azure Bastion is part of the AZ-303 exam for becoming an Azure Solution Architect. Bastion is very useful in cases where yo...

Dec 20, 2020

How to Peer Virtual Networks in Azure

How to Peer Virtual Networks in Azure

When we have two services running in two different virtual networks, they cannot communicate. To fix this, both VNet’s have to be peered....

Dec 23, 2020

How to configure Azure Storage Accounts to Allow Access from Specific Subnets

How to configure Azure Storage Accounts to Allow Access from Specific Subnets

Sometimes we store items in a storage account and want to restrict the access to certain services or clients. I will demonstrate how to r...

Dec 25, 2020

Logging in Azure API Management

Logging in Azure API Management

This post is a complete step-by-step guide on how to send logs from Azure API Management to Azure Event Hub with PowerShell. We start by ...

Apr 11, 2020

AZ-303 Self-Study Guide for Becoming an Azure Solution Architect

AZ-303 Self-Study Guide for Becoming an Azure Solution Architect

Microsoft updated it’s role based exam for AZ-300. It’s now called AZ-303 and launched last year. This certification is a great proof for...

Feb 01, 2021

Serving Website Images from Azure CDN with SSL

Serving Website Images from Azure CDN with SSL

In this post I will show you step by step how to serve images on a website from Azure CDN with SSL enabled. My blog has a couple of Azure...

Apr 25, 2020

How to Create Custom Routes in Azure

How to Create Custom Routes in Azure

Custom Routes, or user defined routing, is part of the az-303 certification for becoming an Azure Solution Architect. In this video I tel...

Dec 24, 2020