Skip to content

PostgreSQL servers (Flexible) connections attempted over public IP #2571

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

Open
spowser opened this issue Feb 20, 2025 · 1 comment
Open

PostgreSQL servers (Flexible) connections attempted over public IP #2571

spowser opened this issue Feb 20, 2025 · 1 comment
Labels
info-needed See https://aka.ms/azcodeissuereporting postgres

Comments

@spowser
Copy link

spowser commented Feb 20, 2025

Issue:
Connections that are attempted by the Azure Databases extension seem to be ONLY attempted over public connections.

Use Case:
All public access is disabled and the only way to connect to the databases is from a private Azure VNET

Request:
Support resolving connections that require <someserver>.privatelink.postgres.database.azure.com DNS resolution.

@tnaum-ms
Copy link
Collaborator

Thanks for reaching out!

The Azure Databases VS Code Extension operates within your local VS Code environment and uses your machine’s network settings to connect to the database. If your machine is already part of the private Azure VNET, it should be able to resolve <someserver>.privatelink.postgres.database.azure.com and connect without issues.

If your machine isn’t in the VNET, accessing a Private Link endpoint can be challenging since traffic stays isolated. Typically, solutions involve setting up a VPN, ExpressRoute, etc. within the VNET to act as an intermediary.

Out of curiosity, are you able to connect to the database server using other tools or software running on the same machine as VS Code? If so, how are you configuring the connection? This could help us understand how best to approach this scenario.

@tnaum-ms tnaum-ms added info-needed See https://aka.ms/azcodeissuereporting postgres labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed See https://aka.ms/azcodeissuereporting postgres
Projects
None yet
Development

No branches or pull requests

2 participants