【发布时间】:2023-01-11 20:34:47
【问题描述】:
- 我安装了 az cli 和 azure-devops 扩展。
>> az --version
azure-cli 2.44.1
core 2.44.1
telemetry 1.0.8
Extensions:
azure-devops 0.25.0
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
- 使用设置组织和项目的默认配置
az devops configure --defaults organization=<org> project=<project>
- 运行以下命令
> az pipelines create --name 'MyCi'
Error: The following arguments are required: --repository
但是根据MicrosoftDoc --repository 参数是可选的
- 我是 DevOps 的新手,对 devops-cliI 了解不多。我尝试了完整的命令。
> az pipelines create --name 'NameCI' --description 'pipeline for project' --repository AzureRepo
--branch main --repository-type tfsgit
Error: Page not found. Operation returned a 404 status code.
- 我可以从浏览器成功创建管道
- 我可以从 azure devops-cli 中删除管道,但无法创建管道。
【问题讨论】:
标签: azure azure-devops azure-pipelines azure-devops-extensions