Azure / Azure/azure-cli

az cloud set -n AzureCloud" is fails intermittently.

Open
#24,545 2 comments 0 reactions 3 assignees Claimed by @evelyn-ys View on GitHub
act-platform-engineering-squad Azure CLI Team Core customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.