A curated collection of reusable Azure DevOps pipeline templates designed to streamline Terraform-based infrastructure deployments on Azure.
.azuredevops/
— Azure DevOps pipeline templates and YAML files..github/
— GitHub-specific configurations and workflows.PowerShellModules/
— Custom PowerShell modules used in the pipeline orchestration.Tests/
— Example test scripts and related resources.containers/
— Container and Docker-related definitions for pipeline/testing.terraform/
— Example Terraform modules and configuration for test/demo use.Run-AzTerraform.ps1
— PowerShell script used to orchestrate Terraform init/plan/apply/destroy logic.Run-Docker.ps1
— PowerShell script to build and run local Docker containers for testing.Terraform-Release.ps1
— Script to manage release/versioning of Terraform modules.
- Azure DevOps organization and permissions to create pipelines and service connections.
- Azure subscription for resource deployments.
- Terraform (unless using the provided Docker/tenv setup).
- Docker (optional, for local dev/testing).
-
Clone the repository:
git clone https://github.com/libre-devops/terraform-azure-azdo-pipeline-templates.git
-
Reference the Templates:
Reference pipeline templates from the
.azuredevops/
directory in your Azure DevOps pipeline YAML files. Example:stages: - template: .azuredevops/templates/stages/terraform-init-plan.yaml parameters: # ...your parameters here
-
Customize Parameters:
Adjust template parameters for your own Azure environment and Terraform stacks.
-
Run Your Pipeline:
Create and run pipelines via Azure DevOps Pipelines UI or CLI.
For local, containerized testing, use the included Run-Docker.ps1
script:
.\Run-Docker.ps1
This will build a Docker image and execute scripts in a consistent environment matching the pipeline.
This project is licensed under the MIT License. See the LICENSE file for details.
- Visit Libre DevOps for more modules, pipelines, and best-practice infrastructure code.
- Issues and PRs welcome!