question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az pipelines run --parameters is throwing unrecognized arguments error

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
neoswallowcommented, May 15, 2022

@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.

0reactions
kaito-mscommented, May 15, 2022

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

Pipeline client 6.0 added to support template parameters for pipelines runs (https://github.com/Azure/azure-devops-cli-extension/pull/1211)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found