Azure AD Admin unable to run create schema Azure Postgresql - Flexible Server

Tech1234 10 Reputation points
2023-05-23T15:47:36.91+00:00

Hi

I created a new Azure Postgresql - Flexible server and attached Azure Ad admin. then created a new DB on that server. Now when logging through the Azure Ad Admin and running create schema command on the new DB, getting below error

permission denied for database

In the single server, the Azure Ad admin had the admin rights.

Can you please let me know what is missing.

Thanks

Azure Database for PostgreSQL
{count} votes

2 answers

Sort by: Most helpful
  1. Chris Pollock 21 Reputation points
    2023-11-08T16:58:27.0133333+00:00

    Is there an update on this?

    This should definitely be considered a defect, as the Server admin should have inherit full admin permissions to all newly created databases.

    1 person found this answer helpful.

  2. GeethaThatipatri-MSFT 29,552 Reputation points Microsoft Employee Moderator
    2023-05-24T18:25:15.6166667+00:00

    Hi, @Tech1234 Welcome to the Microsoft Q&A forum, Thanks for posting your question.

    This is expected behavior, you can take a look below

    User's image

    If you want to do that, as long as you have the required permissions as Admin, you can assign the role owner of that database to your role, and grant the permission to create a schema to that target user, as in the below example:

    User's image

    I hope this information helps

    Regards

    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.