Skip to main content
Version: 1.0.0

Task 01: Commit and Push Configuration

Objective: Commit configuration changes and push to the repository to trigger CI/CD pipeline

DOCUMENT CATEGORY: Runbook SCOPE: Commit Terraform configuration to Git and trigger pipeline PURPOSE: Commit Terraform configuration to Git and trigger pipeline MASTER REFERENCE: Azure Pipelines Documentation

Status: Active

Procedure

1. Review Changes

cd /path/to/project
git status
git diff terraform.tfvars

2. Stage Changes

git add terraform.tfvars
git add terraform/ # If using separate terraform directory

3. Commit with Descriptive Message

git commit -m "Deploy Phase 04 management infrastructure

- Configure management mode with VNet 10.100.1.0/24
- Configure cluster c01 at RAL location
- Deploy VPN Gateway VpnGw2AZ with BGP
- Enable Azure Bastion and Key Vault
"

4. Push to Repository

git push origin main

Pipeline will automatically trigger on push.


Validation

  • Git commit successful
  • Changes pushed to repository
  • Pipeline automatically started in CI/CD pipeline → Pipelines


When to use: Use this tab if your CI/CD pipeline runs on GitHub Actions.

See procedure steps above for GitHub-specific guidance.

Toolkit Reference

Scripts for this task are located in the azurelocal-toolkit repository under scripts/deploy/ in the appropriate task folder.


Alternatives

The procedures in this task use the scripted methods shown in the tabs above. Additional deployment methods including Azure CLI and Bash scripts are available in the azurelocal-toolkit repository under scripts/deploy/.

MethodDescription
Azure CLIPowerShell-based Azure CLI scripts for Azure resource operations
BashLinux/macOS compatible shell scripts for pipeline environments
PreviousUpNext
Phase 01 - ConfigurationPhase 02 - ExecutionTask 02 - Validate Stage

Variables from variables.yml

VariableConfig PathExample
Repository URLcicd.repository.urlhttps://dev.azure.com/contoso/infra
Branch Namecicd.repository.branchmain

Troubleshooting

IssueCauseResolution
Push rejected by remoteBranch protection rules blocking pushCreate a pull request instead of direct push
Commit fails pre-commit hooksConfiguration files failing validationFix validation errors reported by pre-commit hooks

Version Control

VersionDateAuthorChanges
1.0.02026-03-24Azure Local CloudInitial release