Hi @Steffen Klempau ,
Thank you for posting ask in Microsoft Q&A Platform.
Below are some observations. Could you please correct them and try.
For 3.2 server version, the string pattern is mongodb://<cosmosdb-name>:<password>@<cosmosdb-name>.documents.azure.com:10255/?ssl=true&replicaSet=globaldb
For 3.6+ server versions, the string pattern is mongodb://<cosmosdb-name>:<password>@<cosmosdb-name>.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@<cosmosdb-name>@
It seems in your case, you used 3.6+ version pattern. But
@
Symbols missing forappName=@<cosmosdb-name>@
Kindly include them and try. If not, Still not works kindly feel free to try 3.2 version format as well.
Kindly cross check and make sure you have set "isServerVersionAbove32" value to true.
Please let us know how it goes. Please let us know if any further queries.