You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/dms/tutorial-sql-server-managed-instance-online.md
+30-25Lines changed: 30 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ ms.service: dms
10
10
ms.workload: data-services
11
11
ms.custom: mvc, tutorial
12
12
ms.topic: article
13
-
ms.date: 06/14/2019
13
+
ms.date: 10/18/2019
14
14
---
15
15
16
16
# Tutorial: Migrate SQL Server to an Azure SQL Database managed instance online using DMS
17
17
18
18
You can use Azure Database Migration Service to migrate the databases from an on-premises SQL Server instance to an [Azure SQL Database managed instance](../sql-database/sql-database-managed-instance.md) with minimal downtime. For additional methods that may require some manual effort, see the article [SQL Server instance migration to Azure SQL Database managed instance](../sql-database/sql-database-managed-instance-migrate.md).
19
19
20
-
In this tutorial, you migrate the **Adventureworks2012** database from an on-premises instance of SQL Server to an Azure SQL Database managed instance with minimal downtime by using Azure Database Migration Service.
20
+
In this tutorial, you migrate the **Adventureworks2012** database from an on-premises instance of SQL Server to a SQL Database managed instance with minimal downtime by using Azure Database Migration Service.
21
21
22
22
In this tutorial, you learn how to:
23
23
> [!div class="checklist"]
@@ -28,24 +28,24 @@ In this tutorial, you learn how to:
28
28
> * Cutover the migration when you are ready.
29
29
30
30
> [!IMPORTANT]
31
-
> For online migrations from SQL Server to an Azure SQL Database managed instance using Azure Database Migration Service, you must provide the full database backup and subsequent log backups in the SMB network share that the service can use to migrate your databases. Azure Database Migration Service does not initiate any backups, but rather uses existing backups, which you may already have as part of your disaster recovery plan, for the migration.
31
+
> For online migrations from SQL Server to a SQL Database managed instance using Azure Database Migration Service, you must provide the full database backup and subsequent log backups in the SMB network share that the service can use to migrate your databases. Azure Database Migration Service does not initiate any backups, but rather uses existing backups, which you may already have as part of your disaster recovery plan, for the migration.
32
32
> Be sure that you take [backups using the WITH CHECKSUM option](https://docs.microsoft.com/sql/relational-databases/backup-restore/enable-or-disable-backup-checksums-during-backup-or-restore-sql-server?view=sql-server-2017). In addition, make sure not to append multiple backups (i.e. full and t-log) into a single backup media; take each backup on a separate backup file.
33
33
34
34
> [!NOTE]
35
-
> Using the Azure Database Migration Service to perform an online migration requires creating an instance based on the Premium pricing tier.
35
+
> Using Azure Database Migration Service to perform an online migration requires creating an instance based on the Premium pricing tier.
36
36
37
37
> [!IMPORTANT]
38
-
> For an optimal migration experience, Microsoft recommends creating an instance of the Azure Database Migration Service in the same Azure region as the target database. Moving data across regions or geographies can slow down the migration process and introduce errors.
38
+
> For an optimal migration experience, Microsoft recommends creating an instance of Azure Database Migration Service in the same Azure region as the target database. Moving data across regions or geographies can slow down the migration process and introduce errors.
This article describes an online migration from SQL Server to an Azure SQL Database managed instance. For an offline migration, see [Migrate SQL Server to an Azure SQL Database managed instance offline using DMS](tutorial-sql-server-to-managed-instance.md).
42
+
This article describes an online migration from SQL Server to a SQL Database managed instance. For an offline migration, see [Migrate SQL Server to an Azure SQL Database managed instance offline using DMS](tutorial-sql-server-to-managed-instance.md).
43
43
44
44
## Prerequisites
45
45
46
46
To complete this tutorial, you need to:
47
47
48
-
* Create an Azure Virtual Network (VNet) for the Azure Database Migration Service by using the Azure Resource Manager deployment model, which provides site-to-site connectivity to your on-premises source servers by using either [ExpressRoute](https://docs.microsoft.com/azure/expressroute/expressroute-introduction) or [VPN](https://docs.microsoft.com/azure/vpn-gateway/vpn-gateway-about-vpngateways). [Learn network topologies for Azure SQL Database managed instance migrations using the Azure Database Migration Service](https://aka.ms/dmsnetworkformi). For more information about creating a VNet, see the [Virtual Network Documentation](https://docs.microsoft.com/azure/virtual-network/), and especially the quickstart articles with step-by-step details.
48
+
* Create an Azure Virtual Network (VNet) for Azure Database Migration Service by using the Azure Resource Manager deployment model, which provides site-to-site connectivity to your on-premises source servers by using either [ExpressRoute](https://docs.microsoft.com/azure/expressroute/expressroute-introduction) or [VPN](https://docs.microsoft.com/azure/vpn-gateway/vpn-gateway-about-vpngateways). [Learn network topologies for Azure SQL Database managed instance migrations using the Azure Database Migration Service](https://aka.ms/dmsnetworkformi). For more information about creating a VNet, see the [Virtual Network Documentation](https://docs.microsoft.com/azure/virtual-network/), and especially the quickstart articles with step-by-step details.
49
49
50
50
> [!NOTE]
51
51
> During VNet setup, if you use ExpressRoute with network peering to Microsoft, add the following service [endpoints](https://docs.microsoft.com/azure/virtual-network/virtual-network-service-endpoints-overview) to the subnet in which the service will be provisioned:
@@ -56,36 +56,41 @@ To complete this tutorial, you need to:
56
56
>
57
57
> This configuration is necessary because the Azure Database Migration Service lacks internet connectivity.
58
58
59
+
> [!IMPORTANT]
60
+
> Regarding the storage account used as part of the migration, you must either:
61
+
> * Choose to allow all network to access the storage account.
62
+
> * Set up ACLs for the VNet. For more information, see the article [Configure Azure Storage firewalls and virtual networks](https://docs.microsoft.com/azure/storage/common/storage-network-security).
63
+
59
64
* Ensure that your VNet Network Security Group rules don't block the following inbound communication ports to Azure Database Migration Service: 443, 53, 9354, 445, 12000. For more detail on Azure VNet NSG traffic filtering, see the article [Filter network traffic with network security groups](https://docs.microsoft.com/azure/virtual-network/virtual-networks-nsg).
60
65
* Configure your [Windows Firewall for source database engine access](https://docs.microsoft.com/sql/database-engine/configure-windows/configure-a-windows-firewall-for-database-engine-access).
61
-
* Open your Windows Firewall to allow the Azure Database Migration Service to access the source SQL Server, which by default is TCP port 1433.
62
-
* If you're running multiple named SQL Server instances using dynamic ports, you may wish to enable the SQL Browser Service and allow access to UDP port 1434 through your firewalls so that the Azure Database Migration Service can connect to a named instance on your source server.
63
-
* If you're using a firewall appliance in front of your source databases, you may need to add firewall rules to allow the Azure Database Migration Service to access the source database(s) for migration, as well as files via SMB port 445.
64
-
* Create an Azure SQL Database managed instance by following the detail in the article [Create an Azure SQL Database managed instance in the Azure portal](https://aka.ms/sqldbmi).
66
+
* Open your Windows Firewall to allow Azure Database Migration Service to access the source SQL Server, which by default is TCP port 1433.
67
+
* If you're running multiple named SQL Server instances using dynamic ports, you may wish to enable the SQL Browser Service and allow access to UDP port 1434 through your firewalls so that Azure Database Migration Service can connect to a named instance on your source server.
68
+
* If you're using a firewall appliance in front of your source databases, you may need to add firewall rules to allow Azure Database Migration Service to access the source database(s) for migration, as well as files via SMB port 445.
69
+
* Create a SQL Database managed instance by following the detail in the article [Create an Azure SQL Database managed instance in the Azure portal](https://aka.ms/sqldbmi).
65
70
* Ensure that the logins used to connect the source SQL Server and the target managed instance are members of the sysadmin server role.
66
-
* Provide an SMB network share that contains all your database full database backup files and subsequent transaction log backup files the Azure Database Migration Service can use for database migration.
71
+
* Provide an SMB network share that contains all your database full database backup files and subsequent transaction log backup files Azure Database Migration Service can use for database migration.
67
72
* Ensure that the service account running the source SQL Server instance has write privileges on the network share that you created and that the computer account for the source server has read/write access to the same share.
68
-
* Make a note of a Windows user (and password) that has full control privilege on the network share that you previously created. The Azure Database Migration Service impersonates the user credential to upload the backup files to Azure storage container for restore operation.
69
-
* Create an Azure Active Directory Application ID that generates the Application ID key that DMS Service can use to connect to target Azure Database managed instance and Azure Storage Container. For more information, see the article [Use portal to create an Azure Active Directory application and service principal that can access resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-create-service-principal-portal).
73
+
* Make a note of a Windows user (and password) that has full control privilege on the network share that you previously created. Azure Database Migration Service impersonates the user credential to upload the backup files to Azure storage container for restore operation.
74
+
* Create an Azure Active Directory Application ID that generates the Application ID key that Azure Database Migration Service can use to connect to target Azure Database managed instance and Azure Storage Container. For more information, see the article [Use portal to create an Azure Active Directory application and service principal that can access resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-create-service-principal-portal).
70
75
71
76
> [!NOTE]
72
-
> DMS requires the Contributor permission on the subscription for the specified Application ID. We are actively working to reduce these permissions requirements.
77
+
> Azure Database Migration Service requires the Contributor permission on the subscription for the specified Application ID. We are actively working to reduce these permissions requirements.
73
78
74
-
* Create or make a note of **Standard Performance tier**, Azure Storage Account, that allows DMS service to upload the database backup files to and use for migrating databases. Make sure to create the Azure Storage Account in the same region as the DMS service created.
79
+
* Create or make a note of **Standard Performance tier**, Azure Storage Account, that allows DMS service to upload the database backup files to and use for migrating databases. Make sure to create the Azure Storage Account in the same region as the Azure Database Migration Service instance is created.
75
80
76
81
## Register the Microsoft.DataMigration resource provider
77
82
78
83
1. Sign in to the Azure portal, select **All services**, and then select **Subscriptions**.
## Create an Azure Database Migration Service instance
91
96
@@ -103,7 +108,7 @@ To complete this tutorial, you need to:
103
108
104
109
5. Select an existing VNet or create one.
105
110
106
-
The VNet provides the Azure Database Migration Service with access to the source SQL Server and target Azure SQL Database managed instance.
111
+
The VNet provides Azure Database Migration Service with access to the source SQL Server and target SQL Database managed instance.
107
112
108
113
For more information on how to create a VNet in Azure portal, see the article [Create a virtual network using the Azure portal](https://aka.ms/DMSVnet).
109
114
@@ -126,15 +131,15 @@ After an instance of the service is created, locate it within the Azure portal,
126
131
127
132
1. In the Azure portal, select **All services**, search for Azure Database Migration Service, and then select **Azure Database Migration Services**.
128
133
129
-

134
+

130
135
131
136
2. On the **Azure Database Migration Service** screen, search for the name of the instance that you created, and then select the instance.
132
137
133
138
3. Select + **New Migration Project**.
134
139
135
140
4. On the **New migration project** screen, specify a name for the project, in the **Source server type** text box, select **SQL Server**, in the **Target server type** text box, select **Azure SQL Database Managed Instance**, and then for **Choose type of activity**, select **Online data migration**.

138
143
139
144
5. Select **Create and run activity** to create the project.
140
145
@@ -224,7 +229,7 @@ After an instance of the service is created, locate it within the Azure portal,
224
229
225
230
## Performing migration cutover
226
231
227
-
After the full database backup is restored on the target instance of Azure SQL Database managed instance, the database is available for performing a migration cutover.
232
+
After the full database backup is restored on the target instance of SQL Database managed instance, the database is available for performing a migration cutover.
228
233
229
234
1. When you're ready to complete the online database migration, select **Start Cutover**.
230
235
@@ -244,6 +249,6 @@ After the full database backup is restored on the target instance of Azure SQL D
244
249
245
250
## Next steps
246
251
247
-
- For a tutorial showing you how to migrate a database to a managed instance using the T-SQL RESTORE command, see [Restore a backup to a managed instance using the restore command](../sql-database/sql-database-managed-instance-restore-from-backup-tutorial.md).
248
-
- For information about managed instance, see [What is a managed instance](../sql-database/sql-database-managed-instance.md).
249
-
- For information about connecting apps to a managed instance, see [Connect applications](../sql-database/sql-database-managed-instance-connect-app.md).
252
+
* For a tutorial showing you how to migrate a database to a managed instance using the T-SQL RESTORE command, see [Restore a backup to a managed instance using the restore command](../sql-database/sql-database-managed-instance-restore-from-backup-tutorial.md).
253
+
* For information about managed instance, see [What is a managed instance](../sql-database/sql-database-managed-instance.md).
254
+
* For information about connecting apps to a managed instance, see [Connect applications](../sql-database/sql-database-managed-instance-connect-app.md).
0 commit comments