I'm working on creating a Synapse pipeline in Azure, and I'm facing an issue while setting up a linked service to connect to a self-hosted MSSQL server. Here are the details of my setup:
Source: Self-hosted MSSQL server. Destination: Azure Synapse workspace. Authentication: System-assigned managed identity. Permissions: I have owner permissions at both the subscription level and the Synapse workspace level.
When I try to add the linked service for the SQL server, I receive the following error messages:
Error Code: SqlFailedToConnect Details: "Cannot connect to SQL Database. Login failed for user ."
I also encountered another error while adding the SQL server:
Error Code: Unauthorized Details: "The principal does not have the required Synapse RBAC permission to perform this action. Required permission: Microsoft.Synapse/workspaces/read."
I tried adding roles, but I'm not able to find Synapse-related roles in the IAM role assignment section. I've double-checked my permissions and ensured that I have owner-level access to both the subscription and the Synapse workspace. Verified that the Azure Synapse SQL pool firewall rules allow Azure services to connect.
Why am I unable to see Synapse-related roles while assigning roles in the IAM settings? How can I resolve these connection issues to successfully set up the linked service using managed identity authentication?



