As indicated in the error text, you must follow the format <username@hostname>when trying to connect to the postgresql server, regardless of whether you are running this from the psql client or using pgadmin. Using the <username@hostname>format instead <username>should get rid of the error.
Read the quick start documents for the Azure portal and the CLI to learn more about how to create and configure a postgres server.
source
share