az-303,

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

Sven Malvik Sven Malvik Connect Jan 04, 2021 · 3 mins read
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. Azure Site Recovery is part of the AZ-303 exam for becoming an Azure Solution Architect.

Watch Azure Site Recovery in preparation for the AZ-303 exam

I have already created a Windows Server 2016 Datacenter in Azure. Checkout a previous post about how to Create a Windows Server 2016 Datacenter VM. After that we need the IIS Server. Here is how you can do this: Installing Internet Information Service (IIS).

I will first make a minor change in the IIS Server so we are sure that we did a correct failover later.

Open iisstart.htmlOpen iisstart.html

I make a minor text change and add ` - DR` in the title.

Minor html change in IIS ServerMinor html change in IIS Server

I took the public IP address that we can see in the overview of the virtual machine. If you don’t have a public IP address, you can watch the Video about Azure Site Recovery where I will walk through this. Everything works fine.

Testing changed IIS serverTesting changed IIS server

Switch now over to the Azure portal and select your virtual machine. In the menu you’ll find Disaster Recovery where you can choose the target region. It’s the region that Azure will use to deploy a failover VM for you.

Target region for failover of Azure Site RecoveryTarget region for failover of Azure Site Recovery

Set your target settings. Target settingsTarget settings

The Cache storage account is where the source VM data will be stored.

Storage settings for Azure Site RecoveryStorage settings for Azure Site Recovery

Replication Settings is where you tell Azure what Recovery Vault Service you would like to use.

Replication Settings for Azure Site RecoveryReplication Settings for Azure Site Recovery

I also set Extension settings with an Azure Automation Account so the entire failover flow will be managed by Azure.

Extension settings for Azure Site RecoveryExtension settings for Azure Site Recovery

Now when we take a look in the Backup Service Vault that we use, we see that an initial job for replication is in progress.

Enable replication for Azure Site RecoveryEnable replication for Azure Site Recovery

Enable replication for Azure Site Recovery takes time, in my case 25 minutes. I will now go over to my VM and initiate a test failover.

Start test failoverStart test failover

You will get asked to set the virtual network. Remember that we do a test failover and it might be a good idea to choose a different virtual network the current region.

Test failoverTest failover

After some while, the test failover VM is ready to test. What’s still missing is a public IP address. Follow the Video about Azure Site Recovery where I will walk through this.

VM with private IP addressVM with private IP address

VM with public IP addressVM with public IP address

Finally I test the failover VM with the new IP address.

Test of failover VMTest of failover VM

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

Dec 29, 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

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

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

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

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

AZ-304 Self-Study Guide for Becoming an Azure Solution Architect Expert

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

Feb 01, 2021

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 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 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 Recover a Virtual Machine with Azure Backup Service

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

Dec 29, 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

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

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

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

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

AZ-304 Self-Study Guide for Becoming an Azure Solution Architect Expert

AZ-304 Self-Study Guide for Becoming an Azure Solution Architect Expert

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

Feb 01, 2021