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

az devops migrations pipelines

注释

此参考是 Azure CLI (版本 2.92.0 或更高版本) 的 azure-devops 扩展的一部分。 该扩展将在首次运行 az devops migrations pipelines 命令时自动安装。 了解更多关于扩展程序的信息。

管理迁移的管道重排。

命令

名称 说明 类型 Status
az devops migrations pipelines delete

删除用于迁移的管道重新重排数据。

扩展 GA
az devops migrations pipelines list

列出管道重新重排配置和每管道状态。

扩展 GA
az devops migrations pipelines retry

重试失败的管道重新重排条目。

扩展 GA
az devops migrations pipelines submit

提交用于重排的管道。

扩展 GA
az devops migrations pipelines update

批量更新管道重新重排配置。

扩展 GA

az devops migrations pipelines delete

删除用于迁移的管道重新重排数据。

az devops migrations pipelines delete [--acquire-policy-token]
                                      [--change-reference]
                                      [--detect {false, true}]
                                      [--migration-id]
                                      [--org --organization]
                                      [--repository-id]
                                      [--yes]

示例

删除重新重排配置和克隆的定义。

az devops migrations pipelines delete --org https://dev.azure.com/myorg --repository-id 00000000-0000-0000-0000-000000000000 --migration-id 7 --yes

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--detect

自动检测组织结构。

属性 值
接受的值: false, true
--migration-id

用于管道重新重排清理的迁移 ID。

--org --organization

Azure DevOps组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或未通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/。

--repository-id

Azure Repos 存储库的 ID(GUID)。

--yes -y

不请求确认。

属性 值
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

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

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az devops migrations pipelines list

列出管道重新重排配置和每管道状态。

az devops migrations pipelines list [--detect {false, true}]
                                    [--org --organization]
                                    [--repository-id]

示例

列出管道重新重排状态。

az devops migrations pipelines list --org https://dev.azure.com/myorg --repository-id 00000000-0000-0000-0000-000000000000

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--detect

自动检测组织结构。

属性 值
接受的值: false, true
--org --organization

Azure DevOps组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或未通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/。

--repository-id

Azure Repos 存储库的 ID(GUID)。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

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

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az devops migrations pipelines retry

重试失败的管道重新重排条目。

az devops migrations pipelines retry [--acquire-policy-token]
                                     [--change-reference]
                                     [--detect {false, true}]
                                     [--org --organization]
                                     [--pipeline-ids]
                                     [--repository-id]

示例

重试特定的失败管道。

az devops migrations pipelines retry --org https://dev.azure.com/myorg --repository-id 00000000-0000-0000-0000-000000000000 --pipeline-ids 42 43

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--detect

自动检测组织结构。

属性 值
接受的值: false, true
--org --organization

Azure DevOps组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或未通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/。

--pipeline-ids

要重试的管道定义 ID。 接受空格分隔或逗号分隔的值。

--repository-id

Azure Repos 存储库的 ID(GUID)。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

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

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az devops migrations pipelines submit

提交用于重排的管道。

az devops migrations pipelines submit [--acquire-policy-token]
                                      [--change-reference]
                                      [--detect {false, true}]
                                      [--org --organization]
                                      [--pipeline-ids]
                                      [--repository-id]
                                      [--repository-mapping]
                                      [--service-connection-id]

示例

使用服务连接和存储库映射提交管道。

az devops migrations pipelines submit --org https://dev.azure.com/myorg --repository-id 00000000-0000-0000-0000-000000000000 --pipeline-ids 42 43 44 --service-connection-id 11111111-1111-1111-1111-111111111111 --repository-mapping aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa=myorg/shared-templates

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--detect

自动检测组织结构。

属性 值
接受的值: false, true
--org --organization

Azure DevOps组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或未通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/。

--pipeline-ids

管道定义 ID。 接受空格分隔值(例如 42 43 44)或逗号分隔值(例如 42,43,44)。

--repository-id

Azure Repos 存储库的 ID(GUID)。

--repository-mapping

格式的 <sourceRepoId>=<targetOwner>/<targetRepo>存储库映射。 可以多次提供。

--service-connection-id

Project范围GitHub服务连接 ID (GUID)。 如果已通过迁移附加了连接,则为可选,请创建 --pipeline-service-connection-id 或管道更新 --service-connection-id。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

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

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False

az devops migrations pipelines update

批量更新管道重新重排配置。

az devops migrations pipelines update [--acquire-policy-token]
                                      [--add-ids]
                                      [--change-reference]
                                      [--detect {false, true}]
                                      [--org --organization]
                                      [--remove-ids]
                                      [--repository-id]
                                      [--repository-mapping]
                                      [--retry-ids]
                                      [--service-connection-id]

示例

添加、删除和更新服务连接。

az devops migrations pipelines update --org https://dev.azure.com/myorg --repository-id 00000000-0000-0000-0000-000000000000 --add-ids 50 51 --remove-ids 42 --service-connection-id 22222222-2222-2222-2222-222222222222

可选参数

以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。

--acquire-policy-token

为此资源操作自动获取Azure Policy令牌。

属性 值
参数组: Global Policy Arguments
--add-ids

要添加的管道 ID。 接受空格分隔或逗号分隔的值。

--change-reference

此资源操作的相关更改引用 ID。

属性 值
参数组: Global Policy Arguments
--detect

自动检测组织结构。

属性 值
接受的值: false, true
--org --organization

Azure DevOps组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认或未通过 git 配置选取,则为必需。示例:https://dev.azure.com/MyOrganizationName/。

--remove-ids

要删除的管道 ID。 接受空格分隔或逗号分隔的值。

--repository-id

Azure Repos 存储库的 ID(GUID)。

--repository-mapping

格式的 <sourceRepoId>=<targetOwner>/<targetRepo>存储库映射。 可以多次提供。

--retry-ids

失败的管道 ID 重试。 接受空格分隔或逗号分隔的值。

--service-connection-id

Project范围GitHub服务连接 ID (GUID)。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性 值
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

属性 值
默认值: False
--output -o

输出格式。

属性 值
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。

--subscription

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

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性 值
默认值: False