Skip to main content

Part 2: CI/CD Pipelines

Runbook Azure GitHub GitLab Azure DevOps

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​

PlatformBest ForAzure Auth ModelApproval Model
GitLab CI/CDTeams standardizing on GitLab and modular stage-based deliveryOIDC 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 pipelineManual jobs in protected environments
GitHub ActionsTeams standardizing on GitHub repositories and environment rulesOIDC (azure/login) with no client secret for the OS configuration and ARM pipelinesEnvironment protection rules (required reviewers)
Azure DevOps PipelinesTeams already operating in Azure DevOpsARM service connections, with workload identity federation for the OS configuration and ARM pipelinesEnvironment approvals and checks

Common Pipeline Flow​

The toolkit ships three families of pipeline files for each platform. They are separate pipelines, not one chain.

FamilyStagesCalls
Terraform and Ansible deployvalidate -> plan -> deploy-foundation -> configure-onprem -> deploy-cluster -> configure-operations -> validate-deploymentTerraform, 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 approvalInvoke-AzureLocalOsConfiguration.ps1. See Automated OS configuration
ARM Validate and Deploy (Phase 05)Preconditions, Validate, then Deploy behind an approvalInvoke-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​

PlatformDescription
GitLab CI/CDPrimary reference pipeline with modular stages and reusable templates
GitHub ActionsGitHub-native workflow equivalent with environment protection
Azure DevOps PipelinesAzure DevOps implementation using service connections and agent pools
ARM Validate and DeployThe 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.