Not able to connect to cosmos Db in synapse using managed identity in Notebook
YI have try the below steps to connect Azure Cosmos DB using Apache Spark 2 in Azure Synapse Link:
Step1: Go to Linked and select the Azure Cosmos DB linked service and test the connection.
Step2: Select the container and click on actions => New Notebook => Load streaming DataFrame from container.
Step3: Select the Spark pool and run the code to load the dataframe from container.
but we are still getting error.
Error :Py4JJavaError: An error occurred while calling o4047.load. : java.lang.RuntimeException: Resolving Azure CosmosDB LinkedService [SynapseCosmosDbMIConnect] in Azure Synapse failed.Validate the configured LinkedService. If still seeing this, try using the Azure CosmosDB account name and credentials directly.
Please let us know which approach we should use.