Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running "az keyvault secret list" fails with a missing dependancy error #19121

Closed
grahamhayes opened this issue Aug 4, 2021 · 6 comments
Closed
Assignees
Labels
KeyVault az keyvault
Milestone

Comments

@grahamhayes
Copy link
Contributor

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az keyvault secret list

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.

  • Put any pre-requisite steps here...
  • az keyvault secret list --name {}

Expected Behavior

List of secrets

Environment Summary

Linux-5.8.0-1039-azure-x86_64-with-glibc2.29
Python 3.8.10
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Clean Ubuntu 20.04.2 LTS VM in azure that had `sudo apt install azure-cli` ran on it

Additional Context

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Aug 4, 2021
@yonzhan yonzhan added the KeyVault az keyvault label Aug 4, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Aug 4, 2021
@yonzhan yonzhan added this to the Aug 2021 (2021-09-07) milestone Aug 4, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 4, 2021

keyvault

@mitchdenny
Copy link

I'm hitting this at the moment, when will a fix be out?

@evelyn-ys
Copy link
Member

The built-in azure cli is too old to run. Pls upgrade to latest version which is 2.27.0 for now.

@evelyn-ys
Copy link
Member

@jiasli Can you help take a look that sudo apt install azure-cli will install version 2.0.81 by default?

@jiasli
Copy link
Member

jiasli commented Aug 9, 2021

The 2.0.81 version of Azure CLI distributed by official Ubuntu repo is not maintained by Microsoft.

Please follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt to install Azure CLI. It will add Microsoft Linux repo https://packages.microsoft.com/repos/azure-cli/ to apt's source list.

@jiasli
Copy link
Member

jiasli commented Jun 7, 2022

Please see #19640 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KeyVault az keyvault
Projects
None yet
Development

No branches or pull requests

5 participants