33
Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Embed Size (px)

Citation preview

Page 1: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migrating Applications to Windows Azure Virtual Machines

Michael WashamSenior Technical EvangelistMicrosoft Corporation

Page 2: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migrating to Virtual Machines

Getting Started

Application Migration

Imaging Virtual Machines

Deploying Enterprise Apps

Connecting Cloud Services

Page 3: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Getting Started

Page 4: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Cloud First ProvisioningGetting Started

Management Portal

>_Scripting

(Windows, Linux and Mac)

REST API

Select Image and VM Size

Windows Server

Linux

Extra Small

Small

Medium

Large

X-Large

New Disk Persisted in Storage

Cloud

Boot VM from New Disk

BlobStorage

Page 5: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Cloud

BlobStorage

Bring Your Own Server/VHDOn-Premises

On Premises Virtual Server

Provision VM from Image or Disk using portal, script or API

Use Cases• Forklift Migration of VMs

• Sys Prepped Images

VHD Must Be Fixed Disk * CSUpload Can Convert on Upload

MyApp.vhd

Page 6: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Portal Experience

Creating a Virtual Machine

Page 7: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Application Migration

Page 8: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migration Approaches

Build Virtual Machine in the CloudLowers upload time and dependency riskRequires upload and installation of application and data

Migrating an Existing Virtual MachineApplication, Configuration and Data in an installed Working State Requires uploading a large amount of data and a higher risk of drivers or other hardware dependencies on VM not available in the cloud

Page 9: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migrating a Multi-VM ApplicationCloud Service Acts as a Networking BoundaryAll VMs in the same service can communicate directlyName resolution between VMs is automatic with Windows Azure provided DNSCloud Service

Name: myapp1.cloudapp.net

Virtual MachineVM Name: iisvm110.1.5.6

Virtual MachineVM Name: iisvm210.1.5.7

DIP

Virtual MachineVM Name: sqlvm110.1.5.8

DIP DIP

Load BalancerPublic IP

Page 10: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migrating a Web Farm

Page 11: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Virtual Machine Migration

Windows Azure Supports VHD File FormatOther formats will have to be converted or migrated before upload

Upload Existing VHDs using CSUpload.exeSupports Resuming Failed Transfers Converting from Dynamic to Fixed Disk on UploadEfficient Upload – does not send empty bytes

Things to Do Before Uploading OS DiskEnable Remote Access

Page 12: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Migrating a Simple Virtual Machine

On-Premises Virtual MachineMachine Name: APPSRV1Memory: 8 GB Cores: 4Ports: 80/443 for http/https

Guest: C:\Host: C:\VMs\APP-OS.vhd

Guest: D:\Host: D:\VMs\APP-Data.vhd

Guest: E:\Host: E:\VMs\APP-Logs.vhd

Cloud ServiceName: myapp1.cloudapp.net

Virtual MachineRole Name: appsrv14 Cores 7 GB Ram Windows

AzureStorageGuest: C:\

WAStorage\VMs\APP-OS.vhd

Guest: E:\WAStorage\VMs\APP-Data.vhdGuest: F:\WAStorageVMs\APP-Logs.vhd

DeploymentSlot Production

Migration Steps1) Upload VHDs CSUpload or other Tools

2) Create VM OS Disk=APP-OS.vhd

3) Configure Data Disks Data Disk 1 = APP-Data.vhd Data Disk 2 = App-Logs.vhd

4) Adjust App for Drive Letters

5) Add Endpoint(s) 80, TCP, http 443, TCP, https

TCP Endpoints 80 and 443

Page 13: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Using CSUpload

Page 14: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Imaging Virtual Machines

Page 15: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

BlobStorage

Imaging VMs in the CloudCloud

Identical/similar deployment instances using common OS image

as start

Capture VM Saves Customized Image to Your Image Library

BlobStorage

Base.VHD

Page 16: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Custom Images

Page 17: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Deploying Enterprise Applications

Page 18: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Windows Azure Virtual Network

Persistent IP Address RequirementsVirtual Machines deployed into a virtual network have an infinite DHCP lease.

Hybrid On-Premises Cloud AppsRequirement for connectivity between your data center and the public cloud.

Connectivity between cloud services. Deploying Active Directory in the Cloud or connecting a PaaS to IaaS Service.

Corpnet

Windows Azure

Page 19: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Domain Controller in the Cloud

The Virtual Networkin Windows Azure

Gateway

SQL ServersIIS Servers

Load BalancerPublic IP

AD Replication+

On Premises Resources

AD / DNS

AD Auth

Site to Site VPN Tunnel

Contoso.com Active Directory

Contoso Corp Network

IIS Servers

AD / DNS

SQL Servers

Exchange

S2S VPN Device

Contoso.com Active Directory

Page 20: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Cloud Services Configuration for ADDeploy DC in Separate Cloud Service

Cloud Service for AD ClientsName: app-cloudservice.cloudapp.netAffinity Group: ADAG

DeploymentVirtual Network: MyVNETDNS Ips: 192.168.1.4

Virtual MachineRole Name: advm1Subnet: AppSubnetIP Address: 192.168.2.4

Cloud Service for AD DomainsName: ad-cloudservice.cloudapp.netAffinity Group: ADAG

DeploymentVirtual Network: ADVNETDNS Ips: (On-Premise AD IP)

Virtual MachineRole Name: ad-dcSubnet: ADSubnetIP Address: 192.168.1.4

DIP

ADVNET

Page 21: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Demo

Deploying with AD

Page 22: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Managing VMs

Page 23: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Managing Windows Azure VMs

Windows Azure Virtual Machines are not “different”Existing Monitoring and Management Applications will continue to work

Connectivity Will Be KeyUsing Windows Azure Virtual Networks to bridge the connectivity divideManagement Applications may have more streamlined solutions such as the System Center Gateway Service

For Azure Specific Automation Tasks Use PowerShell

Page 24: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Scripting CapabilitiesFull Support for IaaS• Windows Azure PowerShell Cmdlets• Cross Platform Scripting Built on node.js

Capabilities• Provisioning, Removal• Reboot, Start• Import and Export VM settings• Support for Windows and Linux VMs• Domain Join at Provision for Windows• Fully Customize VM with Data Disks

and Endpoint Configuration• Automate Virtual Network Settings

Page 25: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Scaling Up or Down

Page 26: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Connecting Cloud Services

Page 27: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Connecting Cloud Services with VNETStrengthsMore Secure

Low Latency

Cloud Service Autonomy

VIP Swap (stateless roles)

Advanced Connectivity Requirements

WeaknessesVNET Complexity

No Windows Azure provided DNS

Direct Access

via VNET

APPSUBNET(10.1.0.0/16)

SQLSubnet (10.2.0.0/16)

Load Balancer

80

WA Web Role

Cloud Service1

Cloud Service 2

SQL Server

ContosoVNet (10.0.0.0/8)

Page 28: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Connecting Cloud Services

Page 29: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Summary

Getting Started

Application Migration

Imaging Virtual Machines

Deploying Enterprise Apps

Connecting Cloud Services

Page 30: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Thank you!

Blog: michaelwasham.comTwitter: @MWashamMS

Windows Azure Training Kithttp://bit.ly/WATKJune2012Cloud Cover http://channel9.msdn.com/Shows/Cloud+Cover

Page 31: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Resources

Connect. Share. Discuss.

http://europe.msteched.com

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

TechNet

Resources for IT Professionals

http://microsoft.com/technet

Resources for Developers

http://microsoft.com/msdn

Page 32: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation

Evaluations

http://europe.msteched.com/sessions

Submit your evals online

Page 33: Migrating Applications to Windows Azure Virtual Machines Michael Washam Senior Technical Evangelist Microsoft Corporation