microsoft / vscode-cosmosdb

Azure Databases extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb
MIT License
155 stars 67 forks source link

Nothing shows under the PostgreSQL server after entering server credentials for it on another machine #2194

Closed v-ruizh closed 1 year ago

v-ruizh commented 1 year ago

OS: Win10 Build Version: 20231006.1 Regression: Previous Release

Repro Steps:

  1. Create one PostgreSQL server in VS Code.
  2. Expand the above PostgreSQL server on another machine -> Enter server credentials with the right username and password.
  3. Check whether the "Configure firewall to connect to..." shows under the PostgreSQL server or not.

Expect: The "Configure firewall to connect to..." shows under the PostgreSQL server. image

Actual: Nothing shows under the PostgreSQL server and a notification pops up. image image

More Info: This issue does not reproduce on the current released extension v0.19.4.

JasonYeMSFT commented 1 year ago

This might be an intentional change. I noticed that it is possible to get the wrong IP address when the extension code attempts to add the firewall rule. Could you try going to Azure Portal and configure the firewall rule there and then try accessing the database. If that works, then we don't need to worry about this issue.