You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one creates an instance of PostgreSQL service (FSPG) with AAD enabled and tries to connect to it on Portal using bash as a shell and AAD login, the console will show an error and psql will not be connected.
It looks like the bash command for psql does not use escape characters correctly.
The generated command fails, but if I run very similar one with different escaping, it works. Screenshot shows the command that fails. The one that works is following psql "host=entera-test-2.postgres.database.azure.com port=5432 dbname=postgres user=[email protected] password='$(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken)' sslmode=require"
Observed Behavior
Already described in the previous section.
Expected behavior
The psql tool should be connected to the database on the startup.
Is this specific to Cloud Shell?
Running the correct command outside the cloud shell works fine.
Interface information
I access cloud shell with Edge browser on Windows Server 2022. Used bash on web.
The text was updated successfully, but these errors were encountered:
@surajssd Could this be connected to the mysql installing the server version rather than client version? Unlikely but surprised we're not seeing issues for escape characters not working outside of psql
To Reproduce
If one creates an instance of PostgreSQL service (FSPG) with AAD enabled and tries to connect to it on Portal using bash as a shell and AAD login, the console will show an error and psql will not be connected.
It looks like the bash command for psql does not use escape characters correctly.
The generated command fails, but if I run very similar one with different escaping, it works. Screenshot shows the command that fails. The one that works is following psql "host=entera-test-2.postgres.database.azure.com port=5432 dbname=postgres user=[email protected] password='$(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken)' sslmode=require"
Observed Behavior
Already described in the previous section.
Expected behavior
The psql tool should be connected to the database on the startup.
Is this specific to Cloud Shell?
Running the correct command outside the cloud shell works fine.
Interface information
I access cloud shell with Edge browser on Windows Server 2022. Used bash on web.
The text was updated successfully, but these errors were encountered: