-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Related to an existing integration?
Yes
Existing integration
CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects
Overview
Right now, as per #529 the CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects does not deploy the generate .dacpac to Azure, during the deployment phase. It would be great it that could be extended to add support for having .dacpac deployend in Azure when running azd up for an Aspire project.
One way that could be done is running SqlPackage in an Azure Container Apps (which is already supported by Aspire), after the .dacpac has been generated, in the same container, via MSBuild.
The created application would be a Worker service, just like it is recommended for EF Migration deployment (https://learn.microsoft.com/en-us/dotnet/aspire/database/ef-core-migrations#create-the-migration-service)
Usage example
No changes from today's code, except that azd init and azd up will generate an additional Azure Container Apps container where the database project is built and deployed
Breaking change?
Yes
Alternatives
Today one has to manually deploy the .dacpac to Azure SQL
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item