docs-aspire
docs-aspire copied to clipboard
Make Azure Postgres Flexible Server specific deployment article.
trafficstars
At the end of this article:
https://learn.microsoft.com/en-us/dotnet/aspire/database/postgresql-component?tabs=dotnet-cli
We should link on to a new article which describes how to deploy a .NET Aspire application with a Postgres database resource to Azure. We have a new API for this that generates Bicep that is used by AZD.
builder.AddPostgres("pgsql").PublishAsAzurePostgresFlexibleServer().AddDatabase(db);
Hey @mitchdenny - is that code accurate?
I noticed that the db parameter in the AddDatabase call isn't a string, I'm assuming that's a typo.
Should that instead be:
builder.AddPostgres("pgsql")
.PublishAsAzurePostgresFlexibleServer()
- .AddDatabase(db);
+ .AddDatabase("db");
Yeah its a typo. Thanks!