Bug 2422741 - Many azure-cli subcommands don't work
Summary: Many azure-cli subcommands don't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: azure-cli
Version: 43
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jeremy Cline
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-16 14:44 UTC by Ondřej Budai
Modified: 2025-12-23 00:51 UTC (History)
2 users (show)

Fixed In Version: azure-cli-2.81.0-1.fc43
Clone Of:
Environment:
Last Closed: 2025-12-23 00:51:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ondřej Budai 2025-12-16 14:44:02 UTC
When az runs, it fails to load several submodules required for the subcommands. This results into several subcommands not working. Note that this works just fine on Fedora 42.

Reproducer (in podman run --rm -it fedora:43):

# dnf install -y azure-cli
# az network nsg
Error loading command module 'cdn': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'compute_recommender': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'computefleet': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'consumption': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'lab': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'monitor': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'network': ExperimentalItem.__init__() got multiple values for argument 'cli_ctx'
Error loading command module 'security': PreviewItem.__init__() got multiple values for argument 'cli_ctx'
'nsg' is misspelled or not recognized by the system.

Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs

Reproducible: Always

Comment 1 Fedora Update System 2025-12-17 17:24:13 UTC
FEDORA-2025-85a4c5e0c4 (azure-cli-2.81.0-1.fc43, python-azure-datalake-store-1.0.1-1.fc43, and 24 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-85a4c5e0c4

Comment 2 Jeremy Cline 2025-12-17 17:27:25 UTC
Hi Ondřej,

Thanks for the report. I looked a little bit at what the deal is with v2.74 but eventually decided to just update it to v2.81 despite needing to bump a number of SDK components since it seems like 2.74 was generally broken upstream, too.

Comment 3 Fedora Update System 2025-12-18 01:33:33 UTC
FEDORA-2025-85a4c5e0c4 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-85a4c5e0c4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-85a4c5e0c4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-12-23 00:51:03 UTC
FEDORA-2025-85a4c5e0c4 (azure-cli-2.81.0-1.fc43, python-azure-ai-agents-1.1.0-1.fc43, and 27 more) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.