Trending
Infections, hypertension major drivers of heart failure deaths in Nigeria —Study is trending now DRC: Africa CDC sounds alarm as Congo Ebola outbreak turns deadliest yet is trending now Phase3D Supports NASA’s Latest Flight Qualification Research is trending now Traveling to Europe for the Aug. 12 solar eclipse? Here’s how to get safe eclipse glasses… is trending now Piece of SpaceX rocket the size of a school bus crashes into the Moon is trending now FIFA Reportedly Snubbed U.S. Cities On World Cup Payouts After They Failed To Get Agreeme… is trending now Pressure mounts on FIFA President Gianni Infantino is trending now Nigeria vs Egypt: All you need to know ahead of decisive WAFCON 2026 clash is trending now Egypt’s Mohamed Salah looks set to swap Liverpool for Turkiye’s Trabzonspor is trending now "Na dem cast their papa": Obi Cubana's son's expensive watch stirs reactions is trending now The Real Reason Brock Lesnar Has Now Decided to Retire From WWE Revealed is trending now VIDEO: I’d rather chew grass than bite Portable — Charles Okocha is trending now Infections, hypertension major drivers of heart failure deaths in Nigeria —Study is trending now DRC: Africa CDC sounds alarm as Congo Ebola outbreak turns deadliest yet is trending now Phase3D Supports NASA’s Latest Flight Qualification Research is trending now Traveling to Europe for the Aug. 12 solar eclipse? Here’s how to get safe eclipse glasses… is trending now Piece of SpaceX rocket the size of a school bus crashes into the Moon is trending now FIFA Reportedly Snubbed U.S. Cities On World Cup Payouts After They Failed To Get Agreeme… is trending now Pressure mounts on FIFA President Gianni Infantino is trending now Nigeria vs Egypt: All you need to know ahead of decisive WAFCON 2026 clash is trending now Egypt’s Mohamed Salah looks set to swap Liverpool for Turkiye’s Trabzonspor is trending now "Na dem cast their papa": Obi Cubana's son's expensive watch stirs reactions is trending now The Real Reason Brock Lesnar Has Now Decided to Retire From WWE Revealed is trending now VIDEO: I’d rather chew grass than bite Portable — Charles Okocha is trending now
Automation

How to install Azure DevOps Extension in Azure CLI?

How to install Azure DevOps Extension in Azure CLI? The post How to install Azure DevOps Extension in Azure CLI? appeared first on The Automation Code.

Why do we need an Azure DevOps (ADO) extension in Azure CLI?

Well, you know how to manage Azure DevOps services (Pipeline, workItems, Repo, Artifacts, etc) from the portal. If you are a DevOps engineer or Automation guy then you would love to manage the ADO services with the command line (Azure CLI).

Managing ADO services with the command line is very easy and makes your work faster like managing pipelines, work items, artifacts, etc.


Pre-Requisites:

Azure CLI Tool installed (must be above 2.10.1). Azure DevOps Account

Once you have Azure CLI installed, you are eligible to install the extension but make sure you have a CLI version above 2.10.1.

To check the Azure CLI version, run the below command on any terminal (PowerShell, cmd, or any other terminal).

az --version


Add Extension

To add an extension in Azure CLI, you need to use the az extension add command with the –name parameter that specifies the extension name. The extension name for devops is azure-devops.

az extension add --name azure-devops

You can check the installed extension using the below command. This will list down all the installed extensions in the tabular format.

az extension list -otable

Or you can directly search for the installed extension with the below command.

az extension show --name azure-devops -otable

Azure DevOps extension

Once you see the extension, check all the services that are offered by this extension.

az devops -h


Login to Azure DevOps

There are two ways to login to DevOps services.

Interactive Login Login using PAT

For interactive login, you need to use the az login command.

az login

Once you run this command, the browser will open for the authentication and you have to enter your Azure credentials.

For login using PAT, run the below command.

az devops login --organization https://dev.azure.com/organizationName

That will ask for the PAT token.


Configure Default organization

To work on the specific project of the organization, you need to set the default organization.

az devops configure --defaults organization=https://dev.azure.com/OrganizationName project=projectName

To get more help with this extension, you need to run

az devops -h

Loading

The post How to install Azure DevOps Extension in Azure CLI? appeared first on The Automation Code.
View original source →

Related

More from The Automation Code