How to manage and automate Azure DevOps using Azure CLI

We can automate Azure DevOps creation using Azure CLI (currently in preview). These following steps can be used to get you started with Azure DevOps using Azure Cloud Shell.

The first step if you want to automate Azure DevOps using Azure CLI is to download the extension, and we need to run it just once in Azure Cloud Shell, then configure the defaults to use your existing organization information, including name and project name. In the end, we will run a help command to understand what we can configure using the command line.

az extension add --name azure-devops
az devops configure --defaults organization= project=AP6Industries
az devops -h

Depending on your activity you may have to authenticate your session, and it can be quickly done using az login

One nice feature is to create pipelines using the command line. Using the command below, we can have even a small wizard to help to create the pipeline in Azure DevOps.

az pipelines create --name "cli-example" --repository Hub-CoreNetwork --branch master --repository-type tfsgit

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides of the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange, CISSP and several other certifications. Anderson contributes to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Published by
Anderson Patricio

Recent Posts

Managing Azure VMs with System Center Virtual Machine Manager

You may not know it, but System Center Virtual Machine Manager can be used for…

2 hours ago

Best and most secure VPN services for small businesses

As we adjust to a new remote work culture due to coronavirus, a secure VPN…

5 hours ago

Exchange security: Get your SPF, DMARC, and DKIM records in place

Every Exchange admin lives with the constant fear their system will be breached. Having SPF,…

8 hours ago

GE data breach exposes thousands of employee records

A GE data breach exposed a hacker’s treasure trove of employee records, including Social Security…

1 day ago

Getting speed and consistency using Linux text editors and console

Ready to go back to the future? Here’s a look at some Linux text editors…

1 day ago

Amazon GuardDuty unveils new, lower pricing tiers

The Amazon GuardDuty threat-detection service has unveiled some lower price tiers, which will be especially…

1 day ago