The Atlas MikeAzureDev's documentation, bound to its code
140 documents

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/containerApps with external ingress, scale 0→N, system-assigned Managed Identity.
  • PostgREST: Microsoft.App/containerApps with internal ingress (ingress.external = false), scale 0→N, system-assigned Managed Identity.
  • Migration runner: Microsoft.App/jobs with triggerType: 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>.