In Azure, is there a way to create a custom role or enforce a policy to only allow users to create databases inside an elastic pool?
I tried with a custom role with the "Microsoft.Sql/servers/databases/write" in "NotActions" section, but this permission is also needed to create databases inside Elastic Pool. I have not yet tried with policies, because i'm still learning how define them.
I also tried with "SQL Server Contributor" and "SQL DB Contributor" roles, but neither suits our needs.
The idea is to restrict the creation of new single databases, Sql servers or pools to certain users.