Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az cloud set -n AzureCloud" is fails intermittently. #24545

Open
talktovishal opened this issue Nov 3, 2022 · 2 comments
Open

az cloud set -n AzureCloud" is fails intermittently. #24545

talktovishal opened this issue Nov 3, 2022 · 2 comments
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request
Milestone

Comments

@talktovishal
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

az cloud set -n AzureCloud" is failing intermittently.

Command Name
az cloud set -n AzureCloud" is failing intermittently.

Errors:


                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/argparse.py", line 1185, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _subcommand: conflicting subparser: set
To open an issue, please run: 'az feedback'
##[error]Script failed with error: ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: argument _subcommand: conflicting subparser: set
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 560, in execute
    self.parser.load_command_table(self.commands_loader)
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/azure/cli/core/parser.py", line 100, in load_command_table
    command_parser = subparser.add_parser(command_verb,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/argparse.py", line 1185, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _subcommand: conflicting subparser: set
To open an issue, please run: 'az feedback'

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...
  • ``

Expected Behavior

Environment Summary

Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29, Ubuntu 20.04.4 LTS
Python 3.8.13
Installer: DEB

azure-cli 2.36.0 *

Extensions:
ml 2.1.2

Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0

Additional Context

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 3, 2022
@yonzhan yonzhan added the Azure CLI Team The command of the issue is owned by Azure CLI team label Nov 3, 2022
@yonzhan yonzhan added Core CLI core infrastructure question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 3, 2022
@yonzhan yonzhan added this to the Backlog milestone Nov 3, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 3, 2022

az cloud set

@bebound
Copy link
Contributor

bebound commented Nov 4, 2022

I don't why it happens but you're using python 3.11 to executed command.
3.11 is not supported yet. See #24494

You need to check your cli installation.

@yonzhan yonzhan added feature-request and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team Core CLI core infrastructure customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request
Projects
None yet
Development

No branches or pull requests

6 participants