Azure / Azure/azure-postgresql

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

Open
#113 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
87
Forks
81
PR merge metrics
No merged PRs in 30d

Description

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=.postgres.database.azure.com port=5432 dbname= user=@ password=\'\$\(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken\)\' sslmode=require"
```

**Should be:**
```
psql "host=.postgres.database.azure.com port=5432 dbname= user=@ password=$(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken) sslmode=require"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.