dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.82k stars 458 forks source link

Automating the Configuration of azure.extensions with AsAzurePostgresFlexibleServer() #4754

Open faramos opened 4 months ago

faramos commented 4 months ago

I'm using the PostgreSQL extension PG_TRGM with Azure Database for PostgreSQL Flexible Server. I understand that to use this extension, the server parameter azure.extensions needs to be configured to allow PG_TRGM.

Is it possible to automate the configuration of this server parameter when using AsAzurePostgresFlexibleServer() in my ASP.NET Aspire application?

How can I achieve this automation?

Thanks in advance!

image

davidfowl commented 1 month ago

It's not possible to do this today, but we should be getting an updated version of Azure.Provisioning that should enable anything that is possible in bicep. This should make it possible to build higher level methods that include things like extensions etc.

See https://github.com/dotnet/aspire/issues/5583.