Azure Terraform Deployment Pipeline
A repeatable path from infrastructure validation to a controlled Azure release.
Situation
I wanted a small release project where application checks and infrastructure checks could run before anyone needed Azure access.
Task
I needed to package an API, define its hosting and telemetry, and make the release procedure reproducible.
Action
I wrote a small Python API with a health endpoint and packaged it in a Docker image. I defined an Azure Container Apps environment and a Log Analytics workspace in Terraform. I set the app readiness probe to the health endpoint and exposed that URL as a Terraform output so the release workflow can check it.
I added GitHub Actions checks that run on pushes and pull requests. I use a Terraform initialization step without the Azure backend, then validate the configuration and smoke-test both the API health response and the missing-route response.
I wrote a separate manual release workflow that uses OIDC, initializes remote state, and accepts an image pinned by digest. I added a health check after apply and documented how to redeploy the last healthy digest for rollback.
What I would improve
I would configure a sandbox identity, build and publish the image in CI, and record a staging deployment and rollback with measured recovery time.
Result
GitHub Actions passed Terraform validation and the API smoke checks. The health endpoint returned HTTP 200, and an unknown route returned 404. The release and rollback workflows still need a live Azure test.