快速入门:使用 Azure 门户创建 Azure 数据库迁移服务实例Quickstart: Create an instance of the Azure Database Migration Service by using the Azure portal

在本快速入门中,你将使用 Azure 门户创建 Azure 数据库迁移服务的实例。In this quickstart, you use the Azure portal to create an instance of Azure Database Migration Service. 创建实例后,可以使用该实例将多个数据库源的数据迁移到 Azure 数据平台,例如从 SQL Server 迁移到 Azure SQL 数据库或从 SQL Server 迁移到 Azure SQL 托管实例。After you create the instance, you can use it to migrate data from multiple database sources to Azure data platforms, such as from SQL Server to Azure SQL Database or from SQL Server to an Azure SQL Managed Instance.

如果没有 Azure 订阅,请在开始前创建一个试用帐户If you don't have an Azure subscription, create a trial account before you begin.

登录到 Azure 门户Sign in to the Azure portal

打开 Web 浏览器,导航到 Azure 门户,然后输入登录到门户所需的凭据。Open your web browser, navigate to the Azure portal, and then enter your credentials to sign in to the portal. 默认视图是服务仪表板。The default view is your service dashboard.

备注

每个订阅在每个区域最多可创建 10 个 DMS 实例。You can create up to 10 instances of DMS per subscription per region. 如果需要更多实例,请创建支持票证。If you require a greater number of instances, please create a support ticket.

注册资源提供程序Register the resource provider

在创建数据库迁移服务的第一个实例之前,请注册 Microsoft.DataMigration 资源提供程序。Register the Microsoft.DataMigration resource provider before you create your first instance of the Database Migration Service.

  1. 在 Azure 门户中,搜索并选择“订阅”。In the Azure portal, search for and select Subscriptions.

    显示门户订阅

  2. 选择要在其中创建 Azure 数据库迁移服务实例的订阅,再选择“资源提供程序”。Select the subscription in which you want to create the instance of Azure Database Migration Service, and then select Resource providers.

    显示资源提供程序

  3. 搜索迁移,然后选择 Microsoft.DataMigration 旁的“注册” 。Search for migration, and then select Register for Microsoft.DataMigration.

    注册资源提供程序

创建服务的实例Create an instance of the service

  1. 在 Azure 门户菜单或“主页”页上,选择“创建资源” 。In the Azure portal menu or on the Home page, select Create a resource. 搜索并选择“Azure 数据库迁移服务”。Search for and select Azure Database Migration Service.

    Azure 市场

  2. 在“Azure 数据库迁移服务”屏幕上,选择“创建” 。On the Azure Database Migration Service screen, select Create.

    创建 Azure 数据库迁移服务实例

  3. 在“创建迁移服务”基本信息屏幕中:On the Create Migration Service basics screen:

    • 选择订阅。Select the subscription.
    • 新建资源组或使用现有资源组。Create a new resource group or choose an existing one.
    • 指定 Azure 数据库迁移服务实例的名称。Specify a name for the instance of the Azure Database Migration Service.
    • 选择要在其中创建 Azure 数据库迁移服务实例的位置。Select the location in which you want to create the instance of Azure Database Migration Service.
    • 选择“Azure”作为服务模式。Choose Azure as the service mode.
    • 选择定价层。Select a pricing tier. 有关成本和定价层的详细信息,请参阅价格页For more information on costs and pricing tiers, see the pricing page.

    配置 Azure 数据库迁移服务实例基本信息设置

    • 选择“下一页:网络”。Select Next: Networking.
  4. 在“创建迁移服务”网络屏幕中:On the Create Migration Service networking screen:

    • 选择现有虚拟网络或新建一个。Select an existing virtual network or create a new one. 虚拟网络为 Azure 数据库迁移服务提供了对源数据库和目标环境的访问权限。The virtual network provides Azure Database Migration Service with access to the source database and target environment. 有关如何在 Azure 门户中创建虚拟网络的详细信息,请参阅使用 Azure 门户创建虚拟网络一文。For more information about how to create a virtual network in the Azure portal, see the article Create a virtual network using the Azure portal.

    配置 Azure 数据库迁移服务实例网络设置

    • 选择“查看 + 创建”以创建服务。Select Review + Create to create the service.

    • 片刻之后,Azure 数据库迁移服务的实例即会创建并可供使用:After a few moments, your instance of Azure Database Migration service is created and ready to use:

    迁移服务已创建

清理资源Clean up resources

可以通过删除 Azure 资源组来清理在本快速入门中创建的资源。You can clean up the resources created in this quickstart by deleting the Azure resource group. 若要删除资源组,请导航到所创建的 Azure 数据库迁移服务实例。To delete the resource group, navigate to the instance of the Azure Database Migration Service that you created. 选择该 资源组 的名称,然后选择“删除资源组”。Select the Resource group name, and then select Delete resource group. 此操作会删除资源组本身及其包含的所有资产。This action deletes all assets in the resource group as well as the group itself.

后续步骤Next steps