您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

部署工作负载和资产(基础结构、应用和数据)Deploy workloads and assets (infrastructure, apps, and data)

在旅程的此阶段,使用评估阶段的输出来启动环境迁移。In this phase of the journey, you use the output of the assessment phase to initiate the migration of the environment. 本指南帮助确定用于达到已完成状态的适当工具。This guide helps identify the appropriate tools to reach a completed state. 你将浏览本机工具、第三方工具和项目管理工具。You'll explore native tools, third-party tools, and project management tools.

以下各部分介绍了可用于执行或协助迁移的本机 Azure 工具。The following sections describe the native Azure tools available to perform or assist with migration. 若要了解如何选择适当工具来支持迁移工作,请参阅云采用框架的迁移工具决策指南For information on choosing the right tools to support your migration efforts, see the Cloud Adoption Framework's migration tools decision guide.

Azure MigrateAzure Migrate

Azure Migrate 提供统一且可扩展的迁移体验。Azure Migrate delivers a unified and extensible migration experience. Azure Migrate 提供了一站式专用体验,旨在跨评估和 Azure 迁移阶段跟踪迁移历程。Azure Migrate provides a one-stop, dedicated experience to track your migration journey across the phases of assessment and migration to Azure. 借助它,可以使用选定工具,并跨这些工具跟踪迁移进度。It provides you the option to use the tools of your choice and track the progress of migration across these tools.

Azure Migrate 是一个集中式中心,用于评估本地服务器、基础结构、应用程序和数据并将其迁移到 Azure。Azure Migrate is a centralized hub to assess and migrate on-premises servers, infrastructure, applications, and data to Azure. 它提供了以下功能:It provides the following functionality:

  • 具有评估、迁移和进度跟踪功能的同一平台。Unified platform with assessment, migration, and progress tracking.
  • 增强型评估和迁移功能:Enhanced assessment and migration capabilities:
    • 评估包含 SQL Server 实例的本地服务器,并将其迁移到 Azure 虚拟机或 Azure VMware 解决方案 (AVS)(预览版)。Assess on-premises servers including SQL Server instances and migrate them to Azure virtual machines or Azure VMware Solution (AVS) (Preview).
    • 将 VMware 虚拟机无代理迁移到 Azure。Agentless migration of VMware virtual machines to Azure.
    • 评估本地数据库,并将其迁移到 Azure SQL 数据库或 SQL 托管实例。Assess on-premises databases and migrate them to Azure SQL Database or to SQL Managed Instance.
    • 使用 Azure 应用服务迁移助手评估本地 Web 应用程序并将其迁移到 Azure 应用服务。Assess on-premises web applications and migrate them to Azure App Service by using the Azure App Service Migration Assistant.
    • 评估本地虚拟桌面基础结构 (VDI) 并将其迁移到 Azure 中的 Windows 虚拟桌面。Assess your on-premises virtual desktop infrastructure (VDI) and migrate it to Windows Virtual Desktop in Azure.
    • 使用 Azure Data Box 产品快速且经济高效地将大量数据迁移到 Azure。Migrate large amounts of data to Azure quickly and cost-effectively using Azure Data Box products.
  • 采用 ISV 集成的可扩展方法(如 Cloudamize)。Extensible approach with ISV integration (such as Cloudamize).

要使用 Azure Migrate 执行迁移,请按照以下步骤操作:To perform a migration using Azure Migrate, follow these steps:

  1. 在“所有服务”下,搜索 Azure Migrate。Search for Azure Migrate under All services. 选择“Azure Migrate”,以便继续操作。Select Azure Migrate to continue.
    1. 在“概述”中,选择“发现、评估和迁移” 。In Overview, select Discover, assess and migrate.
  2. 选择“添加工具”。Select Add tools.
  3. 在“项目”中,选择你的 Azure 订阅,并创建一个资源组(如果没有)。In Project, select your Azure subscription, then create a resource group if you don't have one.
  4. 在“项目详细信息”中,指定项目名称以及要创建项目的地理位置,然后选择“创建” 。In Project Details, specify the project name and geography where you want to create the project, then select Create.
  5. 创建项目后,可在项目中看到工具,用户可以开始发现。After creating the project, tools are visible in project and user can start with Discovery.

备注

有关特定于你的应用场景的指南,请参阅教程和 Azure Migrate 文档For guidance specific to your scenario refer to the tutorials and Azure Migrate documentation.

了解更多Learn more

Azure 数据库迁移服务Azure Database Migration Service

Azure 数据库迁移服务是一项完全托管服务,旨在实现从多个数据库源到 Azure 数据平台的无缝迁移,并最大程度减少停机时间(联机迁移)。Azure Database Migration Service is a fully managed service that enables seamless migrations from multiple database sources to Azure data platforms, with minimal downtime (online migrations). 数据库迁移服务会执行所有必需步骤。Database Migration Service performs all of the required steps. 可在确保迁移过程采用 Microsoft 推荐的最佳做法的情况下启动迁移项目。You can initiate your migration projects assured that the process takes advantage of best practices recommended by Microsoft.

创建 Azure 数据库迁移服务实例Create an Azure Database Migration Service instance

如果是第一次使用 Azure 数据库迁移服务,需要为 Azure 订阅注册资源提供程序:If this is the first time using Azure Database Migration Service, you need to register the resource provider for your Azure subscription:

  1. 选择“所有服务” > “订阅”,然后选择目标订阅 。Select All services > Subscriptions, and choose the target subscription.
  2. 选择“资源提供程序”。Select Resource providers.
  3. 搜索“migration”,再选择“Microsoft.DataMigration”右侧的“注册”。Search for migration, and then to the right of Microsoft.DataMigration, select Register.

注册资源提供程序后,可以创建 Azure 数据库迁移服务实例。After you register the resource provider, you can create an instance of Azure Database Migration Service.

  1. 选择“+创建资源”,然后在市场中搜索“Azure 数据库迁移服务” 。Select + Create a resource and search the marketplace for Azure Database Migration Service.
  2. 完成“创建迁移服务”向导,然后选择“创建”。Complete the Create Migration Service wizard, then select Create.

此服务现已准备就绪,可以将受支持的源数据库迁移到 SQL Server、MySQL、PostgreSQL 或 MongoDB 等目标平台。The service is now ready to migrate the supported source databases to target platforms such as SQL Server, MySQL, PostgreSQL, or MongoDB.

Azure 应用服务迁移助手Azure App Service Migration Assistant

Azure 应用服务迁移助手是功能更丰富的应用程序套件的一部分,这些应用可帮助组织过渡到云端。The Azure App Service Migration Assistant is part of a larger suite of applications that help organizations with their transition to the cloud. 迁移助手提供了与向导类似的引导式体验,它执行两项任务:The Migration Assistant provides a guided, wizard-like user experience that performs two tasks:

  1. 它会对 Windows Server 上安装的特定 Web 应用运行迁移前兼容性检查来进行评估,确定能否在不修改该 Web 应用的情况下迁移到 Azure 应用程序。It performs an assessment of a specific web app installed on Windows Server by running pre-migration compatibility checks on the web app to determine whether a migration to Azure App Service is possible without modification to the web app.
  2. 如果评估证明 Web 应用可以迁移,则迁移助手执行迁移。If the assessment proves that the web app can be migrated, the Migration Assistant performs the migration. 你需要向迁移助手提供对 Azure 帐户的访问权限、选择要使用的资源组并选择 Web 应用的名称以及其他详细信息。You'll need to give the Migration Assistant access to your Azure account, select which resource group you want to use, and select a name for the web app, among other details.

或者,迁移助手会生成一个 Azure 资源管理器模板;通过它,你能够以更自动化且可重复的方式迁移 Web 应用程序。Alternatively, the Migration Assistant generates an Azure Resource Manager template that you can use to migrate the web application in a more automated and repeatable way.

将 Web 应用迁移到 Azure 应用服务Migrate a web app to Azure App Service

迁移助手首先从你那里收集有关 Azure 帐户的关键详细信息,然后执行迁移。The Migration Assistant begins the migration process by collecting key details from you about your Azure account and then performs the migration.

首先,你将登录到 Azure 帐户,并使用唯一代码将迁移助手会话与帐户关联。First, you'll sign in to your Azure account and associate your Migration Assistant session with your account by using a unique code. 接下来,你将选择订阅、资源组和网站的域名。Next, you'll choose the subscription, the resource group, and the website's domain name. 你可选择创建一个新的 Azure 应用服务计划来托管 Web 应用,也可选择现有计划。You can choose to create a new Azure App Service plan to host the web app or select an existing plan. 所作选择会影响托管 Web 应用的地理区域。The choice affects the geographical region from which your web app is hosted. 你还将有机会将此迁移工作与现有的 Azure 迁移项目关联。You'll also have a chance to associate this migration effort with an existing Azure Migrate project. 最后,你可选择跳过数据库设置,或者选择设置混合连接来实现数据库连接。Finally, you can either choose to skip database setup or choose to set up a hybrid connection to enable a database connection.

迁移助手在收集并验证你选择的内容后,会在选定的区域和资源组中创建所需的 Azure 应用服务资源。After the Migration Assistant collects and verifies your selections, it creates the needed Azure App Service resources in the selected region and resource group. 它会将 Web 应用的源文件打包,并使用 Azure 应用服务部署 API 来部署它们。It zips up the web app's source files and uses the Azure App Service deployment API to deploy them. 最后,它执行可选的迁移步骤,例如帮助你设置混合连接。Finally, it performs optional migration steps, like helping you set up a hybrid connection.

成功迁移后,你需要执行任何迁移后任务。After a successful migration, you'll need to perform any post-migration tasks. 这些情况可能包括:These might include:

  • 手动将 web.config 文件中的应用程序设置和连接字符串移动到 Azure 应用服务。Manually moving application settings and connection strings in your web.config file to Azure App Service.
  • 将数据从本地 SQL Server 实例迁移到 Azure SQL 数据库实例。Migrating data from an on-premises SQL Server instance to an Azure SQL Database instance.
  • 设置 SSL 证书。Setting up an SSL certificate.
  • 设置自定义域名。Setting up custom domain names.
  • 在 Azure Active Directory 中设置权限。Setting up permissions in Azure Active Directory.

你可能还要确定更改 Azure 应用服务托管计划和其他设置(例如自动缩放和部署槽位)。You might also decide to change the Azure App Service hosting plan and other settings like autoscaling and deployment slots.

有关详情,请参阅:For more information, see:

将 ASP.NET 应用程序迁移到 AzureMigrate ASP.NET applications to Azure

数据迁移助手Data Migration Assistant

数据迁移助手 (DMA) 可以检测可能会影响新版 SQL Server 或 Azure SQL 数据库中数据库功能的兼容性问题,有助于你升级到新式数据平台。Data Migration Assistant (DMA) helps you upgrade to a modern data platform by detecting compatibility issues that can affect database functionality in your new version of SQL Server or Azure SQL Database. DMA 为目标环境提供了性能和可靠性改进建议,并可便于将架构、数据和非包含对象从源服务器迁移到目标服务器。DMA recommends performance and reliability improvements for your target environment and allows you to move your schema, data, and uncontained objects from your source server to your target server.

数据迁移助手与 Azure Migrate 集成,使你可以跟踪 Azure Migrate 面板中的所有评估进度。Data Migration Assistant is integrated with Azure Migrate, allowing you to track all assessment progress in the Azure Migrate dashboard. 通过添加 Azure Migrate 数据库评估工具从 Azure Migrate 启动 DMA,并通过选择 DMA 中的“上传到 Azure Migrate”按钮将数据库评估添加到 Azure Migrate。Launch DMA from Azure Migrate by adding the Azure Migrate: database assessment tool, and add your database assessment to Azure Migrate by selecting the Upload to Azure Migrate button in DMA.

备注

对于大型迁移(就数据库数量和大小而言),建议使用可大规模迁移数据库的 Azure 数据库迁移服务。For large migrations (in terms of number and size of databases), we recommend that you use Azure Database Migration Service, which can migrate databases at scale.

按照以下步骤开始使用数据迁移助手:Start using Data Migration Assistant with these steps:

  1. Microsoft 下载中心下载并安装数据迁移助手。Download and install Data Migration Assistant from the Microsoft download center.
  2. 选择“新建(+)”图标,然后选择“评估”项目类型,以创建评估 。Create an assessment by selecting the New (+) icon, then select the Assessment project type.
  3. 设置源和目标服务器类型,然后选择“创建”。Set the source and target server type, then select Create.
  4. 根据需要,配置评估选项(建议全部使用默认值)。Configure the assessment options as required (recommend all defaults).
  5. 添加要评估的数据库。Add the databases to assess.
  6. 单击“下一步”,以开始评估。Select Next to start the assessment.
  7. 在数据迁移助手中查看结果。View results in Data Migration Assistant.

对于企业,建议遵循使用 DMA 评估企业和合并评估报告中所述的方法,以评估多个服务器、合并报告,并使用所提供的 Power BI 报告来分析结果。For an enterprise, we recommend following the approach outlined in Assess an enterprise and consolidate assessment reports with DMA to assess multiple servers, combine the reports, and then use provided Power BI reports to analyze the results.

有关详细信息(包括详细使用步骤),请参阅:For more information, including detailed usage steps, see:

SQL Server Migration AssistantSQL Server Migration Assistant

Microsoft SQL Server 迁移助手 (SSMA) 是一项旨在将数据库从 Microsoft Access、DB2、MySQL、Oracle 和 SAP ASE 自动迁移到 SQL Server 的工具。Microsoft SQL Server Migration Assistant (SSMA) is a tool designed to automate database migration to SQL Server from Microsoft access, DB2, MySQL, Oracle, and SAP ASE. 一般概念是使用这些工具进行收集、评估和审阅,但由于每个源系统的过程存在差异,建议审阅详细的 SQL Server 迁移助手文档The general concept is to collect, assess, and then review with these tools, however, due to the variances in the process for each of the source systems we recommend reviewing the detailed SQL Server Migration Assistant documentation.

有关详细信息,请参阅:For more information, see:

数据库实验助手Database Experimentation Assistant

数据库实验助手 (DEA) 是一种新的 A/B 测试解决方案,用于 SQL Server 升级。Database Experimentation Assistant (DEA) is a new A/B testing solution for SQL Server upgrades. 它有助于评估 SQL 目标版本是否可用于给定工作负荷。It will assist in evaluating a targeted version of SQL for a given workload. 从旧版 SQL Server(SQL Server 2005 及更高版本)升级到任何新版 SQL Server 的客户,都可以使用这些分析指标。Customers who are upgrading from previous SQL Server versions (SQL Server 2005 and above) to any new version of the SQL Server can use these analysis metrics.

数据库实验助手包含以下工作流活动:The Database Experimentation Assistant contains the following workflow activities:

  • 捕获: SQL Server A/B 测试的第一步是在源服务器上捕获跟踪。Capture: The first step of SQL Server a/B testing is to capture a trace on your source server. 源服务器通常是生产服务器。The source server usually is the production server.
  • 重播: SQL Server A/B 测试的第二步是重播已捕获到目标服务器的跟踪文件。Replay: The second step of SQL Server a/B testing is to replay the trace file that was captured to your target servers. 然后,从重播中收集大量跟踪,以进行分析。Then, collect extensive traces from the replays for analysis.
  • 分析: 最后一步是,使用重播跟踪生成分析报告。Analysis: The final step is to generate an analysis report by using the replay traces. 分析报告可有助于深入了解建议的变更对性能产生的影响。The analysis report can help you gain insight about the performance implications of the proposed change.

有关详细信息,请参阅:For more information, see:

Azure Cosmos DB 数据迁移工具Azure Cosmos DB data migration tool

Azure Cosmos DB 数据迁移工具可将数据从各种源导入到 Azure Cosmos DB 集合和表中。Azure Cosmos DB data migration tool can import data from various sources into Azure Cosmos DB collections and tables. 可从 JSON 文件、CSV 文件、SQL、MongoDB、Azure 表存储、Amazon DynamoDB 甚至 Azure Cosmos DB SQL API 集合导入。You can import from JSON files, CSV files, SQL, MongoDB, Azure Table Storage, Amazon DynamoDB, and even Azure Cosmos DB SQL API collections. 还可在从单个分区集合迁移到 SQL API 的多分区集合时使用数据迁移工具。The data migration tool can also be used when migrating from a single partition collection to a multipartition collection for the SQL API.

有关详细信息,请参阅:For more information, see: