Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to add azure devops extension to azure cli?


Asked by Adam Farley on Nov 30, 2021 FAQ



At a minimum, your Azure CLI version must be 2.10.1. You can use az --version to validate. Add the Azure DevOps extension: az extension add --name azure-devops. You can use az extension list or az extension show --name azure-devops to confirm the installation. Sign in: Run az login to sign in.
Accordingly,
Install Azure CLI: Follow the instructions provided in Install the Azure CLI to set up your Azure CLI environment. At a minimum, your Azure CLI version must be 2.10.1. You can use az --version to validate. Add the Azure DevOps extension: You can use az extension list or az extension show --name azure-devops to confirm the installation.
Next, The minimum Azure CLI version that supports the Azure DevOps CLI extension is 2.10.1, and the macOS X Catalina 10.14 hosted agent has Azure CLI 2.22.1 installed. To install the Azure DevOps CLI extension using that version of Azure CLI, run the following command in your pipeline before calling az devops login.
Also,
The VSTS CLI has been deprecated and will no longer be receiving new features. We recommend that users of the VSTS CLI switch to the Azure CLI and add the Azure DevOps extension. See the Command Mapping section to view the mapping between VSTS CLI and Azure DevOps Extension commands.
In addition,
The Azure CLI offers the capability to load extensions. Extensions for the Azure CLI are characterized as Python wheels that aren't shipped as part of the CLI but run as CLI commands. With extensions, you gain access to experimental and pre-release commands along with the ability to write your own CLI interfaces.