extension "azure" is not allow-listed for "azure_pg_admin" users in Azure Database for PostgreSQL

Leonard Lindenau 0 Reputation points
2023-07-19T13:48:16.88+00:00

Hi,

I am setting up an Azure Database for PostreSQL with timesscaleDB extension and currently working on adding migrations for it on my .Net 7.0 application.

I was able to generate the initial migration based on the database structure I created, but when I try to run the 'Update-Database' command I get the following error:

extension "azure" is not allow-listed for "azure_pg_admin" users in Azure Database for PostgreSQL

I have been looking online for solutions to this problem but was unable to find any information. I know I can add extensions to the database on the Azure Portal, but 'Azure' is not one of the available options.

Trying to find further information about it online resulted in nothing, It doesnt seem a common problem unfortunately. The only thing I could find online was https://stackoverflow.com/questions/72007102/error-restoring-db-in-azure-postgresql-flexible-server-extension-azure-is-no and it is yet unresolved aswell.

I wonder if any MS Azure expert could help with what this means and how to solve it.

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,547 Reputation points Microsoft Employee Moderator
    2023-07-20T21:29:28.03+00:00

    Hi, @Leonard Lindenau Thanks for the response

    The extensions are not available as available extensions are not installed by users as this is a managed service as this is already there and is owned by azuresu

    so bottom line is that you should not touch the azure extension as this is owned by the managed service super user azuresu

    User's image

    User's image

    In the above screenshot, this extension is enabled, it is on the postgres system database and cannot be managed by end user.

    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.