From Bicep to a running deployment
The infrastructure model end to end — network, compute, secrets — then the runbook that turns it into a live environment and the migration job that seeds the schema.
Decision
Run all three workloads on a single Azure Container Apps Environment in the Consumption plan, VNet-integrated.
- Backend:
Microsoft.App/containerAppswith external ingress, scale 0→N, system-assigned Managed Identity. - PostgREST:
Microsoft.App/containerAppswith internal ingress (ingress.external = false), scale 0→N, system-assigned Managed Identity. - Migration runner:
Microsoft.App/jobswithtriggerType: Manual(started by the deploy pipeline or operator), reuses the backend image.
Service-to-service discovery uses Container Apps' built-in internal DNS: https://postgrest.internal.<env-domain>.