Skip to content

3.2 — Configure Azure Database for PostgreSQL #49

@davidortinau

Description

@davidortinau

Description

Replace the emulated PostgreSQL with Azure Database for PostgreSQL Flexible Server. The AppHost already declares PostgreSQL; this work configures it for Azure provisioning and ensures EF Core migrations run on deployment.

Dependencies

Acceptance Criteria

  • AppHost updated: .PublishAsAzurePostgresFlexibleServer() on postgres resource
  • Connection string uses managed identity (no password in config)
  • EF Core migrations run automatically on deployment
  • Database backup policy configured
  • Connection pooling optimized for Azure
  • Tested locally with emulator first, then preview with azd
  • Staging and production databases provisioned successfully

Technical Notes

  • Aspire generates Bicep for Azure PostgreSQL Flexible Server
  • Managed Identity for authentication (no credentials needed)
  • Migration bundle or init container approach for schema updates
  • Monitor performance after Azure deployment

Phase: 3 | Size: XL | Owner: Zoe (Lead)

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase:3-infraPhase 3: Azure Infrastructuresize:XLExtra large task (2+ weeks)squadSquad triage inbox — Lead will assign to a membersquad:zoeAssigned to Zoe (Tester)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions