Hey HAKANGOKCOL,
it sounds like you’re trying to enable the new azure_ai extension on a PostgreSQL 18.2 Flexible Server in Sweden Central (Burstable B1ms), but saving the server parameter (azure.extensions) bombs out with an InternalServerError. Other extensions (vector, uuid-ossp) work fine, so let’s walk through the most common checks and workarounds:
- Confirm extension availability in the server • Connect to your flexible server (psql/any client) and run:
SELECT name, default_version, installed_version
FROM pg_available_extensions
WHERE name = 'azure_ai';
• If azure_ai does not show up here, it isn’t actually available in your region or on that SKU yet—even if the portal dropdown lists it.
- Check your current azure.extensions setting • In the same session, run:
SHOW azure.extensions;
• Make sure azure_ai isn’t already listed (if it is, skip to step 4).
- Try setting the parameter via CLI
az postgres flexible-server parameter set \
--resource-group MyRG \
--name MyPG18Server \
--parameter-name azure.extensions \
--value azure_ai
• If this still returns “InternalServerError,” capture the CLI debug log (--debug)—it may show an underlying HTTP or API failure.
- Create the extension in your database Once the parameter is saved, in your database run:
CREATE EXTENSION azure_ai;
If that succeeds, you’re good to go.
- If you still hit an InternalServerError… • It’s likely a service-side rollout issue (azure_ai is still in preview and may not be in every region/SKU). • Try on a Standard SKU instance or a different region (e.g., West Europe) to confirm. • If it works elsewhere, we’ll escalate to the product team to enable it in Sweden Central. • Open a support ticket and include: – The output of
SELECT * from pg_available_extensions WHERE name='azure_ai'; – CLI debug logs showing the InternalServerError – Server name, region, SKU, and timestamp of your operations
Hope that helps! Let me know what you see when you run those checks.
References
• PostgreSQL extensions for Flexible Server (list and how-to)
https://learn.microsoft.com/azure/postgresql/flexible-server/concepts-extensions
• List of extensions and modules by PostgreSQL 18 version (azure_ai listed)
https://learn.microsoft.com/azure/postgresql/extensions/concepts-extensions-by-engine?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#postgresql-18
• Integrate Azure AI into PostgreSQL (azure_ai overview)
https://learn.microsoft.com/azure/postgresql/integration/how-to-integrate-azure-ai?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.