Exception when running acr build
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az acr build
Errors:
list index out of range
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 579, in execute
parsed_args = self.parser.parse_args(args)
python3.6/site-packages/knack/parser.py, ln 262, in parse_args
return super(CLICommandParser, self).parse_args(args)
az/lib/python3.6/argparse.py, ln 1734, in parse_args
args, argv = self.parse_known_args(args, namespace)
...
azure/cli/core/command_recommender.py, ln 61, in __init__
self.parameters = self._normalize_parameters(parameters)
azure/cli/core/command_recommender.py, ln 244, in _normalize_parameters
standard_form = sorted_options[0]
IndexError: list index out of range
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az acr build -t {} -n {} {}
Expected Behavior
Environment Summary
Linux-5.4.0-52-generic-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB
azure-cli 2.12.0 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Azure Container Registry throws exception when building
I'm trying to push a docker image to my recently created azure container registry I'm using the az acr build command in the...
Read more >az acr build from quickstart not working · Issue #19968 - GitHub
Describe the bug I am unable to use az acr build with the Azure CLI. The 5 different methods I have tried when...
Read more >Troubleshoot login to registry - Azure Container Registry
Unable to access a registry using az acr login and you receive error CONNECTIVITY_REFRESH_TOKEN_ERROR. Access to registry was denied. Response ...
Read more >Deploy existing .NET apps as Windows containers ...
Exercise 3: Publish Docker Images to Azure Container Registry (ACR). Now that you have validated that the application is running successfully in ...
Read more >maven build is failure due to ACR not authorized, why?
[ERROR] To see the full stack trace of the errors, re-run Maven with ... ://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
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
@houk-ms @yungezz
This is a known issue resulting from improper handling of positional arguments whilst normalizing parameters for failure recovery recommendations. Newer versions of CLI will no longer have this issue.
Can core team take a look first? The error is from the generic argument parsing layer