
Fabian Tech Tips

Azure Migrate: A Comprehensive Guide to Cloud Migration
Feb 10
10 min read
0
2
0
Azure Migrate: A Comprehensive Guide to Cloud Migration
Azure Migrate is a valuable tool within the Azure cloud platform designed to streamline the process of migrating on-premises workloads to Azure. It offers a centralized hub with a comprehensive suite of tools and services to assess, migrate, and modernize servers, databases, web applications, and virtual desktops. This guide explores the features of Azure Migrate, examines its use cases, outlines best practices for migration, and provides troubleshooting advice for Windows and Linux servers.
What is Azure Migrate?
Azure Migrate serves as a central platform to manage your cloud migration journey. It offers a unified migration hub, a single portal to track and manage your migration progress, and integrated tools, including a range of tools for discovery, assessment, and migration from both Microsoft and third-party vendors. Azure Migrate supports a wide variety of workloads, including servers, databases, web apps, and virtual desktops. It is cost-effective, free for server migration for the first 180 days, with potential cost savings through Azure Hybrid Benefit1.
Note: Classic Azure Migrate was retired in February 2024. After this date, the classic version is no longer supported, and the inventory metadata in classic projects has been deleted2.
Azure Migrate Components
Azure Migrate utilizes a lightweight appliance for the discovery and assessment of on-premises VMware VMs and Hyper-V VMs. This appliance is used by Azure Migrate Server Assessment and the Azure Migrate: Server Migration tool for agentless migration. The appliance continuously discovers server metadata and performance data for assessment and migration purposes3.
Azure Migrate offers two primary tools:
Azure Migrate: Server Assessment tool: This tool assesses on-premises VMware VMs and Hyper-V VMs for migration to Azure. It also allows for assessment using other Azure services and ISV tools3.
Azure Migrate: Server Migration tool: This tool facilitates the migration of on-premises VMware VMs and Hyper-V VMs to Azure. It also supports the migration of physical servers, other virtualized servers, and private/public cloud VMs3.
Azure Migrate for Government Clouds
Azure Migrate supports deployments in Azure Government. You can discover and assess VMware VMs, Hyper-V VMs, and physical servers. You can also migrate VMware VMs, Hyper-V VMs, and physical servers to Azure. For VMware migration, you can use agentless or agent-based migration. However, agent-based dependency analysis is not supported in Azure Government. Features in preview, such as agentless dependency analysis and application discovery, are supported in Azure Government3.
Getting Started with Azure Migrate
Before you begin migrating your workloads, you need to create an Azure Migrate project. Here's how:
Prerequisites:
An Azure account with the necessary permissions (Contributor or Owner)2.
Steps:
In the Azure portal, search for and select Azure Migrate.
Under Servers, databases and web apps, select Create project.
Select your Azure subscription and resource group. Create a resource group if you don't have one.
Specify the project name and geography. The geography is used to store metadata gathered from on-premises servers.
Select Create.
Creating a Project in a Specific Region:
If you want to create the project within a specific Azure region, use the following API command:
PUT /subscriptions/<subid>/resourceGroups/<rg>/providers/Microsoft.Migrate/MigrateProjects/<mymigrateprojectname>?api-version=2019-10-01
2
Configuring the Azure Migrate Appliance
After creating your project, you need to deploy and configure the Azure Migrate appliance. Here's how:
Enable public cloud access: Add a public IP address to the appliance to allow internet access4.
Register the appliance: Use a secure key from your Azure project to register the appliance4.
Supported Operating Systems
Azure Migrate supports a wide range of operating systems for migration. However, it's crucial to ensure that your source operating system is compatible with the target Azure environment. Refer to the Azure Migrate documentation for a complete list of supported operating systems and versions.
Note: If the source OS version and the OS version to be upgraded are the same, the server migrates without an OS upgrade with the status "Completed with errors". For example, if the source OS version is Windows Server 2019 and the upgrade option selected is Windows Server 2019, the server is migrated without an OS upgrade5.
Use Case Scenarios
Azure Migrate caters to a variety of migration scenarios. Here's a table summarizing the different use cases:
Source Environment | Migration Target | Azure Migrate Tool/Service |
VMware VMs | Azure VMs | Azure Migrate: Server Migration (agentless or agent-based) |
Hyper-V VMs | Azure VMs | Azure Migrate: Server Migration |
Physical Servers | Azure VMs | Azure Migrate: Server Migration |
Cloud VMs (AWS, GCP) | Azure VMs | Azure Migrate: Server Migration |
On-premises databases | Azure SQL Database, Azure SQL Managed Instance, SQL Server on Azure VMs | Azure Migrate: Database Migration, Azure Database Migration Service (DMS) |
.NET web apps | Azure App Service, Azure Kubernetes Service (AKS) | Azure Migrate: App Containerization |
Virtual desktop infrastructure (VDI) | Azure Virtual Desktop | Azure Migrate |
Building a Business Case with Azure Migrate
Azure Migrate can assist in building a business case for cloud migration. It provides tools to estimate costs, identify potential savings, and create a compelling justification for moving to Azure9.
Migration Strategies for Business Case Creation:
Azure recommended to minimize cost: This strategy provides the most cost-efficient and compatible target recommendations across Azure IaaS and PaaS targets.
Migrate to all IaaS: This strategy offers a quick lift-and-shift recommendation to Azure IaaS.
Modernize to PaaS: This strategy prioritizes PaaS targets for workloads best suited for PaaS.
Discovery Sources for Business Case Creation:
Azure Migrate appliance: Provides accurate data insights collected by the appliance.
.CSV file import: Allows for a quick business case using server inventory data imported from a CSV file.
Modernizing Applications with Azure Migrate
Azure Migrate plays a crucial role in application modernization. It helps assess and modernize applications for the cloud, offering options for containerization, replatforming to PaaS services, and leveraging Azure services like Azure App Service and Azure Kubernetes Service6.
For example, Azure Migrate can help you:
Containerize Java web apps and migrate to Azure Kubernetes Service (AKS). 6
Modernize ASP.NET web applications to Azure App Service. 6
Best Practices for Azure Migrate
To ensure a smooth and successful migration, consider the following best practices:
Define Clear Objectives: Clearly define your business goals and objectives for migration. This could include cost savings, improved performance, enhanced security, or increased scalability10.
Assess Your Environment: Conduct a thorough assessment of your existing IT infrastructure, including applications, databases, and workloads. Evaluate their cloud compatibility and any dependencies they have11.
Dependency Mapping: Dependency mapping is crucial for identifying the interconnections between applications and services. It helps understand which components rely on each other, ensuring that essential connections are not broken during migration11.
Choose the Right Migration Strategy: Select the appropriate migration approach based on your business objectives, budget, and timeline. Common strategies include rehosting (lift-and-shift), refactoring, rearchitecting, or rebuilding11.
Plan Your Migration: Create a detailed migration roadmap with timelines, resource allocation, and contingency plans. Consider dependencies between applications and plan the order of migration accordingly11.
Prioritize Workloads: Prioritize workloads based on business value, complexity, and dependencies. Start with low-risk, low-complexity workloads to build confidence and gain experience14.
Test Thoroughly: Conduct rigorous testing in a staging environment before migrating production workloads. This will help you identify any potential problems and make any necessary adjustments to your migration plan13.
Optimize and Monitor: Continuously monitor and optimize your Azure environment for performance, cost, and security after the migration15.
Benefits of Using Azure Migrate
Azure Migrate offers several advantages over alternative migration methods:
Simplified migration planning: Azure Migrate provides a centralized platform for planning and managing your migration, simplifying the process and reducing complexity.
Reduced downtime: Azure Migrate offers tools and features to minimize downtime during migration, ensuring business continuity.
Cost optimization: Azure Migrate helps you right-size your Azure resources and optimize costs, maximizing your return on investment.
Improved security: Azure Migrate integrates with Azure security features to enhance the security of your migrated workloads.
4
Troubleshooting Windows Servers
During the migration of Windows servers, you might encounter various issues. Here are some common troubleshooting tips:
Performance Data Collection
Issue: Performance counters are missing from the assessment.
Solution: Ensure the server is powered on for the duration of the assessment. For Hyper-V servers, check if dynamic memory is enabled. Ensure that outbound connections on ports 443 (HTTPS) are allowed16.
Upgrade Failures
Issue: In-place OS upgrade fails during migration.
Solution: Verify that the operating system disk has enough free space (minimum 32 GB). Select a different target Azure VM SKU that can attach more data disks if needed. Ensure that the source and target OS versions are not the same5.
Network Connectivity
Issue: Migration fails for private endpoint enabled Azure Migrate projects.
Solution: Add the target virtual network to the firewall in the storage account used for replicating VMs5.
Appliance Diagnostics
Issue: Problems with appliance configuration or ongoing Migrate operations.
Solution: Utilize the "Diagnose and solve" feature on the Azure Migrate appliance to identify and resolve issues17.
Other Common Issues
Error Code 8036: Azure Migrate service cannot connect to the specified server.
Solution: Ensure the server meets prerequisites and port access requirements. Add the IP addresses of the discovered servers to the WinRM TrustedHosts list on the appliance. Ensure the correct authentication method is chosen18.
Error Code 8037: Azure Migrate service cannot connect to the specified server.
Solution: Ensure you have provided the correct credentials for the server on the appliance. If credentials are incorrect or expired, edit them on the appliance and revalidate18.
Error Code 8070: Azure Migrate service cannot gather performance data from the specified server.
Solution: Ensure the guest credentials provided on the appliance have the required permissions18.
Error Code 8072: Azure Migrate service cannot gather performance data from the specified server.
Solution: Ensure the impacted server has the latest kernel and OS updates installed. Ensure there is no network latency between the appliance and the server18.
Error Code 9002: Azure Migrate service cannot connect to the specified server.
Solution: Ensure WinRM is running and the server is reachable from the appliance VM. Ensure the server is switched on18.
Error Code 9010: The server is powered off.
Solution: Ensure that the server is in a running state18.
Troubleshooting Linux Servers
Migrating Linux servers can also present unique challenges. Here's how to troubleshoot common issues:
Discovery Errors
Issue: Servers are not discovered in the Azure Migrate project.
Solution: Verify the credentials provided for the vCenter server are correct. Ensure the vCenter account has the necessary permissions and access to at least one server. Check if the vCenter account has access granted at the vCenter VM folder level19.
Software Inventory
Issue: Unable to export software inventory data.
Solution: Ensure that the impacted server has the latest kernel and OS updates installed. Ensure there is no network latency between the appliance and the server19.
WMI Access
Issue: Error encountered while collecting WMI data.
Solution: Grant execute permissions to the relevant usernames or groups on the server reporting the error19.
Credential Errors
Issue: Credential errors occur during server discovery or assessment.
Solution: Make sure the username of the server credentials does not have invalid XML characters and is in the username@domain.com format (UPN format)20.
Common Challenges and Solutions
Organizations often face various challenges during Azure migration. Here are some common ones and their solutions:
Assessing Workload Suitability: Identifying which workloads are suitable for migration can be challenging. Conduct a thorough workload assessment to determine compatibility, dependencies, and cost-effectiveness. Consider modernization options for legacy applications15.
Data Migration Complexity: Data migration can be complex and time-consuming. Plan data migration carefully, considering options like Azure Data Factory and Azure Database Migration Service. Implement data validation and testing to ensure data integrity15.
Application Compatibility: Some applications may have compatibility issues with Azure. Assess application compatibility early in the process. Explore modernization options, containerization, or Azure App Service for hosting15.
Security and Compliance: Ensuring security and compliance in Azure is crucial. Implement Azure's security features, including Azure Security Center and Azure Policy. Conduct regular security audits and compliance checks15.
Performance Optimization: Achieving optimal performance in Azure can be challenging. Continuously monitor and optimize resources using Azure Monitor. Implement auto-scaling and load balancing where appropriate15.
Understanding Azure Differences: Migrating to the cloud involves becoming familiar with a new environment. Understand the differences between applications hosted in the cloud versus local deployments21.
Establishing a Disaster Recovery Plan: Having a reliable disaster recovery plan is critical in the cloud. Consider cloud-specific disasters and plan accordingly21.
Cost Management: Cloud costs can be unpredictable. Select a suitable migration strategy and leverage Azure Cost Management tools to monitor and optimize expenditures21.
Customer Success Stories
Many organizations have successfully migrated to Azure using Azure Migrate:
XYZ Data: Improved reliability, scalability, and security while reducing costs by 30% by migrating their core applications, data storage, and disaster recovery systems to Azure22.
Cloud Cultures Season 3: Leaders from 12 different countries share how they are using Azure to tackle complex challenges in various industries23.
UC Berkeley: Enhanced computer science education and prepared students for future careers by utilizing Azure OpenAI Service23.
Conclusion
Azure Migrate is a powerful and comprehensive platform for migrating on-premises workloads to Azure. By understanding its capabilities, following best practices, and utilizing the troubleshooting tips provided, you can ensure a smooth and successful migration.
Remember to:
Carefully plan your migration, including assessing your environment, defining objectives, and choosing the right migration strategy.
Thoroughly test your applications and workloads in a staging environment before migrating to production.
Continuously monitor and optimize your Azure environment for performance, cost, and security.
Refer to the troubleshooting tips provided for Windows and Linux servers to address common migration issues.
Azure Migrate offers a range of tools and resources to support your cloud adoption journey. By leveraging these resources and adhering to best practices, you can successfully migrate your workloads to Azure and realize the full benefits of the cloud.
Works cited
1. Azure Migration Services: Guide, Instructions, Examples - OpsRamp, accessed on February 10, 2025, https://www.opsramp.com/guides/azure-best-practices/azure-migration-services/
2. Create and manage projects - Azure Migrate | Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/create-manage-projects
3. What's new in Azure Migrate, accessed on February 10, 2025, https://docs.azure.cn/en-us/migrate/whats-new
4. Azure Migrate: A 'Suite' Ride to the Cloud - AHEAD, accessed on February 10, 2025, https://www.ahead.com/resources/azure-migrate-a-suite-ride-to-the-cloud/
5. Troubleshoot Windows upgrade issues - Azure Migrate | Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/troubleshoot-upgrade
6. Azure Migrate | Microsoft Azure, accessed on February 10, 2025, https://azure.microsoft.com/en-us/products/azure-migrate
7. Review product migration scenarios - Cloud Adoption Framework - Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/migrate/scenarios
8. Azure Database Migration Service documentation - Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/dms/
9. Business case in Azure Migrate - Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/concepts-business-case-calculation
10. Azure Migration Checklist: 14 Crucial Considerations - Gibraltar Solutions, accessed on February 10, 2025, https://gibraltarsolutions.com/blog/azure-migration-checklist/
11. Azure Cloud Migration Strategy: 5 Steps and Best Practices - Cloud4C, accessed on February 10, 2025, https://www.cloud4c.com/blogs/5-best-practices-to-disruption-free-azure-migration
12. Azure Migration Strategy | Key Steps and Best Practices - Microtime Computers, accessed on February 10, 2025, https://microtime.com/azure-migration-strategy/
13. Azure Migrate: Explained Types, Strategy & Steps - K21Academy, accessed on February 10, 2025, https://k21academy.com/microsoft-azure/architect/azure-migrate/
14. Build a migration plan with Azure Migrate - Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/concepts-migration-planning
15. How to Migrate to Azure: Common Challenges and How to Solve Them - JourneyTeam, accessed on February 10, 2025, https://www.journeyteam.com/resources/blog/how-to-migrate-to-azure-common-challenges-and-how-to-solve-them/
16. Troubleshoot assessments FAQ in Azure Migrate, accessed on February 10, 2025, https://docs.azure.cn/en-us/migrate/troubleshoot-assessment-faq
17. Troubleshoot Azure Migrate appliance diagnostic - Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/troubleshoot-appliance-diagnostic
18. Common issues in Azure Migrate assessments - Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/troubleshoot-assessment
19. azure-docs/articles/migrate/troubleshoot-discovery.md at main - GitHub, accessed on February 10, 2025, https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/migrate/troubleshoot-discovery.md
20. Troubleshoot ongoing server discovery, software inventory, and SQL discovery - Azure Migrate | Microsoft Learn, accessed on February 10, 2025, https://learn.microsoft.com/en-us/azure/migrate/troubleshoot-discovery
21. Azure Cloud Migration Challenges and Solutions - Star Knowledge, accessed on February 10, 2025, https://star-knowledge.com/blog/azure-cloud-migration-challenges-and-solutions/
22. Azure Migration Case Study | XYZ Data's Success Story - Cloudworks, accessed on February 10, 2025, https://cloudworks.co.uk/case-studies/azure-migration
23. Customer stories | Microsoft Azure Blog, accessed on February 10, 2025, https://azure.microsoft.com/en-us/blog/content-type/customer-stories/