Skip to content

.NET 9 aspire no migrations were applied on Azure Container Environment #7955

Open
@BarFoo

Description

@BarFoo

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have a worker service project as part of my .NET 9 aspire solution that is responsible for handling new database migrations with EF core and PostgreSQL.

This works fine on local development, however when deploying to production with new migrations, on Azure no migrations take place and the output is always as follows:

No migrations were applied. The database is already up to date.

There are no database connection issues. The production environment uses Postgres Flexible Server with supplied username and password parameters.

Expected Behavior

For migrations to be recognised and the database updated.

Steps To Reproduce

No response

Exceptions (if any)

No exceptions. No errors with the code. Just migrations not being recognised in ACE environment.

.NET Version info

.NET 9

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packagesneeds-author-actionAn issue or pull request that requires more info or actions from the author.no-recent-activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions