Skip to content

Bash scripts gathering a set of 'az devops' command calls to industrialize the creation of Azure DevOps Team Projects. Not all the Azure DevOps features are exposed through 'az devops'.

License

Notifications You must be signed in to change notification settings

jonmikeli/azure-devops-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure DevOps Commands

This repository contains a set of az cli commands related to Azure DevOps operations.

The commands take in charge basic operations when it comes to creating Team Projects. The script can be useful in contexts where the Team Projects need to be created in an industrialized manner and according to specific rules/configurations.

Covered steps

  • Team Project creation
  • Teams creation
  • Areas creation
  • Areas and Teams permissions
  • Teams memberships
  • Repository creations
  • Configuration of policies (repository)
  • Wiki creation
  • Structure of folders at pipeline level
  • Group of variables (per repository) with default values
  • Extensions installation

The other fields cannot be scripted for now.

The names of projects, repositories, areas, folders, teams, etc are normed and follow certain types of practices.

How to use the scripts?

Scripts

The repository contains two scripts:

  • createTeamProject.sh, script launcher
  • commands.sh, contains the logic

How to...

You only need to execute createTeamProject.sh or call directly the command.sh script with the required parameters.

createTeamProject.sh

createTeamProject.sh contains the settings to call commands.sh (kind of a "helper").

./commands.sh \
-o "https://your_organization" \
-c "[customer name]" \
-m "[customer code]" \
-p "[team project name]" \
-f "[path to the file containing the PAT code]"

About

Bash scripts gathering a set of 'az devops' command calls to industrialize the creation of Azure DevOps Team Projects. Not all the Azure DevOps features are exposed through 'az devops'.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages