Part 2: CI/CD Pipelines
DOCUMENT CATEGORY: Part Overview SCOPE: CI/CD pipeline platform selection and configuration PURPOSE: Help teams choose and implement a supported pipeline platform for Azure Local delivery MASTER REFERENCE: GitLab CI/CD Documentation
Status: Active
Part Purpose
This part documents the supported delivery pipeline platforms for Azure Local automation. Use it after the CI/CD infrastructure is in place and once your team is ready to codify validation, planning, deployment, and post-deployment operations in a repeatable workflow.
Platform Comparison
| Platform | Best For | Azure Auth Model | Approval Model |
|---|---|---|---|
| GitLab CI/CD | Teams standardizing on GitLab and modular stage-based delivery | OIDC through id_tokens (a federated app registration) or a managed identity for the OS configuration and ARM pipelines; service principal variables for the Terraform and Ansible pipeline | Manual jobs in protected environments |
| GitHub Actions | Teams standardizing on GitHub repositories and environment rules | OIDC (azure/login) with no client secret for the OS configuration and ARM pipelines | Environment protection rules (required reviewers) |
| Azure DevOps Pipelines | Teams already operating in Azure DevOps | ARM service connections, with workload identity federation for the OS configuration and ARM pipelines | Environment approvals and checks |
Common Pipeline Flow
The toolkit ships three families of pipeline files for each platform. They are separate pipelines, not one chain.
| Family | Stages | Calls |
|---|---|---|
| Terraform and Ansible deploy | validate -> plan -> deploy-foundation -> configure-onprem -> deploy-cluster -> configure-operations -> validate-deployment | Terraform, Ansible playbooks, Azure CLI. It does not call the schema 5 ARM deployment script |
| OS configuration (Phase 03) | Plan (read only), then Apply behind an approval | Invoke-AzureLocalOsConfiguration.ps1. See Automated OS configuration |
| ARM Validate and Deploy (Phase 05) | Preconditions, Validate, then Deploy behind an approval | Invoke-AzureLocalArmDeployment.ps1. See ARM Validate and Deploy automation |
Order for a new instance: provisioning (azurelocal-ztp or an ISO) -> OS configuration pipeline -> the pre-cluster verification gate -> ARM Validate and Deploy pipeline. The OS configuration pipeline publishes the artifact os-configuration-report, which the ARM pipeline takes as its OS configuration report. The gate's details are described on the ARM Validate and Deploy page.
How to Use This Part
- Start with the platform comparison on this page
- Choose one pipeline platform that matches your repository and approval model
- Use the platform-specific page to configure secrets, runners or agents, and workflow structure
- Keep the CI/CD Infrastructure section as the source of truth for runner and environment setup
Platform Pages
| Platform | Description |
|---|---|
| GitLab CI/CD | Primary reference pipeline with modular stages and reusable templates |
| GitHub Actions | GitHub-native workflow equivalent with environment protection |
| Azure DevOps Pipelines | Azure DevOps implementation using service connections and agent pools |
| ARM Validate and Deploy | The pipeline that runs Microsoft's ARM template through Validate, approval and Deploy, on all three platforms |
Next Steps
After choosing a platform, continue to Part 3: Automation Guides for the Terraform, Ansible, Bicep, and PowerShell assets that your pipeline will call.