Share via


az devops service-endpoint azurerm

Note

このリファレンスは、Azure CLI (バージョン 2.30.0 以降) の azure-devops 拡張機能の一部です。 拡張機能は、az devops service-endpoint azurerm コマンドを初めて実行するときに自動的にインストールされます。 拡張機能の詳細をご覧ください。

Azure RM サービス エンドポイント/接続を管理します。

コマンド

名前 説明 Status
az devops service-endpoint azurerm create

Azure RM タイプのサービス エンドポイントを作成します。

拡張 GA

az devops service-endpoint azurerm create

Azure RM タイプのサービス エンドポイントを作成します。

自動化の場合は、サービス プリンシパルのパスワード/シークレットAZURE_DEVOPS_EXT_AZURE_RM_Standard EditionRVICE_PRINCIPAL_KEY環境変数に設定します。 この詳細については、〘こちら〘を https://aka.ms/azure-devops-cli-azurerm-service-endpoint参照してください。

az devops service-endpoint azurerm create --azure-rm-service-principal-id
                                          --azure-rm-subscription-id
                                          --azure-rm-subscription-name
                                          --azure-rm-tenant-id
                                          --name
                                          [--azure-rm-service-principal-certificate-path]
                                          [--detect {false, true}]
                                          [--org]
                                          [--project]

必須のパラメーター

--azure-rm-service-principal-id

Azure rm サービス エンドポイントを作成するためのサービス プリンシパル ID。

--azure-rm-subscription-id

Azure rm サービス エンドポイントのサブスクリプション ID。

--azure-rm-subscription-name

Azure rm サービス エンドポイントの Azure サブスクリプションの名前。

--azure-rm-tenant-id

Azure rm サービス エンドポイントを作成するためのテナント ID。

--name

作成するサービス エンドポイントの名前。

省略可能のパラメーター

--azure-rm-service-principal-certificate-path

証明書である (.pem) へのパス。 "openssl pkcs12 -in file.pfx -out file.pem -nodes -password pass:<password_here>" コマンドを使用して作成します。 詳細: . https://aka.ms/azure-devops-cli-azurerm-service-endpoint

--detect

組織を自動的に検出します。

承認された値: false, true
--org --organization

Azure DevOps 組織の URL。 az devops configure -d organization=ORG_URL を使って既定の組織を構成できます。 既定として構成されていない場合、または git config を使って取得されていない場合は必須です (例: https://dev.azure.com/MyOrganizationName/)。

--project -p

プロジェクトの名前または ID。 az devops configure -d project=NAME_OR_ID を使用して、既定のプロジェクトを構成できます。 既定として構成されていない場合、または git 構成を使用して取得された場合は必須です。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。