Top Banner
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. August 2018 Migrating Microsoft Applications to AWS like an Expert Danny Jenkins, Solutions Architect
39

Migrating Microsoft Applications to AWS like an Expert

Jan 23, 2023

Download

Documents

Khang Minh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

August 2018

Migrating Microsoft Applications to AWS like an Expert

Danny Jenkins, Solutions Architect

Page 2: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

What Will You Takeaway From This Session?

• This is a 300 level session

• Holistic approach to migrating Microsoft Workloads

• Move fast…dive deep where necessary

• QR codes are frustrating – Links on the website http://unicornshop.lol

Page 3: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Who Are Unicorn Shop?“To enable anyone with the dream of being a

unicorn to look like one”

• Online ecommerce offering

• Brick and mortar stores

• CMS, back office applications

• .NET and SQL custom applications

• Email hosted in O365

Issues:• Wasted resources

• Capex vs Opex model

• Developers restrained and can’t help the

business speed up

Page 4: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Migration Approach

Approach

Landing Zone Application Migration

ActiveDirectory

Automation

DatabaseMigration

What next?

Application Review

Page 5: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Our Web Store (PCI Compliant)

Web 01 Web 02 Web 03

App 01 App 02 App 03 Batch Jobs

SQL 01 SQL 02

• PCI compliant workload

• Need to restrict user

access to some

components

• Limited to specific

services

• Need to monitor access

patterns

Application Review

Page 6: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Our CMS Deployment

Web 01 Web 02 Web 03

App 01 App 02

SQL 01 SQL 02

• Legacy threat

management SPOF

• Unable to keep up to date

with threat definition

templatesWeb 03

Threat gateway

Application Review

Page 7: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Microservices

Fleet

Microservices Deployment

Web logs

Database Logs

Vendor API

Business Insights

Application Review

Page 8: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

So Let’s Go!! ....Almost…

Strategy Plan Build & Migrate Run

Existing IT

estate

evaluation

Planning &

Discovery

Application

design

Migration &

Validation

OperationApplication 1

Application 2

Application 1

Application 2

AWS Application

discovery service

Amazon

Cloudwatch

AWS Config

AWS DMS

AWS SMS

Se

rvic

es f

rom

AW

S

eco

syste

m

OurApproach

Page 9: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Approaching The Migration With The 6 R’s

Retain

Retire

Rehost

Replatform

Refactor

Repurchase

OurApproach

Page 10: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Building Our Landing Zone

• Multiple accounts in Organisations + SCPs

• How to create a monolithic identity approach (don’t judge me quite yet…)

• Amazon GuardDuty event execution

• AWS Config enforcing encryption demo

• Connectivity to support our Hybrid state during migration

LandingZone

Page 11: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Let’s Deploy Our Organisation’s Structure

{

"Version": "2012-10-17",

"Statement": [

{

"Effect": "Allow",

"Action": [

"ec2:*",

"cloudwatch:*"

],

"Resource": "*"

}

]

}

A1 A2 A4

M

A3

Dev Prod Prod PCI

LandingZone

Page 12: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Identity As A Monolith?

Target account A Target account B Target account C Target account B

Administrator account

CloudFormation template

Stack Set

Region 1 Region 2

LandingZone

Page 13: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Admins

Admin role

Admin role

Dev Account

Prod Account

Identity Account

Cross account roles

LandingZone

Page 14: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Identity Account

Stack Set

LandingZone

Page 15: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Demo

Page 16: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon GuardDuty – Event Execution

aws events put-rule --name Test --event-pattern "{\"source\":[\"aws.guardduty\"]}“

aws events put-rule --name Test --event-pattern "{\"source\":[\"aws.guardduty\"],\"detail-type\":[\"GuardDuty Finding\"],\"detail\":{\"severity\":[5.0,8.0]}}“

aws events put-targets --rule Test --targets Id=1,Arn=arn:aws:lambda:us-east-1:111122223333:function:<your_function>

Amazon GuardDuty

LandingZone

Page 17: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Our CMS Threat Management Layer

Web 01 Web 02 Web 03

App 01 App 02

SQL 01 SQL 02

Web 03

Threat gateway

LandingZone

Page 18: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

AWS WAF

LandingZone

AWS WAF – Managed web application firewall

Page 19: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

AWS WAF

• PCI

• OWASP Top 10

• Bot protection

• SQLi/XSS

• IP reputation

• CMS protection

LandingZone

AWS WAF – Working with managed rulesets

Page 20: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Let’s Get Our Networking Right…

Customer routers

AWS direct connect routers Amazon S3

Public traffic

Private traffic

LandingZone

Page 21: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

A good place to start..Microsoft apps need AD

Page 22: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Single domain extended to multiple sites

Availability Zone B

Private subnet

DC4

Corporate Network

Munich

DC1

Berlin

DC2

Cost 50

Availability Zone A

Private subnet

DC3Cost 10

company.local

company.local

One single identity, data center extension mode

(rely on Active Directory sites, read-only or not)

VPN

AWS Direct

Connect

Page 23: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

One subdomain per site

Availability Zone B

Private subnet

DC4

Corporate Network

Munich

DC1

Berlin

DC2

company.local

Availability Zone A

Private subnet

DC3cloud.company.local

Isolated subset of the directory, single identity for users

(Active Directory domains in a single forest)

VPN

AWS Direct

Connect

Page 24: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

One forest per site and trust

Availability Zone B

Private subnet

DC4

Corporate Network

Munich

DC1

Berlin

DC2Availability Zone A

Private subnet

DC3 company.local

company.cloud

Separate directories, single identity

(Cross-forest/resource forest with trust)

AWS Directory Service

company.cloud

VPN

AWS Direct

Connect

Page 25: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Amazon Windows EC2

Instances

Amazon Linux EC2 Instances

Azure ADConnectServer

ADFSServer

(optional)

AmazonWorkspaces

Amazon Workmail

Amazon Workdocs

Amazon Chime

AWS MgmtConsole

RDS for SQL Server

Amazon QuickSight

AmazonConnect

AWS MicrosoftAD Directory

RemoteDesktopLicensing

.NETapplications

SharePointSQL

Server VPNConnection

Office 365

Azure AD

On-premisesMicrosoft

Active Directory

On-premisesUsers

Authentication &

authorisation

SAMLAuthenticate

Federate

SyncroniseUsers

AWS apps & servicesAmazon EC2

Cloud applications

AD aware workloads

On-premises AD

Corporate data centre

Active Directory

Page 26: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

ADMT Migration details

Availability Zone B

Corporate Network

Availability Zone A

company.local

VPNDomain

client

AWS Directory Service

PES Install

Forest Trust

ADMT

DC1

Page 27: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

What Next? Migrating Databases – Which approach?

Migration method Amazon

RDS Target

Amazon

EC2 Target

Downtime DB Objects Cross-Engine

Backup/Restore Yes Yes Yes (hrs) Data, Schemas, Stored Procedures, Triggers, Indexes

No

Import/ExportBulk Copy

Yes Yes Yes (mins-hrs) Data, Schemas, Stored Procedures, Triggers, Indexes

No

SQL Log Shipping No Yes Minimal (secs-min) Pre-create the DB, sync No

Hybrid Architecture

No Yes Minimal (secs-min) Pre-create the DB, sync No

AWS DMS Yes Yes Minimal (secs-min) With SCT (Data, Schemas, Stored Procedures, Triggers, Indexes)

Yes (SCT)

DatabaseMigration

Page 28: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Users Accessing On Premise

On-premise DB AWS DB

DatabaseMigration

Page 29: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Migrating Database Writes Across

On-premise CMS DB AWS DBAWS DMS

DatabaseMigration

Page 30: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Endpoint Update and On Premise Decommission

Decommission CMS DB AWS DBAWS DMS

DatabaseMigration

Page 31: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

What To Migrate After SQL Server?

Fan out / deploy multiple systems in parallel:

• Exchange

• SharePoint

• Skype for Business

• System Centre Configuration Manager

• System Centre Operations Manager

• Etc…

ApplicationMigration

Page 32: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

AWS Server Migration Service

SCVMM

HV HOST

HV HOST

HV HOST AWS SMS

SMS VM

CMS Web AMI

CMS AppAMI

ApplicationMigration

Page 33: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Windows? Containers? Actually Yes…

State in containers, you can but what is the goal?

For unicornshop, short lived stateless apps

How to migrate apps to containers? Containers are portable..

Do you have a CICD process already?

ApplicationMigration

Page 34: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

ECS With 2 Autoscaling Groups

Example spot pricing Instance diversity

ApplicationMigration

Page 35: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Scheduled Tasks? .Net Core 2.0 Lambda

VPC private subnet

Pull data from CSV file

Perform ETL

Insert data into SQL table

Upload

Users

Data dropped in S3

Schedule / event triggered

S3 Bucket Lambda function DB in private subnet

ApplicationMigration

Page 36: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Automation Is Key, How Do I Automate Updates?

Start temporary instance

AWS latest Windows AMI

Update EC2 Config or EC2 Launch

Update PV drivers and run Windows updates

Invoke user provided scripts

Run a sysprep / Generalise

Stop temporary instance

Custom AMI ready for deployment

Automation

Page 37: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Searching for a solution to host its MSFT SharePoint sites, the company chose AWS because of cost, and to improve operational efficiency.

By running on AWS, Dole can launch a new SharePoint website in minutes, host business intelligence and mobile applications globally, and estimates savings of more than $350,000 in operating expenses.

“We can grow anytime we want, we don’t have to go and acquire new hardware” Joanna Dyer – Director, IT Solutions

Automation

Page 38: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

• Understand the dependency chain in your

Microsoft applications

• Build your migration plan around the

dependency chain

• Know how Microsoft licensing on AWS works

and plan accordingly

What Next?

Wrapping It Up

Page 39: Migrating Microsoft Applications to AWS like an Expert

© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Thank you!