-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cosmo DB connection #12
Comments
Are you using CosmosDB with Table API? If yes, you should use the AuthenticationToken credential by setting it with your AccountKey. |
Actually, the key has to be edited. But even then: if my URI is marked as: https://MYNAME.documents.azure.com:443/ it creates a connection to: MYNAME.table.cosmosdb.azure.com/ is table.cosmosdb.azure.com/ correct ? The URI on the azure key page is : https://MYNAME.documents.azure.com:443/ |
this is the URI when Cosmos DB is used with "SQL" API. We want Cosmos DB to be used with the "Table" API. https://docs.microsoft.com/en-us/azure/cosmos-db/table-introduction |
Ok, I see, but MYNAME.table.cosmosdb.azure.com/Pages() generates a host can not be resolved. If I try it in a webbrowser it says the IP adress can not be found.. |
I don't think you're supposed to call it via an unauthenticated HTTP call via a web browser. Have you tried using the CosmosDB SDK? |
YEs exactly, using the app it says "can not resolve destination host" when clicking on CreateIfNoExist In the log a connection to URL= https:/MYNAME.table.cosmosdb.azure.com/Tables() Normally I should see an invalid request with no authorization in the browser.. |
the SDK in the Unity app works only with Cosmos DB configure with the Table API, not with the SQL API, so the |
I see, but I get: EndpointStorageType.TableStorage : EndpointStorageType.CosmosDBTableAPI : Same result |
Totally missed that, sorry. Did you manage to make it work? |
Hey! I have exactly the same issue. "Cannot resolve destination host". The URL that this tool generates for me looks like this: Now it occured to me: there's a place for "tableName" parameter in TableStorageClient.QueryTable, what is that name if we have database A with containers B & C in it? I guess container == table, but what would happen if we had more than one database under the same account name? |
Hi,
I tried to do as you said in the command, put
TableStorageClient.Instance.EndpointStorageType = EndpointStorageType.CosmosDBTableAPI;
and
TableStorageClient.Instance.AuthenticationToken = "AccountEndpoint=https://cosmosdb-prague.documents.azure.com:443/;AccountKey=UU6OXXXXXXXXXXXXXXXXXXXXX
I launch : no error, but if I try to interrogate the DB I get an error, saying that it can not parse a webserver adress",
any idea on what I'm doing wrong ?
CHeers,
PE
The text was updated successfully, but these errors were encountered: