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.
- 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.
The repository contains two scripts:
createTeamProject.sh
, script launchercommands.sh
, contains the logic
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]"