az containerapp github-action
手記
このコマンド グループには、Azure CLI と少なくとも 1 つの拡張機能の両方で定義されているコマンドがあります。 各拡張機能をインストールして、拡張機能を活用します。 拡張機能の詳細については、 を参照してください。
GitHub Actions を管理するコマンド。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az containerapp github-action add |
GitHub Actions ワークフローをリポジトリに追加して、コンテナー アプリをデプロイします。 |
コア | ジョージア 州 |
az containerapp github-action add (containerapp 拡張機能) |
GitHub Actions ワークフローをリポジトリに追加して、コンテナー アプリをデプロイします。 |
延長 | ジョージア 州 |
az containerapp github-action delete |
以前に構成した Container Apps GitHub Actions ワークフローをリポジトリから削除します。 |
コア | ジョージア 州 |
az containerapp github-action show |
コンテナー アプリに GitHub Actions の構成を表示します。 |
コア | ジョージア 州 |
az containerapp github-action add
GitHub Actions ワークフローをリポジトリに追加して、コンテナー アプリをデプロイします。
az containerapp github-action add --repo-url
[--branch]
[--context-path]
[--ids]
[--image]
[--login-with-github]
[--name]
[--registry-password]
[--registry-url]
[--registry-username]
[--resource-group]
[--service-principal-client-id]
[--service-principal-client-secret]
[--service-principal-tenant-id]
[--subscription]
[--token]
例
Azure Container Registry と個人用アクセス トークンを使用して、GitHub Actions を追加します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-url myregistryurl.azurecr.io --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --token MyAccessToken
Azure Container Registry を使用して GitHub Actions を追加し、GitHub フローにログインして個人用アクセス トークンを取得します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-url myregistryurl.azurecr.io --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --login-with-github
Docker Hub を使用して GitHub Actions を追加し、GitHub フローにログインして個人用アクセス トークンを取得します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-username MyUsername --registry-password MyPassword --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --login-with-github
必須のパラメーター
ワークフロー ファイルの追加先となる GitHub リポジトリ。 形式: https://github.com/<owner>/<repository-name>
.
省略可能のパラメーター
Github リポジトリのブランチ。 指定されていない場合は、Github リポジトリの既定のブランチであると見なされます。
Docker ビルドの実行元となるリポジトリ内のパス。 既定値は "./" です。
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
Github アクションで使用するコンテナー イメージ名。 既定値はコンテナー アプリ名です。
Github を使用して対話形式でログインし、個人用アクセス トークンを取得します。
Containerapp の名前。 名前は、小文字の英数字または '-' で構成され、文字で始まり、英数字で終わる必要があり、'--' を持つことができず、32 文字未満である必要があります。
レジストリのパスワード。 Azure Container Registry を使用している場合は、指定されていない場合は資格情報の推論を試みます。
コンテナー レジストリ サーバー (例: myregistry.azurecr.io)。
レジストリのユーザー名。 Azure Container Registry を使用している場合は、指定されていない場合は資格情報の推論を試みます。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
サービス プリンシパル クライアント ID。
サービス プリンシパル クライアント シークレット。
サービス プリンシパルテナント ID。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
指定したリポジトリへの書き込みアクセス権を持つ個人用アクセス トークン。 詳細については、https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-lineを参照してください。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
az containerapp github-action add (containerapp 拡張機能)
GitHub Actions ワークフローをリポジトリに追加して、コンテナー アプリをデプロイします。
az containerapp github-action add --repo-url
[--branch]
[--build-env-vars]
[--context-path]
[--ids]
[--image]
[--login-with-github]
[--name]
[--registry-password]
[--registry-url]
[--registry-username]
[--resource-group]
[--service-principal-client-id]
[--service-principal-client-secret]
[--service-principal-tenant-id]
[--subscription]
[--token]
例
Azure Container Registry と個人用アクセス トークンを使用して、GitHub Actions を追加します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-url myregistryurl.azurecr.io --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --token MyAccessToken
Azure Container Registry と個人用アクセス トークンを使用して GitHub Actions を追加し、ビルド環境変数を使用してイメージ ビルドを構成します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-url myregistryurl.azurecr.io --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --token MyAccessToken --build-env-vars BP_JVM_VERSION=21 BP_MAVEN_VERSION=4
Azure Container Registry を使用して GitHub Actions を追加し、GitHub フローにログインして個人用アクセス トークンを取得します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-url myregistryurl.azurecr.io --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --login-with-github
Docker Hub を使用して GitHub Actions を追加し、GitHub フローにログインして個人用アクセス トークンを取得します。
az containerapp github-action add -g MyResourceGroup -n my-containerapp --repo-url https://github.com/userid/repo --branch main --registry-username MyUsername --registry-password MyPassword --service-principal-client-id 00000000-0000-0000-0000-00000000 --service-principal-tenant-id 00000000-0000-0000-0000-00000000 --service-principal-client-secret ClientSecret --login-with-github
必須のパラメーター
ワークフロー ファイルの追加先となる GitHub リポジトリ。 形式: https://github.com/<owner>/<repository-name>
.
省略可能のパラメーター
Github リポジトリのブランチ。 指定されていない場合は、Github リポジトリの既定のブランチであると見なされます。
ビルドの環境変数の一覧。 'key=value' 形式のスペース区切り値。
Docker ビルドの実行元となるリポジトリ内のパス。 既定値は "./" です。
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
Github アクションで使用するコンテナー イメージ名。 既定値はコンテナー アプリ名です。
Github を使用して対話形式でログインし、個人用アクセス トークンを取得します。
Containerapp の名前。 名前は、小文字の英数字または '-' で構成され、文字で始まり、英数字で終わる必要があり、'--' を持つことができず、32 文字未満である必要があります。
レジストリのパスワード。 Azure Container Registry を使用している場合は、指定されていない場合は資格情報の推論を試みます。
コンテナー レジストリ サーバー (例: myregistry.azurecr.io)。
レジストリのユーザー名。 Azure Container Registry を使用している場合は、指定されていない場合は資格情報の推論を試みます。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
サービス プリンシパル クライアント ID。
サービス プリンシパル クライアント シークレット。
サービス プリンシパルテナント ID。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
指定したリポジトリへの書き込みアクセス権を持つ個人用アクセス トークン。 詳細については、https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-lineを参照してください。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
az containerapp github-action delete
以前に構成した Container Apps GitHub Actions ワークフローをリポジトリから削除します。
az containerapp github-action delete [--ids]
[--login-with-github]
[--name]
[--resource-group]
[--subscription]
[--token]
例
個人用アクセス トークンを使用して GitHub Actions を削除します。
az containerapp github-action delete -g MyResourceGroup -n MyContainerapp --token MyAccessToken
GitHub へのログイン フローを使用して GitHub Actions を削除し、個人用アクセス トークンを取得します。
az containerapp github-action delete -g MyResourceGroup -n MyContainerapp --login-with-github
省略可能のパラメーター
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
Github を使用して対話形式でログインし、個人用アクセス トークンを取得します。
Containerapp の名前。 名前は、小文字の英数字または '-' で構成され、文字で始まり、英数字で終わる必要があり、'--' を持つことができず、32 文字未満である必要があります。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
指定したリポジトリへの書き込みアクセス権を持つ個人用アクセス トークン。 詳細については、https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-lineを参照してください。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
az containerapp github-action show
コンテナー アプリに GitHub Actions の構成を表示します。
az containerapp github-action show [--ids]
[--name]
[--resource-group]
[--subscription]
例
Containerapp に GitHub Actions の構成を表示します。
az containerapp github-action show -g MyResourceGroup -n MyContainerapp
省略可能のパラメーター
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
Containerapp の名前。 名前は、小文字の英数字または '-' で構成され、文字で始まり、英数字で終わる必要があり、'--' を持つことができず、32 文字未満である必要があります。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
Azure CLI