Skip to content
ooha-m edited this page Nov 21, 2018 · 1 revision

Microsoft

White Goods Solution

Administrator Guide

Table of Contents

1 Admin Guide

This document explains how to use the solution in addition to User Document. In this we are configuring, verifying and performing DR activities for Standard and Premium solutions.

2 Performing DR Strategies

2.1 Standard Solution Type

In this scenario, there is again a primary and a secondary Azure region. All the traffic goes to the active deployment on the primary region. The secondary region is better prepared for disaster recovery because the database is running on both regions. 

Only the primary region has a deployed cloud service application. Both regions are synchronized with the contents of the database. When a disaster occurs, there are fewer activation requirements. You redeploy azure resources in the secondary region.

Redeployment approach, you should have already stored the service packages. However, you don’t incur most of the overhead that database restore operation requires, because the database is ready and running.  This saves a significant amount of time, making this an affordable DR pattern.

Standard Solution requires redeployment of azure resources in secondary region when the primary region is down.

When user chooses Standard Solution type below azure resources will be deployed in primary region and Cosmos DB in both Regions.

  • App service
  • Application insights
  • Automation account
  • Azure cosmos DB
  • IoT Hub
  • Log analytics
  • Notification Hub
  • Stream analytics job
  • Traffic manager profile.

When Primary region is down, and user needs to redeploy azure resources to new region. Once redeployment gets completed below resources will get deployed.

  • App service
  • Application insights
  • Notification hub
  • Stream analytics Job

Refer 4.1 and 4.2 Section in Deployment Guide for Standard Solution Deployment.

2.1.1 IoT Hub Manual Failover

Go to Resource Group -> Click on IoT Hub.

Go to Manual Failover (Preview) from left side menu.

Click on Initiate failover to initiate manual failover of IoT Hub.

When failover process started, a pop up will be displayed on right top corner.

Once Manual Failover process completed, Primary Location and secondary location will interchange.

Note: This process will take around 15 mins. To initial failover again, user needs wait for 1 hour to run failover again.

2.1.2 Stop Stream Analytics Job in Primary Region

Go to Resource Group and click on primary Stream Analytics job

Stop the Stream analytics job by click on Stop and click on Yes for confirmation.

2.1.3 Accessing Traffic manager

Go to Resource Group and click on Traffic manager resource.

Now you can see the web app as the endpoint of the traffic manager.

2.1.4 Stopping the Web App

Navigate to the Web App from resource group.

click on Stop then click on Yes to stop the Web App.

The Web App in the primary region has been stopped as failover.

Verify the same in traffic manager.

2.1.5 Redeploy the Region 2 ARM Template

Go to Github and select re-deploy.json file from the master branch.

Click on Raw.

Copy the re-deploy.json template.

Click on Add in existing resource group and re-deploy the ARM template.

2.1.6 Configure Region 2 web app to Traffic Manager

Go to Resource Group -> Traffic manager profile -> Endpoints, click on add.

Enter the name for the second End point of traffic manager and select the second web app as the target resource.

Click on Ok.

You can see the second region web app with online status under endpoint of traffic manager and Copy the DNS Name.

2.1.7 Cosmos DB Geo replication

Go to Resource Group -> click Cosmos DB.

Navigate to Replicate data globally under Settings section then click Manual failover.

Select the Read Region to become the new write region, check in the check box and click ok.

2.1.8 Accessing Web App

Go to Resource Group -> Settings -> Deployments, select Microsoft Template.

alt text

Select output and copy the devicemanagement_trafficmanager url.

alt text

paste the copied URL in new browser to access the Web App using your credentials.

alt text

You can see the Device summary as shown below.

alt text

2.2 Premium Solution Type

Both the primary region and the secondary region have a full deployment. This deployment includes the cloud services and a synchronized database. However, only the primary region is actively handling network requests. The secondary region becomes active only when the primary region experiences a service disruption. In that case, all new network requests route to the secondary region. Azure Traffic Manager can manage this failover automatically.

Failover occurs faster than the database-only variation because the services are already deployed. This topology provides a very low RTO. The secondary failover region must be ready to go immediately after failure of the primary region.

For the fastest response time with this model, you must have similar scale (number of role instances) in the primary and secondary regions.

When user chooses premium as solution type below azure resource will be deployed in both regions.

  • 2 app services
  • 2 application insights
  • 1 automation account
  • 1 cosmos DB
  • 1 IoT Hub
  • 1 Log Analytics
  • 2 Notification Hubs
  • 2 Stream analytics job
  • 1 Traffic manager

Refer 4.1 and 4.2 Section in Deployment Guide for Premium Solution Deployment.

2.2.1 IoT Hub Manual Failover

Go to Resource Group and Click on IoT Hub.

alt text

Go to Manual Failover(Preview) from left side menu.

Click on Initiate failover to initiate manual failover of IoT Hub.

alt text

You can check the status of the failover.

alt text

When failover process started, a pop up will be displayed on right top corner. Once Manual Failover process completed, Primary Location and secondary location will interchange.

Note: This process will take around 15 mins. To initial failover again, user needs wait for 1 hour to run failover again.

2.2.2 Stop Stream Analytics Job in Primary Region

Go to Resource Group and click on primary Stream Analytics job.

alt text

Stop the Stream analytics job by click on Stop and click on Yes for confirmation.

alt text

You can see the stream analytics job has been stopped.

alt text

2.2.3 Accessing the Traffic manager

Go to Resource Group and click on Traffic manager resource.

alt text

Now you can see the web app as the endpoint of the traffic manager.

alt text

2.2.4 Stopping the Web App

Navigate to the Web App from the resource group.

alt text

Select the primary Web App click on Stop then click on Yes to stop the Web App.

alt text

The Web App in the primary region has been stopped as failover.

alt text

Verify the Status of primary web app in traffic manager.

alt text

2.2.5 Cosmos DB Geo replication

Go to Resource Group -> click Cosmos DB.

alt text

Navigate to Replicate data globally under Settings section then click Manual failover.

Select the Read Region to become the new write region, check in the check box and click ok.

2.2.6 Accessing Web App

Go to Resource Group -> Settings -> Deployments, select Microsoft Template.

alt text

Select output and copy the devicemanagement_trafficmanager url.

alt text

paste the copied URL in new browser to access the Web App using your credentials.

alt text

You can see the Device summary as shown below.

alt text