-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Impossible to install any extensions #29630
Copy link
Copy link
Open
Labels
Service AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Service AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Similar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
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...