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: docs/relational-databases/replication/configure-replication-with-azure-ad-authentication.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,28 +19,27 @@ This article provides steps to configure Transactional and Snapshot replication
19
19
20
20
Support for Azure AD authentication with SQL Server replication was added in SQL Server 2022 CU 6. When configuring SQL Server replication with Azure AD authentication, the only step that's different is the first step, when you create an Azure AD login, and grant sysadmin permissions. Then use that Azure AD login in the replication stored procedures to configure replication.
21
21
22
-
The session trace flag 11543 is required to configure replication with Azure AD authentication, so before executing any step, be sure to enable the trace flag in the session by using the following Transact-SQL command:
22
+
> [!NOTE]
23
+
> Azure AD authentication for replication starting with SQL Server 2022 CU 6 can be disabled by using session trace flag 11561.
23
24
24
-
```sql
25
-
DBCC TRACEON(11543, -1)
26
-
```
27
25
28
26
## Prerequisites
29
27
30
28
To configure replication with Azure AD authentication, you must meet the following prerequisites:
31
29
32
30
- Have SQL Server 2022 Cumulative Update 6 configured with Azure AD authentication for every server in the replication topology. Review [Tutorial: Set up Azure AD authentication for SQL Server](../../relational-databases/security/authentication-access/azure-ad-authentication-sql-server-setup-tutorial.md) to learn more.
33
-
-[SQL Server Management Studio v18 or higher](../../ssms/download-sql-server-management-studio-ssms.md) or [Azure Data Studio](/sql/azure-data-studio/download-azure-data-studio).
34
-
- The user connecting to the publisher and subscriber is a member of the **sysadmin** fixed server role.
31
+
-[SQL Server Management Studio (SSMS) v19.1 or higher](../../ssms/download-sql-server-management-studio-ssms.md) or [Azure Data Studio](/sql/azure-data-studio/download-azure-data-studio).
32
+
- The user connecting to the publisher and subscriber is a member of the **sysadmin** fixed server role.
33
+
- The connection must be encrypted using a certificate from a trusted Certificate Authority (CA) or a self-signed certificate.
34
+
- If a self-signed certificate is used, it must be imported to the client machine and installed into the Trusted Certificates list for the client to trust the SQL Server. This requirement cannot be bypassed by selecting the **Trust server certificate** option in SQL Server Management Studio (SSMS) as it doesn't work with replication.
35
35
36
36
37
37
## Limitations
38
38
39
39
Configuring your replication with Azure AD authentication currently has the following limitations:
40
40
41
-
- It's currently only possible to configure replication by using Transact-SQL (T-SQL), and the replication stored procedures. It's not currently possible to configure replication by using the Replication Wizard in SQL Server Management Studio (SSMS), the RMO replication objects, or other command line languages.
42
-
- Every server in the replication topology must be on SQL Server 2022 CU 6.
43
-
- When configuring replication, session trace flag 11543 must be enabled within every query session used to configure replication. Once replication has been established, this trace flag is no longer necessary and can be disabled.
41
+
- It's currently only possible to configure replication using Transact-SQL (T-SQL) and the replication stored procedures, the Replication Wizard in SSMS v19.1 or higher, or Azure Data Studio. It's not currently possible to configure replication using RMO replication objects or other command line languages.
42
+
- Every server in the replication topology must be on at least SQL Server 2022 CU 6. Previous versions of SQL Server aren't supported.
44
43
45
44
## Create SQL login from Azure AD
46
45
@@ -259,4 +258,4 @@ The following values define the security modes for these stored procedures:
259
258
-**4** specifies Azure AD Token Authentication starting with SQL Server 2022 CU 6.
0 commit comments