Hi @Marius Hornung , welcome to Microsoft Q&A.
I was trying the same scenario as mentioned by creating Azure PostgreSQL Database - Flexible Server and faced the same issue when creating the role as below:
postgres=> CREATE USER test3 ENCRYPTED PASSWORD 'password@123' NOCREATEDB NOCREATEROLE NOSUPERUSER;
ERROR: must be superuser to create superusers
Then I changed the query by removing the NOSUPERUSER keyword and it worked fine:
postgres=> CREATE USER test3 ENCRYPTED PASSWORD 'password@123' NOCREATEDB NOCREATEROLE;
CREATE ROLE
And I was able to login using the same user then.
But the error is definitely something related to 'Flexible Server' as the same statement worked perfectly fine in 'Single Server'.
Can you please try the same and let me know if this works with you? Or else we can discuss further on the same.
----------
If the answer helps, please select 'Accept Answer' as it could help other community members looking for similar queries.