你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az automation source-control sync-job stream

注意

此参考是 Azure CLI(版本 2.55.0 或更高版本)的自动化扩展的一部分。 该扩展将在首次运行 az automation source-control sync-job stream 命令时自动安装。 详细了解扩展。

管理同步作业流。

命令

名称 说明 类型 状态
az automation source-control sync-job stream list

列出由同步作业 ID 标识的同步作业流的列表。

扩展 GA
az automation source-control sync-job stream show

获取由流 ID 标识的同步作业流。

扩展 GA

az automation source-control sync-job stream list

列出由同步作业 ID 标识的同步作业流的列表。

az automation source-control sync-job stream list --account
                                                  --resource-group
                                                  --source-control-name
                                                  --sync-job-id
                                                  [--filter]
                                                  [--max-items]
                                                  [--next-token]

示例

列出同步作业流

az automation source-control sync-job stream list -g rg --automation-account-name myAutomationAccount --source-control-name sourceControl --sync-job-id abcdef01-2345-6789-9bed-a01234567890

必需参数

--account --automation-account-name

自动化帐户的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--source-control-name

源代码管理名称。

--sync-job-id

源代码管理同步作业 ID。

可选参数

--filter

要对操作应用的筛选器。

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的参数中 --next-token 提供令牌值。

--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

全局参数
--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 获取完整的调试日志。

az automation source-control sync-job stream show

获取由流 ID 标识的同步作业流。

az automation source-control sync-job stream show [--account]
                                                  [--ids]
                                                  [--resource-group]
                                                  [--source-control-name]
                                                  [--stream-id]
                                                  [--subscription]
                                                  [--sync-job-id]

示例

显示同步作业流的详细信息

az automation source-control sync-job stream show -g rg --automation-account-name myAutomationAccount --source-control-name sourceControl --sync-job-id abcdef01-2345-6789-9bed-a01234567890 --stream-id b86c5c31-e9fd-4734-8764-ddd6c101e706_00636596855139029522_00000000000000000007

可选参数

--account --automation-account-name

自动化帐户的名称。

--ids

一个或多个资源 ID(以空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--source-control-name

源代码管理名称。

--stream-id

同步作业流的 ID。

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--sync-job-id

源代码管理同步作业 ID。

全局参数
--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 获取完整的调试日志。