Azure / Azure/azure-cli

az pipelines create fails

Open
#18,515 2 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad DevOps Pipelines Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 10h
Merged PRs (30d)
64

Description

The CLI requires the `--organization` flag, but fails even if it's passed...

```sh
$ az pipelines create --name "EngineBuild" --description "Builds of the Express Engine" --repository --organization mxplusb --repository-type github
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
--organization must be specified. The value should be the URI of your Azure DevOps organization, for example: https://dev.azure.com/MyOrganization/ or your Azure DevOps Server organization. You can set a default value by running: az devops configure --defaults organization=https://dev.azure.com/MyOrganization/. For auto detection to work (--detect true), you must be in a local Git directory that has a "remote" referencing a Azure DevOps or Azure DevOps Server repository.
```

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 66f0311f-8316-ea52-6171-9eb14b9f7bc7
* Version Independent ID: e79f2bc9-543d-9a14-a08c-911d037e108a
* Content: [az pipelines](https://docs.microsoft.com/en-us/cli/azure/pipelines?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/pipelines.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/pipelines.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the documented `az pipelines create` command and inspect the `az pipelines` entry point; the issue links the generated `latest/docs-ref-autogen/pipelines.yml` source. Done means the supplied `--organization` value is accepted and the command no longer reports that the flag must be specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.