Cloud infrastructure and deployment

Azure IaC · The next app starts here

I brought patterns I've used in commercial projects into the infrastructure behind my portfolio and Access Control Demo. This is a small, public example of how I organise cloud resources, keep application requirements separate and make deployments repeatable.

01

Start with what can be shared

My portfolio uses Qwik and the Access Control Demo uses Next.js, but both need similar hosting and deployment capabilities. I kept each application's code, tests and container build in its own repository, and brought the Azure resource definitions and deployment checks together here.

Bicep modules define resources I can reuse, while each application has its own settings for capacity, health checks and approved secret references. Shared services, such as the container registry, sit separately from the setup each application needs.

That gives me a starting point for another project, with a clear place for the requirements that differ.

02

Keep a release focused

I separated initial infrastructure setup from application updates so a routine release only needs permission to change a limited set of resources.

Before deploying, the shared workflow verifies the application's source and packaged version, checks its settings and previews the proposed Azure changes. It stops the release if the proposed changes would delete resources or affect other applications or shared services.

Afterwards, it checks the deployed image, domain bindings and website health. Automated tests cover accepted and rejected inputs, while runbooks document release and recovery steps. If the final checks fail, recovery remains manual.


            The portfolio website and Access Control Demo feed into shared release checks, 
            an Azure change preview, production deployment and live website checks. 
            Recovery after a failed final check is manual.
Both applications use these release checks. The workflow verifies the live result after deployment.
03

Build out as the projects change

Today, both live applications use one supported deployment pattern: a single container per application on Azure Container Apps. The repository also includes experimental definitions for other arrangements, including a separate frontend, API and PostgreSQL database.

Those additional stacks remain prototypes. Supporting another deployment pattern would mean extending the templates, validation and workflow where needed. The existing layout gives that work a place to go.

04

What I want to carry forward

I want to carry useful infrastructure work from one project into the next. Keeping the Azure definitions separate from application code gives me a familiar starting point while leaving room for different frameworks and hosting needs. I can extend it as those needs become real.