Azure DevOps Managed as Code
Repos, branch policies, approval gates, service connections and pipeline permissions for every project, defined in Terraform and applied by a pipeline, so none of the guard rails depend on someone clicking the right box.
The Azure platform behind this site, in the order I built it.
Where it started: the Azure DevOps organization, its repos and guard rails, managed in Terraform.
Repos, branch policies, approval gates, service connections and pipeline permissions for every project, defined in Terraform and applied by a pipeline, so none of the guard rails depend on someone clicking the right box.
Reusable Terraform modules, published to a private Terraform Cloud registry.
Terraform-azurerm and terraform-azuredevops modules, each with a consistent layout, versioning, and its own publishing pipeline.
One templates repo that every other pipeline extends.
One templates repo for Terraform deploys, module publishing, app CI/CD and governance checks. Every other repo extends a pinned, versioned template instead of hand-rolling its own pipeline.
The one time Terraform ran as me: creating the pipeline identities, connecting them to Azure DevOps without secrets, and moving state off my laptop.
Creating the pipeline identities under my own account, connecting them to Azure DevOps with no secrets, and moving Terraform state from my laptop to a storage account.
The base layer: management group, resource groups, identities and roles.
The tenant-level Terraform repo that owns management groups, Entra app registrations, and service-connection federation for the whole platform.
The workload: this website, and sign-in with no stored secret.
How this site signs users in via Entra ID with zero stored client secrets, using a managed identity as a federated credential.
OpenTelemetry from this site into a swappable monitoring tool, with its alerts becoming events and incidents in ServiceNow ITOM. Being built next.