@Kia Mack Welcome to Microsoft Q&A thanks for posting your question.
On Azure Database for PostgreSQL - Flexible Server, the capability to perform actions as a superuser isn't supported due to security reasons. This limitation poses a challenge when attempting to execute such actions on a managed PostgreSQL instance.
Please let me know if you need any additional information.
Regards
Geetha