We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the change to the new Cosmos DB SDK we have a similar issue to #61.
it´s not possible to connect with a Cosmos DB database that is protected via private endpoint and also behind an Azure Application Gateway because the default connection policy disables LimitToEndpoint by default: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.cosmosclientoptions.limittoendpoint?view=azure-dotnet#microsoft-azure-cosmos-cosmosclientoptions-limittoendpoint
LimitToEndpoint
CosmosDBExplorer should provide a way to enable LimitToEndpoint , using code similar to the following:
private CosmosClient CreateClient(CosmosConnection connection) { var options = new CosmosClientOptions { ConnectionMode = connection.ConnectionType == ConnectionType.Gateway ? ConnectionMode.Gateway : ConnectionMode.Direct, EnableTcpConnectionEndpointRediscovery = connection.EnableEndpointDiscovery, LimitToEndpoint = connection.LimitToEndpoint }; return new CosmosClient(accountEndpoint: connection.DatabaseUri?.ToString(), authKeyOrResourceToken: connection.AuthenticationKey, options); }
The text was updated successfully, but these errors were encountered:
fixing issue sachabruttin#101.
d241c35
false
fixing issue #101. (#102)
a6f2bb3
Successfully merging a pull request may close this issue.
With the change to the new Cosmos DB SDK we have a similar issue to #61.
it´s not possible to connect with a Cosmos DB database that is protected via private endpoint and also behind an Azure Application Gateway because the default connection policy disables
LimitToEndpoint
by default: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.cosmosclientoptions.limittoendpoint?view=azure-dotnet#microsoft-azure-cosmos-cosmosclientoptions-limittoendpointCosmosDBExplorer should provide a way to enable
LimitToEndpoint
, using code similar to the following:The text was updated successfully, but these errors were encountered: