0

Azure DevOps Server 2019に対してAzure CLIを用いてアクセスしたいです。
ですが、Microsoft Docs:Azure CLIには

The Azure DevOps Command Line Interface (CLI) is available for Azure DevOps Server 2020 and Azure DevOps Services.

と記載があります。
ではDevOps 2019を使用している方々はどのようにコマンドラインから操作しているのでしょうか?

1 件の回答 1

0

似たようなことを考えている方がいました。
[Bug] vsts-cli tool does not work with (onprem) Azure DevOps Server 2019 SP1.1; self-signed certificate #323

そこで、Microsoft Docs:Azure CLIに従い、試してみたところ上手くいきました。

To start using the Azure DevOps extension for Azure CLI, perform the following steps:

  1. Install Azure CLI:
  2. Add the Azure DevOps extension:
  3. Sign in:

サインインは以下で試してみたところ上手くいきました。
トークンはMS Docsにある通り作成できます。

$az devops login --organization http://FooBar:8080/tfs/FooBarCollection
Token:xxxxxxx

その後適当なコマンドaz pipelins list -p FooBarProjectを実行するとそれらしい結果が表示できたので、
オンプレ版のAzure DevOps Server 2019でもAzure CLIが使用できると判断しました。

この質問に回答するには、ログインする必要があります。

求めていた回答ではありませんか? のタグが付いた他の質問を参照する。