bebound / azure-cli

Azure Command-Line Interface
MIT License
0 stars 0 forks source link

keyvault secret set error #30

Open bebound opened 1 year ago

bebound commented 1 year ago

Hello Azure CLI team,

Entering az keyvault secret set, no matter the parameters afterwards, gives a big error.

I am using Ubuntu 20.04 with both powershell and azure cli installed. I installed both on 1/26/2023. Signed into azure cli with user assigned managed identity.

Command Name az keyvault secret set

Errors:

No module named 'azure.keyvault.v7_0'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 528, in execute
    self.commands_loader.load_arguments(command)
azure/cli/core/__init__.py, ln 299, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
cli/core/commands/__init__.py, ln 291, in load_arguments
    super(AzCliCommand, self).load_arguments()
...
<frozen importlib._bootstrap>, ln 961, in _find_and_load_unlocked
<frozen importlib._bootstrap>, ln 219, in _call_with_frames_removed
<frozen importlib._bootstrap>, ln 1014, in _gcd_import
<frozen importlib._bootstrap>, ln 991, in _find_and_load
<frozen importlib._bootstrap>, ln 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.keyvault.v7_0'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Linux-5.15.0-1031-azure-x86_64-with-glibc2.29
Python 3.8.10
Shell: pwsh

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

Copy from https://github.com/Azure/azure-cli/issues/25250

similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/Azure/azure-cli/issues/19640.
Issue title Unofficial Azure CLI deb packages are distributed by Linux repositories
Create time 2021-09-22
Comment number 9