Hello Espen Sandtveit (Webstep AS),
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you cannot add azure_ai or azure storage extension to Flexible PostgreSQL 16.9.
Run these checks below as the server admin one after the other, and follow the steps below; if anything fails, the likely cause is either an allow-list or a platform-version limitation:
-- confirm you are the server admin
SELECT current_user, session_user;
-- confirm which extensions are allowed on this server
SHOW azure.extensions;
-- if allowed, try enabling
CREATE EXTENSION IF NOT EXISTS azure_ai;
CREATE EXTENSION IF NOT EXISTS azure_storage;
If SHOW azure.extensions doesn’t list
azure_ai,azure_storage`, add them from the Azure Portal: Server > Server parameters > azure.extensions > azure_ai,azure_storage, Save + restart.
Note azure_ai
is (as documented) a preview integration and may not be available for all PostgreSQL versions or regions as there are reported issues on PG16; if you see permission errors (for example about azure_pg_admin
), either redeploy to a known-supported engine/version (PG15) or open a Microsoft Support ticket via your Portal. Read more on allowing and creating extensions and the azure_ai integration docs. - https://learn.microsoft.com/en-us/azure/postgresql/extensions/how-to-allow-extensions
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.