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

Incorrectly escaped characters in Azure Cloud Shell when connecting to PostgreSQL database #113

Open
SeaDude opened this issue Jan 3, 2024 · 1 comment

Comments

@SeaDude
Copy link

SeaDude commented Jan 3, 2024

Hello,

I deployed a new Azure Database for PostgreSQL server and database. When I try to connect to the database using the Connect button in the Databases blade, the default bash command that Azure Cloud Shell tries fails every time.

Default: bold chars below need to be removed from the command.

psql "host=<your-server-name>.postgres.database.azure.com port=5432 dbname=<your-database-name> user=<your-admin-name>@<your-domain.com> password=\'\$\(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken\)\' sslmode=require"

Should be:

psql "host=<your-server-name>.postgres.database.azure.com port=5432 dbname=<your-database-name> user=<your-admin-name>@<your-domain.com> password=$(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken) sslmode=require"
@SeaDude
Copy link
Author

SeaDude commented Jan 6, 2024

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant