Migrating Data-Centric Applications to Windows Azure
Total Page:16
File Type:pdf, Size:1020Kb
Migrating Data-Centric Applications to Windows Azure Kun Cheng, Selcin Turkarslan, Norberto Garcia, Steve Howard, Shaun Tinline-Jones, Sreedhar Pelluru, Silvano Coriani, Jaime Alva Bravo Contributors: James Podgorski, Rama Ramani Reviewers: Paolo Salvatori, Stuart Ozer, Drew McDaniel, Jason Chen, Ganesh Srinivasan, Lindsey Allen, Evgeny Krivosheev, Valery Mizonov, Avilay Parekh, Christian Martinez, Shawn Hernan, Mark Simms, Adrian Bethune, Bill Gibson, Adam Mahood Summary: The guide, Migrating Data-Centric Applications to Windows Azure, provides experienced developers and information technology (IT) professionals with detailed guidance on how to migrate their data-centric applications to Windows Azure Cloud Services, while also providing an introduction on how to migrate those same applications to Windows Azure Virtual Machines. By using this guide, you will have the planning process, migration considerations, and prescriptive how to’s needed for a positive migration experience. Capturing the best practices from the real-world engagements of CAT and the technical expertise of the SQL Database Content team, Migrating Data-Centric Applications to Windows Azure can help you simplify the migration process, provide guidance on the most appropriate migration tools, and drive a successful implementation of your migration plan. Category: Guide Applies to: Windows Azure Source: MSDN Library (link to source content) E-book publication date: June 2012 Copyright © 2012 by Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Contents About This Guide .............................................................................................................................. 1 Part 1: Planning and Implementing a Migration Overview of the Migration Life Cycle................................................................................................ 4 Analysis Phase ............................................................................................................................ 4 Application Migration Phase ....................................................................................................... 6 Data Migration Phase.................................................................................................................. 6 Testing and Optimization Phase .................................................................................................. 7 Operation and Management Phase ............................................................................................. 7 Planning a Migration ........................................................................................................................ 8 Plan for cost ................................................................................................................................ 8 Identify key business and technical requirements that Windows Azure can help resolve ............. 9 Perform analysis and design ...................................................................................................... 10 Plan the timeline ....................................................................................................................... 13 Make a plan for the interim ...................................................................................................... 13 Make a plan for testing ............................................................................................................. 14 Identify the resources needed................................................................................................... 14 Plan the application management in Windows Azure ................................................................ 15 See Also .................................................................................................................................... 15 Implementing the Migration Plan................................................................................................... 16 Setting up for validation tests ................................................................................................... 16 Synchronizing databases to minimize cut over time .................................................................. 17 Windows Azure SQL Data Sync............................................................................................ 18 Replication, mirroring or log shipping ................................................................................. 19 Custom Extract Transform and Load (ETL) ........................................................................... 19 Export a Data-Tier Application (DAC) .................................................................................. 19 Backup and restore ................................................................................................................... 19 Cut over to Windows Azure....................................................................................................... 20 i Part 2: Migration Considerations, Best Practices, and How To Migrating with Windows Azure Virtual Machines .......................................................................... 22 Overview of Windows Azure Virtual Machines .......................................................................... 23 Windows Azure and Virtual Machines ................................................................................. 23 Windows Azure Supplied Virtual Machine Images ............................................................... 25 List of important concepts ............................................................................................ 26 High Availability and Disaster Recovery when using Windows Azure Virtual Machines ........ 26 Common Application Patterns when using Windows Azure Virtual Machines ...................... 27 Application Programming Interface Support for Windows Azure Virtual Machines .............. 27 Migrating with SQL Server in Windows Azure Virtual Machines ................................................. 28 When to use SQL Server in a Windows Azure Virtual Machine ............................................ 28 Choosing between SQL Server in Windows Azure Virtual Machine vs. Windows Azure SQL Database ...................................................................................................................... 29 Migrating database schema and data to SQL Server in a Windows Azure Virtual Machine.............................................................................................................................. 30 How to prepare schema and data on–premises and upload them to an instance of SQL Server in VM ....................................................................................................................... 30 Option 1: Data-tier Applications .BACPAC or .DACPAC files ........................................... 31 Option 2. Backup and Restore ....................................................................................... 31 Option 3. Detach and Attach ......................................................................................... 32 Option 4. Other SQL Server Techniques ........................................................................ 33 How to move your database schema and data file to Windows Azure Virtual Machine ....... 33 Migrating with Windows Azure Cloud Services............................................................................... 36 Development Considerations for Windows Azure Cloud Services .............................................. 38 Creating a cloud service in Windows Azure ......................................................................... 38 Application Development in Windows Azure ....................................................................... 40 Logging, Testing, Diagnosing, and Debugging Windows Azure Applications ......................... 41 Cloud-based networking and connectivity options in Windows Azure ................................. 43 Application Deployment and Management in Windows Azure ............................................ 44 See Also .............................................................................................................................. 45 Overview of Data Management Services in Windows Azure ...................................................... 46 Windows Azure Table Service ............................................................................................. 46 Windows Azure Blob Service ..............................................................................................