Skip to content

Commit 210e847

Browse files
authored
Merge pull request #96737 from MashaMSFT/20190319_sqlmirepltutorial
Configure replication with MI tutorial
2 parents 45863ae + 5221fda commit 210e847

14 files changed

+491
-53
lines changed
Loading
32.2 KB
Loading
44.4 KB
Loading
Loading
Loading
Loading
Loading

articles/sql-database/replication-with-sql-database-managed-instance.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ You can also use transactional replication to push changes made in an instance d
2525
Transactional replication is in public preview on [Azure SQL Database managed instance](sql-database-managed-instance.md). A managed instance can host publisher, distributor, and subscriber databases. See [transactional replication configurations](sql-database-managed-instance-transactional-replication.md#common-configurations) for available configurations.
2626

2727
> [!NOTE]
28-
> This article is intended to guide a user in configuring replication with an Azure Database managed instance from end to end, starting with creating the resource group. If you already have managed instances deployed, skip ahead to [Step 4](#4---create-a-publisher-database) to create your publisher database, or [Step 6](#6---configure-distribution) if you already have a publisher and subscriber database, and are ready to start configuring replication.
28+
> - This article is intended to guide a user in configuring replication with an Azure Database managed instance from end to end, starting with creating the resource group. If you already have managed instances deployed, skip ahead to [Step 4](#4---create-a-publisher-database) to create your publisher database, or [Step 6](#6---configure-distribution) if you already have a publisher and subscriber database, and are ready to start configuring replication.
29+
> - This article configures your publisher and distributor on the same managed instance. To place the distributor on a separate manged instance, see the tutorial [Configure replication between an MI publisher and an MI distributor](sql-database-managed-instance-configure-replication-tutorial.md).
2930
3031
## Requirements
3132

@@ -75,10 +76,15 @@ You will also need to [Configure an Azure VM to connect](sql-database-managed-in
7576
Copy the file share path in the format of:
7677
`\\storage-account-name.file.core.windows.net\file-share-name`
7778

79+
Example: `\\replstorage.file.core.windows.net\replshare`
80+
7881
Copy the storage access keys in the format of:
7982
`DefaultEndpointsProtocol=https;AccountName=<Storage-Account-Name>;AccountKey=****;EndpointSuffix=core.windows.net`
8083

81-
For more information, see [Manage storage account access keys](../storage/common/storage-account-keys-manage.md).
84+
Example:
85+
`DefaultEndpointsProtocol=https;AccountName=replstorage;AccountKey=dYT5hHZVu9aTgIteGfpYE64cfis0mpKTmmc8+EP53GxuRg6TCwe5eTYWrQM4AmQSG5lb3OBskhg==;EndpointSuffix=core.windows.net`
86+
87+
For more information, see [Manage storage account access keys](../storage/common/storage-account-keys-manage.md).
8288

8389
## 4 - Create a publisher database
8490

@@ -156,8 +162,9 @@ On your publisher managed instance `sql-mi-pub`, change the query execution to [
156162
:setvar username loginUsedToAccessSourceManagedInstance
157163
:setvar password passwordUsedToAccessSourceManagedInstance
158164
:setvar file_storage "\\storage-account-name.file.core.windows.net\file-share-name"
165+
-- example: file_storage "\\replstorage.file.core.windows.net\replshare"
159166
:setvar file_storage_key "DefaultEndpointsProtocol=https;AccountName=<Storage-Account-Name>;AccountKey=****;EndpointSuffix=core.windows.net"
160-
167+
-- example: file_storage_key "DefaultEndpointsProtocol=https;AccountName=replstorage;AccountKey=dYT5hHZVu9aTgIteGfpYE64cfis0mpKTmmc8+EP53GxuRg6TCwe5eTYWrQM4AmQSG5lb3OBskhg==;EndpointSuffix=core.windows.net"
161168

162169
USE [master]
163170
EXEC sp_adddistpublisher
@@ -170,6 +177,9 @@ EXEC sp_adddistpublisher
170177
@storage_connection_string = N'$(file_storage_key)'; -- Remove this parameter for on-premises publishers
171178
```
172179

180+
> [!NOTE]
181+
> Be sure to use only backslashes (`\`) for the file_storage parameter. Using a forward slash (`/`) can cause an error when connecting to the file share.
182+
173183
This script configures a local publisher on the managed instance, adds a linked server, and creates a set of jobs for the SQL Server Agent.
174184

175185
## 8 - Create publication and subscriber
@@ -324,4 +334,5 @@ You can clean up your Azure resources by [deleting the managed instance resource
324334
## See Also
325335

326336
- [Transactional replication](sql-database-managed-instance-transactional-replication.md)
337+
- [Tutorial: Configure transactional replication between an MI publisher and an MI subscriber](sql-database-managed-instance-configure-replication-tutorial.md)
327338
- [What is a Managed Instance?](sql-database-managed-instance.md)

articles/sql-database/sql-database-managed-instance-configure-replication-tutorial.md

Lines changed: 409 additions & 0 deletions
Large diffs are not rendered by default.

articles/sql-database/sql-database-managed-instance-failover-group-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ Clean up resources by first deleting the managed instance, then the virtual clus
10691069

10701070
# [Portal](#tab/azure-portal)
10711071
1. Navigate to your resource group in the [Azure portal](https://portal.azure.com).
1072-
1. Select the managed instance(s) and then select **Delete**. Type `yes` in the text box to confirm you want to delete the resource and then select **Delete**. This process may take some time to complete in the background, and until it"s done, you will not be able to delete the *Virtual cluster* or any other dependent resources. Monitor the delete in the Activity tab to confirm your managed instance has been deleted.
1072+
1. Select the managed instance(s) and then select **Delete**. Type `yes` in the text box to confirm you want to delete the resource and then select **Delete**. This process may take some time to complete in the background, and until it's done, you will not be able to delete the *Virtual cluster* or any other dependent resources. Monitor the delete in the Activity tab to confirm your managed instance has been deleted.
10731073
1. Once the managed instance is deleted, delete the *Virtual cluster* by selecting it in your resource group, and then choosing **Delete**. Type `yes` in the text box to confirm you want to delete the resource and then select **Delete**.
10741074
1. Delete any remaining resources. Type `yes` in the text box to confirm you want to delete the resource and then select **Delete**.
10751075
1. Delete the resource group by selecting **Delete resource group**, typing in the name of the resource group, `myResourceGroup`, and then selecting **Delete**.

0 commit comments

Comments
 (0)