Forum Discussion
Azure Synapse Link for Cosmos Db
Was just following up to see if the team has any inputs regarding the same?
With Regards,
Nitin Rahim
- SaranyaSriramOct 03, 2023
Microsoft
The steps are documented here https://learn.microsoft.com/en-us/azure/cosmos-db/analytical-store-private-endpoints#using-synapse-serverless-sql-pools
We should add synapse workspace to networkaclbypasslist. SQL serverless in Synapse is not in a managed VNet. We cant extend PrivateEndpoints to SQL serverless. Customer should allow Synapse WorkSpace to access Cosmos DB account by specifying the WS name in networkaclbypass list.
- nitinrahimOct 03, 2023Brass Contributor
Thanks Saranya for the response.I did that particular step as well. However I still get the access forbidden message when running the below query from serverless sql pool to access the test1 container. Was checking if the private endpoint from cosmos db for 'analytical store' also has to be setup?If yes is there a specific documentation pertaining to the same. Synapse Link has been enabled for this contaner.
SELECT *
FROM OPENROWSET(PROVIDER = 'CosmosDB',
CONNECTION = 'Account=testaccount;Database=testdatabase',
OBJECT = 'testcontainer',
SERVER_CREDENTIAL = 'testcredential')
AS [testcontainer]
With Regards,
Nitin Rahim- AnithaAOct 03, 2023Copper ContributorHi Nitin, I am a PM In Cosmos DB team, working on Synapse Link. Sorry for the inconvenience you are facing. Could you please share the network acl bypass command you've set? Are Cosmos DB account and Synapse WS in same AD tenant? You've mentioned test1container in the msg and the select command seems to be connecting to testcontainer - are they from the same account on which you've set the aclbypass?