Cannot create azure_ai extension in Postgres Flexible Server 16.9

Nimrod Senhav 0 Reputation points
2025-09-09T08:17:24.8933333+00:00

When I run the following SQL command i get the below error, practically the same as here: https://learn.microsoft.com/en-us/answers/questions/5537021/cannot-add-azure-ai-or-azure-storage-extension-to

Can you please help?

SQLCopy

CREATE EXTENSION IF NOT EXISTS azure_ai; 
--output from query: 
--permission denied to alter restricted role "azure_pg_admin"


I can confirm that the extension has been loaded in the web interface and is visible in the server parameters(azure.extensions).

Attached is the available version we have:

User's image

Azure Database for PostgreSQL
{count} votes

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.