Azure / azure-cli

Azure Command-Line Interface
MIT License
3.91k stars 2.87k forks source link

az pipelines create fails #18515

Open siennathesane opened 3 years ago

siennathesane commented 3 years ago

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

$ az pipelines create --name "EngineBuild" --description "Builds of the Express Engine" --repository <repo> --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.

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07.

Issue Details
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**
Author: mxplusb
Assignees: -
Labels: `DevOps`, `Pipelines`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

route to service team