快速入门:使用 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. 创建实例后,可使用它将数据从 SQL Server 迁移到 Azure SQL 数据库。After you create the instance, you can use it to migrate data from SQL Server to Azure SQL Database.

如果没有 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.

注册资源提供程序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, select All services, and then 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. 搜索“迁移”,然后选择“注册”。Search for migration, and then select Register.

    注册资源提供程序

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

  1. 选择“+创建资源”以创建 Azure 数据库迁移服务的实例。Select +Create a resource to create an instance of Azure Database Migration Service.

  2. 在市场中搜索“迁移”,选择“Azure 数据库迁移服务”,并在“Azure 数据库迁移服务”屏幕中选择“创建”。 Search the marketplace for "migration", select Azure Database Migration Service, and then on the Azure Database Migration Service screen, select Create.

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

    • 选择一个容易记住且唯一的服务名称,用于标识 Azure 数据库迁移服务的实例。Choose a Service Name that is memorable and unique to identify your instance of Azure Database Migration Service.

    • 选择要在其中创建实例的 Azure 订阅Select the Azure Subscription in which you want to create the instance.

    • 选择现有的资源组或创建一个新资源组。Select an existing Resource Group or create a new one.

    • 选择距离源或目标服务器最近的“位置”。Choose the Location that is closest to your source or target server.

    • 选择一个现有的虚拟网络或创建一个。Select an existing Virtual network or create one.

      虚拟网络为 Azure 数据库迁移服务提供了对源数据库和目标环境的访问权限。The virtual network provides Azure Database Migration Service with access to the source database and target environment.

      有关如何在 Azure 门户中创建虚拟网络的详细信息,请参阅使用 Azure 门户创建虚拟网络一文。For more information on how to create a virtual network in the Azure portal, see the article Create a virtual network using the Azure portal.

    • 对于“定价层”选择“基本: 1 vCore”。Select Basic: 1 vCore for the Pricing tier.

      创建迁移服务

  4. 选择“创建” 。Select Create.

    片刻之后,Azure 数据库迁移服务的实例即会创建并可供使用。After a few moments, your instance of Azure Database Migration service is created and ready to use. 系统显示下图所示的 Azure 数据库迁移服务:Azure Database Migration Service displays as shown in the following image:

    迁移服务已创建

清理资源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