Skip to content
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

Java library for CosmosDb + private endpoint support #12813

Closed
jagadish-v0 opened this issue Jul 6, 2020 · 5 comments
Closed

Java library for CosmosDb + private endpoint support #12813

jagadish-v0 opened this issue Jul 6, 2020 · 5 comments
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@jagadish-v0
Copy link

Created a private endpoint for my CosmosDb storage account and trying to connect to the CosmosDb through it. I'm getting a ConnectTimeOutException..

io.netty.channel.ConnectTimeoutException: connection timed out: cosmos-account-41895-eastus.documents.azure.com/10.3.168.11:21226

If I try to connect to the CosmosDb account using the azure cli from the same machine, it works fine.

az cosmosdb sql database create --account-name cosmos-account-41895 --name testdb --resource-group rg-name

If I try to connect to the account using a service endpoint (instead of using a private endpoint), that works fine too.

For context, I'm using the java library: com.azure:azure-cosmos:4.0.1-beta.1. Does the Java client support private endpoints yet?

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 6, 2020
@jagadish-v0 jagadish-v0 changed the title [BUG] Java library for CosmosDb + private endpoint support Jul 6, 2020
@jagadish-v0
Copy link
Author

For reference, @kushagraThapar recommended that I created the issue here when I opened an issue in Azure/azure-cosmosdb-java#346.

@kushagraThapar
Copy link
Member

@jagadish-v0 - continuing the conversation here :

I misunderstood the private endpoint feature, here is what I found in the docs:
https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-cosmosdb-portal?toc=/azure/cosmos-db/toc.json&bc=/azure/cosmos-db/breadcrumb/toc.json

As the docs mention, you can connect to private endpoints using a VM created specifically for the private endpoint Cosmos account through Data Explorer. Were you able to do that ?

Meanwhile, I will get more information on how to connect it through SDK.

@joshfree joshfree added Client This issue points to a problem in the data-plane of the library. Cosmos labels Jul 7, 2020
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jul 7, 2020
@Petermarcu Petermarcu added the Service Attention Workflow: This issue is responsible by Azure service team. label Jul 29, 2020
@ghost
Copy link

ghost commented Jul 29, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @anfeldma-ms, @kushagraThapar.

@kushagraThapar kushagraThapar added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Jul 29, 2020
@kushagraThapar
Copy link
Member

@jagadish-v0 - were you able to connect the way I mentioned above ?
Which connection mode are you using to connect to private endpoints, DIRECT or GATEWAY ?

@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Aug 11, 2020
@ghost
Copy link

ghost commented Aug 11, 2020

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@ghost ghost closed this as completed Aug 26, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-author-feedback Workflow: More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants