Azure / Azure/azure-cli

Impossible to install any extensions

Open
#29,630 8 comments 3 reactions 0 assignees View on GitHub
bug customer-reported Service Attention Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

You cannot install extensions. Some registry entry is missing:
path = os.path.normpath(get_win_folder("CSIDL_COMMON_APPDATA"))
FileNotFoundError: [WinError 2]

Seems to be Python related.

### Related command

az extension add --name XY, i.e. az extension add --name azure-iot

### Errors

directory, _ = winreg.QueryValueEx(key, shell_folder_name)

### Issue script & Debug output

directory, _ = winreg.QueryValueEx(key, shell_folder_name)

### Expected behavior

az extension add --name azure-iot -> SUCCESS

### Environment Summary

azure-cli 2.62.0

core 2.62.0
telemetry 1.1.0

Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1

### Additional context

Love you guys. Made my day...

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.