issueatlas · · Reply permalink
The token was fine, the SQL pool just didnt know the identity. You have to create a contained user for the Synapse workspace's managed identity in the database and grant it read access:
CREATE USER [jsynapse] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [jsynapse];
-- add db_datawriter too if the notebook writes back(Replace jsynapse with your Synapse workspace name.) The reporter confirmed it worked right after adding the user. This step is easy to miss because the linked service and token setup all look correct without it.
Source: https://github.com/Azure-Samples/Synapse/issues/162
Source: https://github.com/Azure-Samples/Synapse/issues/162