Hello Christopher Wilkinson,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that while connecting Azure Data Explorer pool in Synapse to Cosmos DB there are issues.
What you can do are not limited to the following:
Be sure that Synapse Link is enabled for your Cosmos DB account and containers. This is a prerequisite for connecting Cosmos DB to Synapse.
- Check that your Synapse workspace is correctly configured to connect to external data sources. Ensure that you have the necessary permissions to create connections.
- If the option to create a connection to Cosmos DB is not present, try the following troubleshooting steps:
- Sometimes, refreshing the Synapse workspace can resolve UI issues.
- Make sure that your Synapse workspace and related services are up to date.
- Check that you have the necessary permissions to create connections in the Synapse workspace.
- Make sure that your Synapse workspace and Cosmos DB account are in the same region.
Alternative Method
If the issue persists, consider using the Azure CLI or PowerShell to create the connection. This can sometimes bypass UI limitations.
- Follow the steps in the official documentation - https://learn.microsoft.com/en-us/azure/cosmos-db/configure-synapse-link to enable Synapse Link for your Cosmos DB account and containers
- In your Synapse workspace, go to the Data tab and select the + icon next to Data.
- Choose Connect to external data.
- Select the API you want to connect to (SQL or MongoDB) and click Continue.
- Provide a name for the linked service and select your Cosmos DB account and database name. - https://learn.microsoft.com/en-us/azure/synapse-analytics/quickstart-connect-synapse-link-cosmos-db
- Once the connection is established, you can query the analytical store using serverless SQL pools in Synapse. Use the OPENROWSET function to query data from the analytical store. - https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/query-cosmos-db-analytical-store
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.