Skip to main content

Task 02: Create source control project

Runbook GitHub GitLab Azure DevOps

DOCUMENT CATEGORY: Runbook Step
SCOPE: Source control project creation
PURPOSE: Create deployment source control project from Azure Local template
MASTER REFERENCE: Source Control Project Setup Guide

Status: Active


Objective​

Create a new source control project/repository for the deployment using the Azure Local template.


Prerequisites​

  • Bootstrap complete (Task 01)
  • Source control platform access (GitHub, GitLab, or Azure DevOps)

Procedure​

Create Repository from Template​

  1. Navigate to the Azure Local organization on GitHub
  2. Open the desired template repository
  3. Click Use this template → Create a new repository
  4. Configure:
FieldValue
OwnerYour organization
Repository name<org>-azurelocal (e.g. iic-azurelocal)
VisibilityPrivate
  1. Click Create repository
  2. Wait for repository creation to complete

Tip: If using GitHub Teams, move the repository to the appropriate team after creation via Settings → Manage access.


Verification​

  • Project/repository created successfully
  • Project appears in the correct group/organization
  • Project name follows your organization's naming convention
  • Template content is present in the repository

Next Steps​

Configure Project Settings


References​


Values from infrastructure.yml​

The script reads the devops section (platform, organization, project and repository: name, template, visibility, default branch) of infrastructure.yml (schema 5). Each key, with its type, default and example, is in the variables reference.


Toolkit script

The toolkit script for this task is PowerShell 7. It reads infrastructure.yml through the mandatory -InfrastructureFile parameter and never prompts. It ends with exit code 0, 1 or 2. Run it with -WhatIf first: the script reads what exists and lists what it would do.

Script​

ScriptWhat it does
scripts/deploy/01-cicd-infra/phase-01-cicd-setup/task-02-create-project/powershell/New-CicdProject.ps1Task 02. Creates the deployment repository or project from the Azure Local template. Supports -WhatIf.

Requires: PowerShell 7.

Run​

./New-CicdProject.ps1 -InfrastructureFile ./infrastructure.yml -WhatIf

Alternatives​

The procedures in this task use the methods shown in the tabs above. The toolkit is PowerShell 7 only and has no Bash scripts. A few tasks that act on Azure also have an Azure CLI script written in PowerShell. The script status page of the toolkit lists which task has which script.

PreviousUpNext
← Task 01: BootstrapPhase 01: CI/CD SetupTask 03: Configure Project Settings ->

Troubleshooting​

IssueCauseResolution
Repository creation failsInsufficient permissions on source control platformVerify account has project/repo creation rights
Template not availableOrganization template restrictionsContact platform administrator to enable templates

Version Control​

VersionDateAuthorChanges
1.0.02025-03-25Azure Local CloudInitial release