az automation source-control
Note
このリファレンスは、Azure CLI (バージョン 2.75.0 以降) の automation 拡張機能の一部です。 拡張機能は、az automation source-control コマンドを初めて実行するときに自動的にインストールされます。 拡張機能の詳細については、 を参照してください。
ソース管理を管理します。
コマンド
| 名前 | 説明 | 型 | 状態 |
|---|---|---|---|
| az automation source-control create |
ソース管理を作成します。 |
Extension | GA |
| az automation source-control delete |
ソース管理を削除します。 |
Extension | GA |
| az automation source-control list |
ソース管理の一覧を一覧表示します。 |
Extension | GA |
| az automation source-control show |
ソース管理名で識別されるソース管理を取得します。 |
Extension | GA |
| az automation source-control sync-job |
ソース管理の同期ジョブを管理します。 |
Extension | GA |
| az automation source-control sync-job create |
ソース管理の同期ジョブを作成します。 |
Extension | GA |
| az automation source-control sync-job list |
ソース管理同期ジョブの一覧を一覧表示します。 |
Extension | GA |
| az automation source-control sync-job show |
ジョブ ID で識別されるソース管理同期ジョブを取得します。 |
Extension | GA |
| az automation source-control sync-job stream |
同期ジョブ ストリームを管理します。 |
Extension | GA |
| az automation source-control sync-job stream list |
同期ジョブ ID で識別される同期ジョブ ストリームの一覧を一覧表示します。 |
Extension | GA |
| az automation source-control sync-job stream show |
ストリーム ID で識別される同期ジョブ ストリームを取得します。 |
Extension | GA |
| az automation source-control sync-job update |
ソース管理の同期ジョブを更新します。 |
Extension | GA |
| az automation source-control update |
ソース管理を更新します。 |
Extension | GA |
az automation source-control create
ソース管理を作成します。
az automation source-control create --account --automation-account-name
--name --source-control-name
--resource-group
[--access-token]
[--acquire-policy-token]
[--auto-sync {0, 1, f, false, n, no, t, true, y, yes}]
[--branch]
[--change-reference]
[--description]
[--folder-path]
[--publish-runbook {0, 1, f, false, n, no, t, true, y, yes}]
[--refresh-token]
[--repo-url]
[--source-type {GitHub, VsoGit, VsoTfvc}]
[--token-type {Oauth, PersonalAccessToken}]
例
ソース管理を作成する
az automation source-control create -g rg --automation-account-name myAutomationAccount --name source-control --repo-url https://github.com/myAccount/myRepo.git --branch master --source-type GitHub --folder-path / --access-token ghp_MOCKED_GITHUB_TOKEN --token-type PersonalAccessToken --publish-runbook false
必須のパラメーター
Automation アカウントの名前。
ソース管理名。
リソース グループの名前。
az configure --defaults group=<name>を使用して既定のグループを構成できます。
オプションのパラメーター
次のパラメーターは省略可能ですが、コマンドを正常に実行するには、状況に応じて 1 つ以上が必要になる場合があります。
アクセス トークン。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | SecurityToken Arguments |
このリソース操作のAzure Policy トークンを自動的に取得します。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Global Policy Arguments |
ソース管理の自動非同期。 既定値は false です。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
| 指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
ソース管理のリポジトリ ブランチ。 VsoTfvc の空の文字列としてブランチを含めます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
このリソース操作の関連する変更参照 ID。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Global Policy Arguments |
ソース管理のユーザーの説明。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
ソース管理のフォルダー パス。 パスは相対パスである必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
ソース管理の自動発行。 既定値は true です。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
| 指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
更新トークン。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | SecurityToken Arguments |
ソース管理のリポジトリ URL。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
ソースの種類。 VsoGit、VsoTfvc、GitHub、大文字と小文字を区別するいずれかである必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
| 指定可能な値: | GitHub, VsoGit, VsoTfvc |
トークンの種類。 PersonalAccessToken または Oauth である必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | SecurityToken Arguments |
| 指定可能な値: | Oauth, PersonalAccessToken |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
出力フォーマット。
| プロパティ | 値 |
|---|---|
| 規定値: | json |
| 指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
az automation source-control delete
ソース管理を削除します。
az automation source-control delete [--account --automation-account-name]
[--acquire-policy-token]
[--change-reference]
[--ids]
[--name --source-control-name]
[--resource-group]
[--subscription]
[--yes]
例
ソース管理を削除する
az automation source-control delete -g rg --automation-account-name myAutomationAccount --name sourceControl -y
オプションのパラメーター
次のパラメーターは省略可能ですが、コマンドを正常に実行するには、状況に応じて 1 つ以上が必要になる場合があります。
Automation アカウントの名前。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
このリソース操作のAzure Policy トークンを自動的に取得します。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Global Policy Arguments |
このリソース操作の関連する変更参照 ID。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Global Policy Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
ソース管理の名前。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>を使用して既定のグループを構成できます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
確認を求めないでください。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
出力フォーマット。
| プロパティ | 値 |
|---|---|
| 規定値: | json |
| 指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
az automation source-control list
ソース管理の一覧を一覧表示します。
az automation source-control list --account --automation-account-name
--resource-group
[--filter]
[--max-items]
[--next-token]
例
ソース管理の一覧表示
az automation source-control list -g rg --automation-account-name myAutomationAccount
必須のパラメーター
Automation アカウントの名前。
リソース グループの名前。
az configure --defaults group=<name>を使用して既定のグループを構成できます。
オプションのパラメーター
次のパラメーターは省略可能ですが、コマンドを正常に実行するには、状況に応じて 1 つ以上が必要になる場合があります。
操作に適用するフィルター。
コマンドの出力で返される項目の合計数。 使用可能な項目の合計数が指定された値を超える場合は、コマンドの出力にトークンが提供されます。 改ページ位置の変更を再開するには、後続のコマンドの引数 --next-token トークン値を指定します。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Pagination Arguments |
ページ分割を開始する場所を指定するトークン。 これは、以前に切り捨てられた応答からのトークン値です。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Pagination Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
出力フォーマット。
| プロパティ | 値 |
|---|---|
| 規定値: | json |
| 指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
az automation source-control show
ソース管理名で識別されるソース管理を取得します。
az automation source-control show [--account --automation-account-name]
[--ids]
[--name --source-control-name]
[--resource-group]
[--subscription]
例
ソース管理に関する情報を取得する
az automation source-control show -g rg --automation-account-name myAutomationAccount --name sourceControl
オプションのパラメーター
次のパラメーターは省略可能ですが、コマンドを正常に実行するには、状況に応じて 1 つ以上が必要になる場合があります。
Automation アカウントの名前。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
ソース管理の名前。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>を使用して既定のグループを構成できます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
出力フォーマット。
| プロパティ | 値 |
|---|---|
| 規定値: | json |
| 指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
az automation source-control update
ソース管理を更新します。
az automation source-control update [--access-token]
[--account --automation-account-name]
[--acquire-policy-token]
[--add]
[--auto-sync {0, 1, f, false, n, no, t, true, y, yes}]
[--branch]
[--change-reference]
[--description]
[--folder-path]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--name --source-control-name]
[--publish-runbook {0, 1, f, false, n, no, t, true, y, yes}]
[--refresh-token]
[--remove]
[--repo-url]
[--resource-group]
[--set]
[--source-type {GitHub, VsoGit, VsoTfvc}]
[--subscription]
[--token-type {Oauth, PersonalAccessToken}]
例
ソース管理のプロパティを更新する
az automation source-control update -g rg --automation-account-name myAutomationAccount --name sourceControl --access-token ghp_GITHUB_TOKEN --token-type PersonalAccessToken --publish-runbook True
オプションのパラメーター
次のパラメーターは省略可能ですが、コマンドを正常に実行するには、状況に応じて 1 つ以上が必要になる場合があります。
アクセス トークン。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | SecurityToken Arguments |
Automation アカウントの名前。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
このリソース操作のAzure Policy トークンを自動的に取得します。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Global Policy Arguments |
パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value, string or JSON string>。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Generic Update Arguments |
ソース管理の自動非同期。 既定値は false です。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
| 指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
ソース管理のリポジトリ ブランチ。 VsoTfvc の空の文字列としてブランチを含めます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
このリソース操作の関連する変更参照 ID。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Global Policy Arguments |
ソース管理のユーザーの説明。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
ソース管理のフォルダー パス。 パスは相対パスである必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Generic Update Arguments |
| 指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
ソース管理の名前。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
ソース管理の自動発行。 既定値は true です。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
| 指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
更新トークン。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | SecurityToken Arguments |
リストからプロパティまたは要素を削除します。 例: --remove property.list <indexToRemove> OR --remove propertyToRemove。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Generic Update Arguments |
ソース管理のリポジトリ URL。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
リソース グループの名前。
az configure --defaults group=<name>を使用して既定のグループを構成できます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=<value>。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Generic Update Arguments |
ソースの種類。 VsoGit、VsoTfvc、GitHub、大文字と小文字を区別するいずれかである必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Properties Arguments |
| 指定可能な値: | GitHub, VsoGit, VsoTfvc |
サブスクリプションの名前または ID。
az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | Resource Id Arguments |
トークンの種類。 PersonalAccessToken または Oauth である必要があります。
| プロパティ | 値 |
|---|---|
| パラメーター グループ: | SecurityToken Arguments |
| 指定可能な値: | Oauth, PersonalAccessToken |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |
出力フォーマット。
| プロパティ | 値 |
|---|---|
| 規定値: | json |
| 指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
| プロパティ | 値 |
|---|---|
| 規定値: | False |