Home > Mobile >  Unable to create Pipeline using azure devops cli in Azure Devops Portal from Azure Repos
Unable to create Pipeline using azure devops cli in Azure Devops Portal from Azure Repos

Time:01-11

  • I installed az cli and azure-devops extension.
>> 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'
  • set the default configuration for organization and project using

az devops configure --defaults organization=<org> project=<project>

  • Run the following command
> az pipelines create --name 'MyCi'
Error: The following arguments are required: --repository 

However according to enter image description here

Sample:

az pipelines create --name 'CreatedByCLI' --yml-path /azure-pipelines.yml --repository AzureCLIrepo --branch main --repository-type tfsgit

enter image description here

Output:

enter image description here

enter image description here

  • Related