Skip to content

Commit 318f378

Browse files
authored
Merge pull request #222209 from im-microsoft/patch-2
Added caution note before SAMI turn off
2 parents 01c53e0 + 19ae4ab commit 318f378

File tree

1 file changed

+41
-11
lines changed

1 file changed

+41
-11
lines changed

articles/synapse-analytics/synapse-link/troubleshoot/troubleshoot-sql-link-creation.md

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,65 @@ ms.reviewer: imotiwala
77
ms.service: synapse-analytics
88
ms.topic: how-to
99
ms.subservice: synapse-link
10-
ms.date: 12/19/2022
10+
ms.date: 12/22/2022
1111
---
1212

1313
# Troubleshoot: Azure Synapse Link creation for Azure SQL Database
1414

1515
This article is a guide to troubleshooting issues creating the Azure Synapse Link for Azure SQL Database.
1616

17-
## Symptom
17+
## Symptom 1
1818

1919
During Azure Synapse Link connection creation, the link creation process may hang and without showing any error messages.
2020

21-
## Potential causes
21+
### Potential causes 1
2222

23-
1. Using the certificate for the managed identity used to sign the client assertion failed because the key used is expired. To confirm this is the cause query the [changefeed.change_feed_errors](/sql/relational-databases/system-tables/changefeed-change-feed-errors-transact-sql) dynamic management view and look for error number 22739. See sample query below:
23+
1. Using the certificate for the managed identity used to sign the client assertion failed because the key used is expired.
24+
25+
2. The system assigned managed identity (SAMI) for the Azure SQL Database logical server has not been configured properly or not enabled.
26+
27+
3. An incorrect managed identity was provided in the Synapse Link creation, for example, by manually providing an incorrect principal ID or Azure Key vault information.
28+
29+
To confirm these potential causes, query the [changefeed.change_feed_errors](/sql/relational-databases/system-tables/changefeed-change-feed-errors-transact-sql) dynamic management view and look for error number 22739.
2430
```sql
2531
SELECT session_id, error_number, error_message, source_task, entry_time
2632
FROM sys.dm_change_feed_errors
2733
WHERE error_number = 22739;
2834
```
2935

30-
2. The system assigned managed identity (SAMI) for the Azure SQL Database logical server has not been configured properly or not enabled. To confirm this is the cause query the [changefeed.change_feed_errors](/sql/relational-databases/system-tables/changefeed-change-feed-errors-transact-sql) dynamic management view and look for error number 22739. See the previous sample query.
36+
### Resolution 1
37+
38+
If the SAMI is not enabled, enable the SAMI. Regardless, refresh the Synapse Link authentication information in the Azure Synapse workspace.
39+
40+
### Solution: Enable the SAMI, refresh the Synapse Link
41+
42+
1. If disabled, enable the [system assigned managed identity (SAMI)](/azure/azure-sql/database/authentication-azure-ad-user-assigned-managed-identity) for the Azure SQL Database logical server. Regardless, proceed to Step 2.
43+
1. In the Azure portal, navigate to your Synapse Link for SQL connection in Azure Synapse workspace. In the **Integrate** hub, under **Link connection**, select your link connection. In the General window, expand the **Advanced** section. Select the **Refresh** button. You will see a message with checked green tick indicating the SQL logical server resource ID and managed identity ID have been refreshed.
44+
:::image type="content" source="media/troubleshoot-sql-link-creation/synapse-workspace-link-connection-running.png" alt-text="A screenshot of the Azure portal in the Synapse workspace. In the General section under Advanced, the Refresh button is highlighted." lightbox="media/troubleshoot-sql-link-creation/synapse-workspace-link-connection-running.png":::
45+
1. If this does not resolve the Synapse Link issue, [submit an Azure support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) following the below instructions:
46+
1. For **Issue type**, select **Technical**.
47+
2. Provide the desired subscription of the source database. Select **Next**.
48+
3. For **Service type**, select **SQL Database**.
49+
4. For **Resource**, select the source database where the initial snapshot is failing.
50+
5. For **Summary**, provide any error numbers from `changefeed.change_feed_errors`.
51+
6. For **Problem type**, select **Data Sync, Replication, CDC and Change Tracking**.
52+
7. For **Problem subtype**, select **Transactional Replication**.
53+
54+
<!---
55+
56+
## Symptom 2
3157
32-
3. An incorrect managed identity was provided in the Synapse Link creation.
58+
During Azure Synapse Link connection creation, the link creation process may hang and without showing any error messages.
59+
60+
### Potential causes 2
3361
34-
4. The subscription moved from one tenant to another, and the managed identity is no longer valid.
62+
1. The subscription moved from one tenant to another, and the system-assigned managed identity (SAMI) is no longer valid. The SAMI does not appear in the Azure AD in the new tenant.
3563
36-
## Resolution
64+
### Resolution 2
3765
38-
If disabled, enable the [system assigned managed identity (SAMI)](/azure/azure-sql/database/authentication-azure-ad-user-assigned-managed-identity) for the Azure SQL Database logical server. If enabled, refresh the SAMI. Use either of the two following methods:
66+
Disable and re-enable the SAMI for the Azure SQL logical server.
3967
40-
### Solution 1 via the Azure portal
68+
### Solution 2 via the Azure portal
4169
4270
1. In the Azure portal, navigate to your Azure SQL Server. Select **Identity** under **Security** on the left side bar.
4371
1. Review the **Status** setting for **system assigned managed identity** (SAMI).
@@ -62,10 +90,12 @@ If disabled, enable the [system assigned managed identity (SAMI)](/azure/azure-s
6290
1. In the Azure portal, navigate to your Synapse Link for SQL connection in Azure Synapse Workspace. In the **Integrate** hub, under **Link connection**, select your link connection. In the General window, expand the **Advanced** section. Select the **Refresh** button. You will see a message with checked green tick indicating the SQL logical server resource ID and Managed identity ID have been refreshed.
6391
:::image type="content" source="media/troubleshoot-sql-link-creation/synapse-workspace-link-connection-running.png" alt-text="A screenshot of the Azure portal in the Synapse workspace. In the General section under Advanced, the Refresh button is highlighted." lightbox="media/troubleshoot-sql-link-creation/synapse-workspace-link-connection-running.png":::
6492
93+
-->
94+
6595
## Next steps
6696

6797
- [Get started with Azure Synapse Link for Azure SQL Database](../connect-synapse-link-sql-database.md)
6898
- [Managed identities in Azure AD for Azure SQL](/azure/azure-sql/database/authentication-azure-ad-user-assigned-managed-identity)
6999
- [Azure Synapse Link for SQL FAQ](../faq.yml)
70100
- [Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md)
71-
- [changefeed.change_feed_errors (Transact-SQL)](/sql/relational-databases/system-tables/changefeed-change-feed-errors-transact-sql)
101+
- [changefeed.change_feed_errors (Transact-SQL)](/sql/relational-databases/system-tables/changefeed-change-feed-errors-transact-sql)

0 commit comments

Comments
 (0)