azure-cli
azure-cli copied to clipboard
Help for 'az monitor app-insights component connect-webapp' throws error
This is autogenerated. Please review and update as needed.
Describe the bug
Just installed the extension tried to get help for connect-webapp syntax and get errors.
Command Name
az monitor app-insights component connect-webapp
Errors:
No module named 'azure.mgmt.core'
Traceback (most recent call last):
Temp\pip-install-9101vebg\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 528, in execute
azure-cli-core\azure\cli\core\__init__.py, ln 300, in load_arguments
.azure\cliextensions\application-insights\azext_applicationinsights\__init__.py, ln 32, in load_arguments
from azext_applicationinsights._params import load_arguments
.azure\cliextensions\application-insights\azext_applicationinsights\_params.py, ln 9, in <module>
from ._validators import validate_applications, validate_storage_account_name_or_id, validate_log_analytic_workspace_name_or_id, validate_dest_account
.azure\cliextensions\application-insights\azext_applicationinsights\_validators.py, ln 8, in <module>
from azure.mgmt.core.tools import is_valid_resource_id
ModuleNotFoundError: No module named 'azure.mgmt.core'
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 monitor app-insights component connect-webapp --help
Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.6.6
azure-cli 2.2.0
Extensions:
application-insights 0.1.13
azure-devops 0.18.0
Additional Context
monitor
Some modules are missing. Can you reinstall azure-cli?
@AlexanderViken any feedback or update?
Please upgrade cli by command
az upgrade