我可以使用 azure cli 触发发布管道吗

Sah*_*roo 1 azure azure-cli azure-devops azure-functions azure-pipelines

我有一个合适的地方,我必须使用 power shell 触发我的发布管道,所以我必须使用 azure cli,所以他们的任何命令都可以使用 azure cli 触发我的发布管道

Krz*_*tof 6

请看这里

az pipelines release create [--artifact-metadata-list]
                            [--definition-id]
                            [--definition-name]
                            [--description]
                            [--detect {false, true}]
                            [--only-show-errors]
                            [--open]
                            [--org]
                            [--project]
Run Code Online (Sandbox Code Playgroud)

请先安装Azure DevOps CLI 扩展

我刚刚运行它并创建了发布并排队:

az pipelines release create --org https://dev.azure.com/thecodemanual --project "Devops Manual" --definition-id 1
Run Code Online (Sandbox Code Playgroud)