az pipelines run --parameters is throwing unrecognized arguments error
See original GitHub issueDescribe the bug
running az pipelines run
with --paramters
option throws unrecognized arguments: --parameters error.
To Reproduce
az pipelines run --id 3 --parameters platform=ios --output table
result in
unrecognized arguments: --parameters platform=ios
Expected behavior It should run the pipeline of given id with parameter platform set to ios
Environment summary
Install Method: homebrew CLI version: (result of az --version)
azure-cli 2.34.1
core 2.34.1
telemetry 1.0.6
Extensions:
azure-devops 0.22.0
interactive 0.4.5
Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
Python location '/opt/homebrew/Cellar/azure-cli/2.34.1/libexec/bin/python'
Extensions directory '/Users/*****/.azure/cliextensions'
Python (Darwin) 3.10.2 (main, Feb 2 2022, 05:51:25) [Clang 13.0.0 (clang-1300.0.29.3)]
OS version: macOS 12.2.1 Shell Type: zsh, fish
Additional context
Document website https://docs.microsoft.com/en-us/cli/azure/pipelines?view=azure-cli-latest#az-pipelines-run list this option but it simply doesn’t work, at least on macOS version.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Azure CLI not recognizing arguments - Stack Overflow
We tried this command without any errors, the problem might be that you run this Azure CLI command inside your Powershell script.
Read more >"unrecognized arguments" when trying to pass in a string to ...
When running the following privisioner AZ CLI cmdlet, it bombs while trying to pass in any string that has a space. The command...
Read more >Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Pipeline won't trigger; Pipeline queues but never gets an agent; Pipeline fails to complete; Get logs to diagnose problems; I need more help....
Read more >Using Azure CLI with PowerShell: error handling explained
Azure Pipelines has a task for using the Azure CLI, but this only has the options to use the command line (.cmd or...
Read more >Migrating Azure ARM templates to Bicep - Rick Roché
Error BCP007 : This declaration type is not recognized. Specify a parameter, variable, resource, or output declaration. Error BCP057: The name “ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kaito-ms I’ve been using ubuntu version (via docker) meanwhile. It looks like it worked with ubuntu version because it installed v0.25.0 when my local version was still at v0.22.0. Now that I updated devops extension to the latest (v0.25.0), --parameters works now. Thanks.
I do see that table output is somehow broken with the new version for the pipeline. I’m guessing I should create an issue on devops extension repo.
The
--parameters
option is implemented in azure-devops 0.23.0. Please upgrade your azure-devops extension.https://github.com/Azure/azure-devops-cli-extension/releases/tag/20220131.1